![]() |
VR-Link API Documentation for HLA 1516
|
00001 /****************************************************************************** 00002 ** Copyright (c) 1992-2010 VT MAK 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 00006 00010 00011 #ifndef nativeValue_H__ 00012 #define nativeValue_H__ 00013 00014 #include "appEnv.h" 00015 #include "envValue.h" 00016 00017 #ifdef DtUSE_UTILITIES_NAMESPACE 00018 namespace DtUSE_UTILITIES_NAMESPACE 00019 { 00020 #endif 00021 00022 class DT_DLL_MTL DtNativeValue; 00023 00024 typedef DtBoost::shared_ptr<DtNativeValue> DtNativeValueSP; 00025 00028 class DT_DLL_MTL DtNativeValue : public DtEnvValue 00029 { 00030 public: 00031 00032 ~DtNativeValue(); 00033 00034 static DtEnvValueSP create(const DtString& nativeType,void* native); 00035 00036 DtString nativeType() const; 00037 void* nativeValue(); 00038 00039 static bool isNativeValue(const DtEnvValueSP& ); 00040 static DtNativeValue* castToNativeValue(const DtEnvValueSP& value); 00041 00042 protected: 00043 DtNativeValue(const DtString& nativeType,void* native); 00044 00046 void* myNativeValue; 00047 }; 00048 00049 #ifdef DtUSE_UTILITIES_NAMESPACE 00050 } 00051 #endif 00052 00053 #endif