00001 #ifndef STRINGPROPERTY_H
00002 #define STRINGPROPERTY_H
00003
00004 #include "Types.h"
00005 #include "AbstractProperty.h"
00006
00007 namespace RenderTools {
00008
00009 class StringProperty : public AbstractProperty {
00010 public:
00011
00012 StringProperty( const shared_ptr< string > & pointer );
00013
00014 virtual void onInitialize( void );
00015 virtual const string getTypeName( bool ofComponent = false ) const;
00016 virtual bool isString( void ) const ;
00017 virtual bool setValue( const string value, int element = -1 );
00018 virtual const string getValue( int element = -1 ) const ;
00019 virtual const void * getPointer( unsigned int offset ) const ;
00020
00021 protected:
00022 shared_ptr< string > m_pointer;
00023 };
00024
00025
00026 };
00027
00028
00029 #endif