VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
envAttribute.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 envAttribute_H_
12 #define envAttribute_H_
13 
16 template <typename AttribType>
18 {
19 public:
20  DtEnvAttribute(const DtString& name,DtEnvValueSP boundValue);
21 
22  AttribType get() const;
23  void set(AttribType val);
24 
25 protected:
26  static DtString decode(AttribType t);
27  static AttribType encode(const DtString& value);
28 
30  AttribType myCache;
31 };
32 
33 #define envAttribute_INC
34 #include "envAttribute.inl"
35 #undef envAttribute_INC
36 
37 #endif
DtBoost::shared_ptr< DtEnvValue > DtEnvValueSP
Definition: envValue.h:29
AttribType myCache
Definition: envAttribute.h:30
A templated class which represent an attribute of a DtEnvObject.
Definition: envAttribute.h:17
DtEnvAttribute(const DtString &name, DtEnvValueSP boundValue)
static DtString decode(AttribType t)
DtEnvValueWP myValue
Definition: envAttribute.h:29
void set(AttribType val)
DtBoost::weak_ptr< DtEnvValue > DtEnvValueWP
Definition: envValue.h:32
static AttribType encode(const DtString &value)
Instances of DtString are used to represent strings.
Definition: vlString.h:29

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)