MAK Data Logger API Documentation for HLA
baseParam13.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 
10 #ifndef baseParam13_H_
11 #define baseParam13_H_
12 
13 #if DtHLA & !DtHLA_1516
14 
15 #include "RTI.hh"
16 #include "baseHlaValue.h"
17 
18 class DtString;
19 
20 namespace MAKLogger
21 {
22 
23 
24  class DtBaseFomDesc;
25  class DtBaseInterClassDesc;
26 
29  class DT_DLL_LGRSIM DtBaseParamDesc : public DtBaseHlaValue
30  {
31  public:
33  DtBaseParamDesc( const DtString& name,DtLgrHlaHandle handle );
34 
36  virtual ~DtBaseParamDesc();
37 
39  DtBaseParamDesc( const DtBaseParamDesc& src );
40 
42  DtBaseParamDesc& operator=( const DtBaseParamDesc& src );
43 
44  public:
45 
47  RTI::AttributeHandle rtiHandle(const DtLgrOnlineFomDesc&) const;
48 
50  inline bool isSubscribedTo() const;
51 
53  inline void setIsSubscribedTo( bool onOff );
54 
55  inline bool isReliable() const;
56  inline void setIsReliable(bool reliable);
57 
58  inline bool isTimeStamped() const;
59  inline void setTimeStamped(bool timeStamped);
60 
63  inline DtLgrFomTransportType transportType() const;
64 
67  inline DtLgrFomOrderType orderType() const;
68  };
69 
70 
71  inline bool DtBaseParamDesc::isSubscribedTo() const
72  {
73  return ( ( flags() & DtLgrFomDesc_IsSubscribed ) != 0 );
74  }
75 
76 
77  inline void DtBaseParamDesc::setIsSubscribedTo( bool onOff )
78  {
79  if ( onOff )
80  {
82  }
83  else
84  {
86  }
87  }
88 
89 
90  inline DtLgrFomTransportType DtBaseParamDesc::transportType() const
91  {
92  if ( ( flags() & DtLgrFomDesc_Reliable ) != 0 )
93  {
94  return DtLgr_Reliable;
95  }
96  else
97  {
98  return DtLgr_BestEffort;
99  }
100  }
101 
102 
103  inline DtLgrFomOrderType DtBaseParamDesc::orderType() const
104  {
105  if ( ( flags() & DtLgrFomDesc_TimeStamp ) != 0 )
106  {
107  return DtLgr_TimeStamp;
108  }
109  else
110  {
111  return DtLgr_Receive;
112  }
113  }
114 }
115 
116 #endif
117 #endif

Document ID: Generated on Thu Apr 11 12:13:00 EDT 2013 from SVN revision 126011
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)