envAttribute.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 
00008 
00009 #ifndef envAttribute_H_
00010 #define envAttribute_H_
00011 
00013 template <typename AttribType>
00014 class DtEnvAttribute
00015 {
00016 public:
00017    DtEnvAttribute(const DtString& name,DtEnvValueSP boundValue);
00018 
00019    AttribType get() const;
00020    void       set(AttribType val);
00021 
00022 protected:
00023    static DtString   decode(AttribType t);
00024    static AttribType encode(const DtString& value);
00025 
00026    DtEnvValueWP myValue;
00027    AttribType   myCache;
00028 };
00029 
00030 #define envAttribute_INC
00031 #include "envAttribute.inl"
00032 #undef envAttribute_INC
00033 
00034 #endif

Document ID: Generated on Tue Oct 11 19:41:03 EDT 2011 from SVN revision 107422
Copyright © 2005-2011 VT MÄK Inc. All Rights Reserved (www.mak.com)