VR-Link API Documentation for HLA 4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nativeValue.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 
10 
11 #ifndef nativeValue_H__
12 #define nativeValue_H__
13 
14 #include "appEnv.h"
15 #include "envValue.h"
16 
17 #ifdef DtUSE_UTILITIES_NAMESPACE
18 namespace DtUSE_UTILITIES_NAMESPACE
19 {
20 #endif
21 
23 
24 typedef std::shared_ptr<DtNativeValue> DtNativeValueSP;
25 
29 {
30 public:
31 
32  ~DtNativeValue();
33 
34  static DtEnvValueSP create(const DtString& nativeType,void* native);
35 
36  DtString nativeType() const;
37  void* nativeValue();
38 
39  static bool isNativeValue(const DtEnvValueSP& );
40  static DtNativeValue* castToNativeValue(const DtEnvValueSP& value);
41 
42 protected:
43  DtNativeValue(const DtString& nativeType,void* native);
44 
47 };
48 
49 #ifdef DtUSE_UTILITIES_NAMESPACE
50 }
51 #endif
52 
53 #endif
Base value object which simply stores a single string value.
Definition: envValue.h:44
void * myNativeValue
PTR to native data.
Definition: nativeValue.h:46
Wrap a native pointer in a DtEnvValue.
Definition: nativeValue.h:28
The library header.
class DT_DLL_MTL DtNativeValue
Definition: nativeValue.h:22
#define DT_DLL_MTL
Definition: vlMachineTypes.h:106
std::shared_ptr< DtNativeValue > DtNativeValueSP
Definition: nativeValue.h:24
Instances of DtString are used to represent strings.
Definition: vlString.h:36
Contains the DtEnvValue class as well as various typedefs.
std::shared_ptr< DtEnvValue > DtEnvValueSP
Definition: envValue.h:29

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)