lcAcknowledge.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 1998 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 
00008 
00009 #pragma once
00010 
00011 #include "lcPdu.h"
00012 
00013 typedef struct DtLgrAcknowledgeData
00014 {
00015    DtNetU32 accepted;
00016 } DtLgrAcknowledgeData;
00017 
00018 const int theAcknowledgePduSize = theLgrControlPduSizeSansParams
00019    + sizeof(DtLgrAcknowledgeData);
00020 
00024 class DT_DLL_LOGGERCONTROL DtLgrAcknowledgePdu : public DtLgrControlPdu
00025 {
00026 public:
00027 
00029    DtLgrAcknowledgePdu( DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER );
00030 
00032    DtLgrAcknowledgePdu( const DtNetLgrControlPdu* initial,
00033       DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER );
00034 
00036    DtLgrAcknowledgePdu( const DtEntityIdentifier& sender,
00037       const DtEntityIdentifier& receiver, bool processedOk,
00038       int pduSize=theAcknowledgePduSize, DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER );
00039 
00041    virtual ~DtLgrAcknowledgePdu();
00042 
00044    DtLgrAcknowledgePdu( const DtLgrAcknowledgePdu& src );
00045 
00047    DtLgrAcknowledgePdu& operator=( const DtLgrAcknowledgePdu& src );
00048 
00050    virtual bool accepted() const;
00051    virtual void setAccepted( bool cmdResult);
00052 
00054    virtual void printDataToStream(std::ostream& stream) const;
00055 
00056 protected:
00057 
00059    virtual DtLgrAcknowledgeData* params() const;
00060 };
00061 
00062 

Document ID: Generated on Tue Oct 11 19:41:03 EDT 2011 from SVN revision 107422
Copyright © 2005-2011 VT MÄK Inc. All Rights Reserved (www.mak.com)