VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
envList.h
Go to the documentation of this file.
1 /*****************************************************************************
2 ** Copyright (c) 1992-2010 MAK Technologies, Inc
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 
10 
11 #ifndef envList_H__
12 #define envList_H__
13 
14 #if DT_ENV_THREAD_SAFE
15 #include <vlutil/vlMutex.h>
16 #endif
17 
18 #include "envValue.h"
19 #include <list>
20 
21 #ifdef DtUSE_UTILITIES_NAMESPACE
22 namespace DtUSE_UTILITIES_NAMESPACE
23 {
24 #endif
25 
26 
27 
32 {
33 public:
34  friend class DtEnvironment;
35 
37  virtual DtEnvValueSP first() const;
38 
40  virtual DtEnvValueSP last() const;
41 
50  virtual DtEnvValueSP next(DtEnvValueSP) const;
51 
53  static bool isList(const DtEnvValueSP&);
54 
57  static DtEnvList* castToList(const DtEnvValueSP& value);
58 
59 protected:
60 
62  explicit DtEnvList(const DtString& value);
63 
65  virtual DtEnvValue* clone() const;
66 
68  virtual void cloneChildren(DtEnvList* list) const;
69 
71  virtual void append(DtEnvValueSP);
72 
74  virtual void remove(DtEnvValueSP);
75 
78 
79 #if DT_ENV_THREAD_SAFE
80  mutable DtMutex myChildrenMutex;
82 #endif
83 };
84 
85 #ifdef DtUSE_UTILITIES_NAMESPACE
86 }
87 #endif
88 
89 
90 #endif
DtBoost::shared_ptr< DtEnvValue > DtEnvValueSP
Definition: envValue.h:29
This file contains the declaration of DtMutex.
std::list< DtEnvValueSP > DtEnvValueList
Definition: envValue.h:33
Base value object which simply stores a single string value.
Definition: envValue.h:44
A Flyweight class for manipulating objects and their hierarchy The DtEnvironment wraps a DtEnvValuSP ...
Definition: environment.h:29
DtEnvValueList myValues
The list of values.
Definition: envList.h:77
instances of DtMutex are used to provide a platform independent mutual exclusion mechanism ...
Definition: vlMutex.h:31
#define DT_DLL_MTL
Definition: vlMachineTypes.h:106
Instances of DtString are used to represent strings.
Definition: vlString.h:29
Contains the DtEnvValue class as well as various typedefs.
DtEnvList is a list of DtEnvValue pointers.
Definition: envList.h:31

Document ID: Generated on Thu Sep 19 02:12:35 EDT 2024 from SVN revision 269601
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)