MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
saveMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: saveMsg.h,v $ $Revision: 1.8 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtSaveMsg_H_
13 #define DtSaveMsg_H_
14 
15 #include "rtiMsg.h"
16 #include "netSaveMsg.h"
17 
19 
21 {
22 public:
23 
25  DtSaveMsg();
26 
28  virtual ~DtSaveMsg();
29 
31  void set(const char* theLabel);
32 
34  virtual void setLabel(const char* label);
35  virtual const char* label() const;
36 
38  virtual void setRequestID(unsigned long requestIDValue);
39  virtual unsigned long requestID() const;
40 
42  virtual void setResult(unsigned char result);
43  virtual unsigned char result() const;
44 
46 #ifdef DtIFSPEC1516
47  virtual void setTime(rti1516::LogicalTime const & timeVal);
48  virtual rti1516::LogicalTime const * time(
49  DtLogicalTimeFactory* logicalTimeFactory) const;
50 #elif defined(DtIFSPEC1516E)
51  virtual void setTime(rti1516e::LogicalTime const & timeVal);
52  virtual rti1516e::LogicalTime const * time(
53  DtLogicalTimeFactory* logicalTimeFactory) const;
54 #else
55  virtual void setTime(RTI::FedTime const & timeVal);
56  virtual RTI::FedTime const * time(
57  DtLogicalTimeFactory* logicalTimeFactory) const;
58 #endif
59 
61  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
62 
63 protected:
64 
67 
69  virtual char* labelPtr();
70 
72  virtual char* timePtr();
73 
75  virtual int labelFieldSize() const;
76 
78  virtual int timeFieldSize() const;
79 
81  virtual void setLabelSize(int size);
82  virtual int labelSize() const;
83 
85  virtual void setTimeSize(int size);
86  virtual int timeSize() const;
87 
89  virtual DtNetSaveMsg* netSaveMsg();
90  virtual const DtNetSaveMsg* netSaveMsg() const;
91 
93 #ifdef DtIFSPEC1516
94  virtual int minSize(char const * theLabel=NULL,
95  rti1516::LogicalTime const * theTime=NULL) const;
96 #elif defined(DtIFSPEC1516E)
97  virtual int minSize(char const * theLabel=NULL,
98  rti1516e::LogicalTime const * theTime=NULL) const;
99 #else
100  virtual int minSize(char const * theLabel=NULL,
101  RTI::FedTime const * theTime=NULL) const;
102 #endif
103 
105  virtual DtSaveMsg* self() const;
106 
107 protected:
108 
109  char* myLabel;
110 };
111 
112 
113 inline DtSaveMsg* DtSaveMsg::self() const
114 {
115  return const_cast<DtSaveMsg*>( this );
116 }
117 
118 #endif
DtRtiMsgKind
Definition: rtiMsgKind.h:9
!DtIFSPEC1516
Definition: fedTimeFactory.h:190
Definition: LogicalTime.h:35
virtual void printData(DtLogicalTimeFactory *logicalTimeFactory) const
A base class for the various save/restore messages.
Definition: saveMsg.h:20
char * myLabel
Definition: saveMsg.h:109
DtRtiMsg is the base class for messages between RTI components.
Definition: rtiMsg.h:45
virtual RTI::FedTime const * time(DtLogicalTimeFactory *fedTimeFactory) const
virtual DtRtiMsgKind internalDtRtiMsgKind()=0
virtual void setTime(const RTI::FedTime &time)
Set/Get time Used in timestamped messages.
Definition: netSaveMsg.h:19
#define DT_DLL_LRC
Definition: rtiMsConfig.h:126
virtual DtSaveMsg * self() const
Casts away const-ness.
Definition: saveMsg.h:113

Document ID: Generated on Mon Sep 7 15:40:32 EDT 2020 from SVN revision 217499
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)