VR-Link API Documentation for HLA 1.3
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
38 #else
40 typedef DtEnvValueList::iterator DtEnvValueIterator;
41 #endif
42 
46 {
47 public:
48  friend class DT_DLL_MTL DtEnvironment;
49  friend class DtEnvList;
50 
51 #define RESERVED_VALUE(N) (1 << N)
53  {
54  Value = 0,
55  Listed = 1,
59 
62  };
63 
64  explicit DtEnvValue(const DtString& value);
65  virtual ~DtEnvValue();
66 
68  virtual DtString value() const;
69 
71  virtual void setValue(const DtString& value);
72 
74  virtual DtEnvValueSP parent() const;
75 
77  virtual void setParent(DtEnvValueSP parent);
78 
80  DtEnvValueFormat format() const;
81 
82 protected:
83  virtual void valueChanged();
84  virtual void childChanged(DtEnvValue*);
85 
87 
88  void setLocation(const DtEnvValueList::iterator& location);
89  DtEnvValueList::iterator nextIter() const;
90 
92  virtual DtEnvValue* clone() const;
93 
98 };
99 
100 #ifdef DtUSE_UTILITIES_NAMESPACE
101 }
102 #endif
103 
104 
105 #endif

Document ID: Generated on Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)