00001 /* -*- C++ -*- */ 00002 00003 /* COPYRIGHT 00004 * 00005 * This file is part of the Visual Effects Engine - VEE 00006 * 00007 * Read the "VEE-LICENSE" file for the license. 00008 * 00009 * Authors & Copyright: 00010 * 00011 * Tommi Ilmonen, Tuukka Heikura, Marko Myllymaa and 00012 * Janne Kontkanen 2001-2004 00013 * 00014 * Additional copyrights: Tekes 2003-2004 00015 * 00016 * firstname.lastname@hut.fi 00017 * 00018 */ 00019 00020 #ifndef VEE_VALUE_STR_H 00021 #define VEE_VALUE_STR_H 00022 00023 #include <vee_value.h> 00024 00025 #include <string> 00026 00028 class VEE_ValueString : public VEE_Value 00029 { 00030 public: 00031 VEE_ValueString(); 00032 VEE_ValueString(const std::string & s) : m_string(s) {} 00033 virtual ~VEE_ValueString(); 00034 00035 virtual VEE_Value * clone() const; 00036 00037 virtual bool getFloat(float *); 00038 virtual bool getInt(int *); 00039 virtual bool getVector3(VEE_Vector3 *); 00040 virtual bool getMatrix3(VEE_Matrix3 *); 00041 00042 const std::string & string() const { return m_string; } 00043 void setString(const std::string & s) { m_string = s; } 00044 00045 protected: 00046 std::string m_string; 00047 }; 00048 00049 #endif