![]() |
MAK RTIspy API Documentation for HLA 1516
|
00001 /********************************************************************* 00002 ** Copyright (c) 1998 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: paramInfo.h,v $ $Revision: 1.17 $ $State: Exp $ 00007 *********************************************************************/ 00008 00011 00012 #ifndef DtParamInfo_H_ 00013 #define DtParamInfo_H_ 00014 00015 #include "rtiMsConfig.h" 00016 #include "internalTypes.h" 00017 #include <vlutil/vlFedTarget.h> 00018 #include <vlutil/vlMachineTypes.h> 00019 #include <vlutil/vlString.h> 00020 00021 class DT_DLL_LRC DtParamInfo 00022 { 00023 public: 00024 00026 DtParamInfo(); 00027 DtParamInfo(const char* attrName, int handle ); 00028 DtParamInfo(const DtParamInfo& orig); 00029 00031 DtParamInfo& operator=(const DtParamInfo& orig); 00032 bool operator==(const DtParamInfo& orig); 00033 bool operator!=(const DtParamInfo& orig); 00034 00036 virtual ~DtParamInfo(); 00037 00039 virtual void setFomType(MAKRti::DtFomType type); 00040 virtual MAKRti::DtFomType fomType() const; 00041 00043 virtual void subscribe(); 00044 00046 virtual void unsubscribe(); 00047 00049 virtual int subscribed() const; 00050 00052 virtual void publish(); 00053 00055 virtual void unpublish(); 00056 00058 virtual int published() const; 00059 00061 virtual const char* name() const; 00062 virtual void setName(const char* nameValue); 00063 00065 virtual const char* semantics() const; 00066 virtual void setSemantics(const char* semantics); 00067 00069 virtual DtParameterHandle handle() const; 00070 virtual void setHandle(DtParameterHandle handleValue); 00071 00073 virtual bool isName(const char* name); 00074 00075 virtual bool sameDataTypes(const DtParamInfo&) const; 00076 virtual bool sameSemantics( const DtParamInfo& ) const; 00077 00079 virtual void print() const; 00080 00081 protected: 00082 00083 MAKRti::DtString myName; 00084 MAKRti::DtString mySemantics; 00085 DtParameterHandle myHandle; 00086 MAKRti::DtFomType myFomType; 00087 int mySubscribed; 00088 int myPublished; 00089 }; 00090 00091 #endif