MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
baseParam1516.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef baseParam1516_H_
11 #define baseParam1516_H_
12 
13 #if DtHLA
14 #if DtHLA_1516
15 
16 #include <lgrSim/lgrSim.h>
17 #include <lgrSim/lgrHlaAttribute.h>
19 
20 #include <RTI/RTI1516.h>
21 
22 class DtString;
23 
24 namespace MAKLogger
25 {
26  class DtLgrOnlineFomDesc;
27  class DtBaseInterClassDesc;
28 
31  class DT_DLL_LGRSIM DtBaseParamDesc : public DtBaseHla1516Value
32  {
33  public:
35  DtBaseParamDesc( const DtString& name, DtLgrHlaHandle handle,
36  const void* handCode, int codeSize );
37 
39  virtual ~DtBaseParamDesc();
40 
42  DtBaseParamDesc( const DtBaseParamDesc& src );
43 
45  DtBaseParamDesc& operator=( const DtBaseParamDesc& src );
46 
48  RTI::ParameterHandle rtiHandle(const DtLgrOnlineFomDesc& fomDesc) const;
49 
51  inline bool isSubscribedTo() const;
52 
54  inline void setIsSubscribedTo( bool onOff );
55 
56  };
57 
58  inline bool DtBaseParamDesc::isSubscribedTo() const
59  {
60  return ( ( flags() & DtLgrFomDesc_IsSubscribed ) != 0 );
61  }
62 
63  inline void DtBaseParamDesc::setIsSubscribedTo( bool onOff )
64  {
65  if ( onOff )
66  {
67  setFlags(flags() | DtLgrFomDesc_IsSubscribed);
68  }
69  else
70  {
71  setFlags(flags() & DtLgrFomDesc_IsSubscribed);
72  }
73  }
74 }
75 
76 #endif
77 #endif
78 
79 #endif

Document ID: Generated on Thu Apr 7 20:50:59 EDT 2016 from SVN revision 163818
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)