Go to the documentation of this file.00001
00002
00003
00004
00005
00008
00009 #ifndef baseAttr13_H_
00010 #define baseAttr13_H_
00011
00012 #if DtHLA
00013 #if !DtHLA_1516
00014
00015 #include "RTI.hh"
00016 #include "baseHlaValue.h"
00017
00018 class DtString;
00019
00020 namespace MAKLogger
00021 {
00022
00025 class DT_DLL_LGRSIM DtBaseAttrDesc : public DtBaseHlaValue
00026 {
00027 public:
00029 DtBaseAttrDesc( const DtString& name,DtLgrHlaHandle handle );
00030
00032 virtual ~DtBaseAttrDesc();
00033
00035 DtBaseAttrDesc( const DtBaseAttrDesc& src );
00036
00038 DtBaseAttrDesc& operator=( const DtBaseAttrDesc& src );
00039
00040 public:
00041
00043 RTI::AttributeHandle rtiHandle(const DtLgrOnlineFomDesc&) const;
00044
00046 inline bool isSubscribedTo() const;
00047
00049 inline void setIsSubscribedTo( bool onOff );
00050
00051 inline bool isReliable() const;
00052 inline void setIsReliable(bool reliable);
00053
00054 inline bool isTimeStamped() const;
00055 inline void setTimeStamped(bool timeStamped);
00056
00059 inline DtLgrFomTransportType transportType() const;
00060
00063 inline DtLgrFomOrderType orderType() const;
00064 };
00065
00066
00067 inline bool DtBaseAttrDesc::isSubscribedTo() const
00068 {
00069 return ( ( flags() & DtLgrFomDesc_IsSubscribed ) != 0 );
00070 }
00071
00072
00073 inline void DtBaseAttrDesc::setIsSubscribedTo( bool onOff )
00074 {
00075 if ( onOff )
00076 {
00077 setFlags(flags() | DtLgrFomDesc_IsSubscribed );
00078 }
00079 else
00080 {
00081 setFlags(flags() & ~DtLgrFomDesc_IsSubscribed);
00082 }
00083 }
00084
00085
00086 inline DtLgrFomTransportType DtBaseAttrDesc::transportType() const
00087 {
00088 if ( ( flags() & DtLgrFomDesc_Reliable ) != 0 )
00089 {
00090 return DtLgr_Reliable;
00091 }
00092 else
00093 {
00094 return DtLgr_BestEffort;
00095 }
00096 }
00097
00098
00099 inline DtLgrFomOrderType DtBaseAttrDesc::orderType() const
00100 {
00101 if ( ( flags() & DtLgrFomDesc_TimeStamp ) != 0 )
00102 {
00103 return DtLgr_TimeStamp;
00104 }
00105 else
00106 {
00107 return DtLgr_Receive;
00108 }
00109 }
00110 }
00111
00112 #endif //! !DtHLA_1516
00113 #endif //! DtHLA
00114 #endif //! DtBaseAttrDesc13_H_
00115
00116