ValueBase.h

Go to the documentation of this file.
00001 #ifndef __VALUEBASE_H__
00002 #define __VALUEBASE_H__
00003 
00004 /*
00005 
00006 $Header$
00007 
00008 */
00009 
00010 #include <vector>
00011 
00012 #include "Support.h"
00013 #include "String.h"
00014 
00015 typedef enum
00016 {
00017   VALUE_TYPE_INT     = 'd',
00018   VALUE_TYPE_UINT    = 'u',
00019   VALUE_TYPE_CHAR    = 'c',
00020   VALUE_TYPE_STRING  = 's',
00021   VALUE_TYPE_DOUBLE  = 'f',
00022   VALUE_TYPE_POINTER = 'p',
00023   VALUE_TYPE_OBJECT  = 'o'
00024 } ValueType;
00025 
00026 using namespace std;
00027 
00028 class ValueBase : public Support
00029 {
00030 public:
00031 
00032   ValueBase();
00033   virtual ~ValueBase();
00034 
00035   virtual int set(const ValueBase *value) = 0;
00036 
00037   virtual int toString(String &) const = 0;
00038   virtual int fromString(const String &) = 0;
00039 
00040 };
00041 
00042 #endif

Generated on Thu Sep 6 20:11:25 2007 for Pylon Application Platform by  doxygen 1.5.1