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-2026 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 DtEnvValue* clone() const;
38 
40  virtual DtEnvValueSP first() const;
41 
43  virtual DtEnvValueSP last() const;
44 
53  virtual DtEnvValueSP next(DtEnvValueSP) const;
54 
56  static bool isList(const DtEnvValueSP&);
57 
60  static DtEnvList* castToList(const DtEnvValueSP& value);
61 
62 protected:
63 
65  explicit DtEnvList(const DtString& value);
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
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:118
Instances of DtString are used to represent strings.
Definition: vlString.h:38
Contains the DtEnvValue class as well as various typedefs.
std::shared_ptr< DtEnvValue > DtEnvValueSP
Definition: envValue.h:29
DtEnvList is a list of DtEnvValue pointers.
Definition: envList.h:31

Document ID: Generated on Mon Sep 28 00:09:32 EDT 2026 from SVN revision 295353
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)