VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
envValue.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 
10 
11 #ifndef envValue_H__
12 #define envValue_H__
13 
14 #if DT_ENV_THREAD_SAFE
15 #include <vlutil/vlThreadSafe.h>
16 #endif
17 
18 #include <vlutil/vlSmartPointers.h>
19 #include <vlutil/vlString.h>
20 #include <list>
21 
22 #ifdef DtUSE_UTILITIES_NAMESPACE
23 namespace DtUSE_UTILITIES_NAMESPACE
24 {
25 #endif
26 
27 
28 class DtEnvironment;
29 class DtEnvValue;
30 
31 typedef DtBoost::shared_ptr<DtEnvValue> DtEnvValueSP;
32 typedef DtBoost::weak_ptr<DtEnvValue> DtEnvValueWP;
33 typedef std::list<DtEnvValueSP> DtEnvValueList;
34 
35 #if DT_ENV_THREAD_SAFE
37 #else
39 typedef DtEnvValueList::iterator DtEnvValueIterator;
40 #endif
41 
45 {
46 public:
47  friend class DT_DLL_MTL DtEnvironment;
48  friend class DtEnvList;
49 
50 #define RESERVED_VALUE(N) (1 << N)
52  {
53  Value = 0,
54  Listed = 1,
58 
61  };
62 
63  explicit DtEnvValue(const DtString& value);
64  virtual ~DtEnvValue();
65 
67  virtual DtString value() const;
68 
70  virtual DtString unmodifiedValue() const;
71 
73  virtual void setValue(const DtString& value);
74 
76  virtual DtEnvValueSP parent() const;
77 
79  virtual void setParent(DtEnvValueSP parent);
80 
82  DtEnvValueFormat format() const;
83 
84 protected:
85  virtual void valueChanged();
86  virtual void childChanged(DtEnvValue*);
87 
89 
91  virtual DtEnvValue* clone() const;
92 
97 };
98 
99 #ifdef DtUSE_UTILITIES_NAMESPACE
100 }
101 #endif
102 
103 
104 #endif

Document ID: Generated on Fri May 15 06:36:13 EDT 2015 from SVN revision 153263
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)