00001 // -*- mode: c++ -*- 00002 00003 #ifndef MIX_VALUE_H_ 00004 #define MIX_VALUE_H_ 00005 00006 #include "classes.h" 00007 #include "Node.h" 00008 00009 namespace MiX{ 00010 00011 template <class charT,class char_traits,class xml_traits> 00012 class Value : virtual public Node<charT,char_traits,xml_traits>{ 00013 public: 00014 MiX_Template_Typedef(charT,char_traits,xml_traits); 00015 typedef Value<charT,char_traits,xml_traits> this_type; 00016 private: 00017 string_type val_; 00018 protected: 00019 Value(const string_type& val){ setValue(val); }; 00025 Value(const this_type& src){ }; 00026 public: 00028 virtual ~Value()throw() { }; 00030 void setValue(const string_type& val) { val_ = val; }; 00032 string_type getValue() const { return val_; }; 00033 }; 00034 } 00035 00036 #endif