Go to the documentation of this file.00001
00002
00003
00004
00005
00009
00010 #ifndef baseParam1516_H_
00011 #define baseParam1516_H_
00012
00013 #if DtHLA
00014 #if DtHLA_1516
00015
00016 #include "lgrSim.h"
00017 #include "lgrHlaAttribute.h"
00018 #include "baseHla1516Value.h"
00019
00020 #include <RTI/RTI1516.h>
00021
00022 class DtString;
00023
00024 namespace MAKLogger
00025 {
00026 class DtLgrOnlineFomDesc;
00027 class DtBaseInterClassDesc;
00028
00031 class DT_DLL_LGRSIM DtBaseParamDesc : public DtBaseHla1516Value
00032 {
00033 public:
00035 DtBaseParamDesc( const DtString& name, DtLgrHlaHandle handle,
00036 const void* handCode, int codeSize );
00037
00039 virtual ~DtBaseParamDesc();
00040
00042 DtBaseParamDesc( const DtBaseParamDesc& src );
00043
00045 DtBaseParamDesc& operator=( const DtBaseParamDesc& src );
00046
00048 RTI::ParameterHandle rtiHandle(const DtLgrOnlineFomDesc& fomDesc) const;
00049
00051 inline bool isSubscribedTo() const;
00052
00054 inline void setIsSubscribedTo( bool onOff );
00055
00056 };
00057
00058 inline bool DtBaseParamDesc::isSubscribedTo() const
00059 {
00060 return ( ( flags() & DtLgrFomDesc_IsSubscribed ) != 0 );
00061 }
00062
00063 inline void DtBaseParamDesc::setIsSubscribedTo( bool onOff )
00064 {
00065 if ( onOff )
00066 {
00067 setFlags(flags() | DtLgrFomDesc_IsSubscribed);
00068 }
00069 else
00070 {
00071 setFlags(flags() & DtLgrFomDesc_IsSubscribed);
00072 }
00073 }
00074 }
00075
00076 #endif //! DtHLA_1516
00077 #endif //! DtHLA
00078
00079 #endif //! DtBaseParamDesc_H_