LibCT 2.0

Include/StringValue.h

Go to the documentation of this file.
00001 // ------------------------------------------------------------------
00012 #ifndef _LIBCT_STRINGVALUE_H
00013 #define _LIBCT_STRINGVALUE_H
00014 
00015 #include "TemplateVariable.h"
00016 
00017 #include <string>
00018 
00019 namespace LibCT
00020 {
00022         class StringValue : public TemplateVariable<std::string>
00023         {
00024         public:
00026                 StringValue(VariableContainer* pContainer, const std::string& name)
00027                         : TemplateVariable(pContainer, name)
00028                 {
00029                 }
00030 
00033                 std::string ToString() const
00034                 {
00035                         return m_Value;
00036                 }
00037 
00040                 VariableType GetType() const
00041                 {
00042                         return VariableTypeString;
00043                 }
00044 
00047                 std::string     GetTypeString() const
00048                 {
00049                         return "String";
00050                 }
00051         };
00052 }
00053 
00054 
00055 #endif // _LIBCT_STRINGVALE_H