MAK RTIspy API Documentation for HLA 1516
savCompMsg.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 1998 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: savCompMsg.h,v $ $Revision: 1.9 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00012 #ifndef DtSaveCompleteMsg_H_
00013 #define DtSaveCompleteMsg_H_
00014 
00015 #include "saveMsg.h"
00016 
00017 class DtConnectionMgr;
00018 class DtSaveCompleteMsg;
00019 typedef void (*DtSaveCompleteCb)(const DtSaveCompleteMsg& msg, void* usr);
00020 
00021 
00022 class DT_DLL_LRC DtSaveCompleteMsg : public DtSaveMsg
00023 {
00024 public:
00025 
00027    DtSaveCompleteMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00028 
00030    DtSaveCompleteMsg(
00031       const char* theLabel,
00032       const bool success,
00033       DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00034 
00036    DtSaveCompleteMsg(const DtNetSaveMsg* netRepMsg,
00037       DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00038 
00040    virtual ~DtSaveCompleteMsg();
00041 
00043    virtual DtRtiMsg* clone(bool copy = true) const; 
00044 
00046    void set(const char* theLabel, const bool success);
00047 
00049    virtual void setSuccessIndicator(const bool success);
00050    virtual bool successIndicator() const;
00051 
00053    virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
00054 
00055 public:
00057    static DtRtiMsg* create(const DtNetMsgHeader* initial,
00058                            DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);    
00059 
00061    static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);    
00062 
00064    static void addCallback(DtConnectionMgr *conn, 
00065       DtSaveCompleteCb cb, void *usr);
00066    static void removeCallback(DtConnectionMgr *conn, 
00067       DtSaveCompleteCb cb, void *usr);
00068    
00069 protected:
00070    
00072    virtual DtRtiMsgKind internalDtRtiMsgKind();
00073 
00074 protected:
00075 
00076 };
00077 
00078 #endif

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)