44 #if defined (PLAYER_STATIC)
45 #define PLAYERCORE_EXPORT
46 #elif defined (playercore_EXPORTS)
47 #define PLAYERCORE_EXPORT __declspec (dllexport)
49 #define PLAYERCORE_EXPORT __declspec (dllimport)
52 #define PLAYERCORE_EXPORT
63 Property (
const char *newKey,
bool readOnly);
67 virtual const char* GetKey (
void)
const {
return key; }
68 virtual void SetKey (
const char *newKey);
69 virtual void GetValueToMessage (
void *data)
const = 0;
70 virtual void SetValueFromMessage (
const void *data) = 0;
72 virtual bool KeyIsEqual (
const char *rhs);
75 virtual bool ReadConfig (
ConfigFile *cf,
int section) = 0;
89 BoolProperty (
const char *newKey,
bool newValue,
bool readOnly);
93 bool GetValue (
void)
const {
return value; }
94 void SetValue (
bool newValue);
95 void GetValueToMessage (
void *data)
const;
96 void SetValueFromMessage (
const void *data);
99 virtual bool ReadConfig (
ConfigFile *cf,
int section);
102 operator bool (
void) {
return value; }
104 bool operator= (
bool rhs);
117 IntProperty (
const char *newKey,
int newValue,
bool readOnly);
121 int GetValue (
void)
const {
return value; }
122 void SetValue (
int newValue);
123 void GetValueToMessage (
void *data)
const;
124 void SetValueFromMessage (
const void *data);
127 virtual bool ReadConfig (
ConfigFile *cf,
int section);
130 operator int (
void) {
return value; }
132 int operator= (
int rhs);
145 DoubleProperty (
const char *newKey,
double newValue,
bool readOnly);
149 double GetValue (
void)
const {
return value; }
150 void SetValue (
double newValue);
151 void GetValueToMessage (
void *data)
const;
152 void SetValueFromMessage (
const void *data);
155 virtual bool ReadConfig (
ConfigFile *cf,
int section);
158 operator double (
void) {
return value; }
160 double operator= (
double rhs);
173 StringProperty (
const char *newKey,
const char *newValue,
bool readOnly);
178 const char* GetValue (
void)
const {
return value; }
179 void SetValue (
const char *newValue);
180 void GetValueToMessage (
void *data)
const;
181 void SetValueFromMessage (
const void *data);
184 virtual bool ReadConfig (
ConfigFile *cf,
int section);
187 operator const char* (void) {
return value; }
189 const char* operator= (
const char* rhs);
213 bool AddProperty (
const char *key,
Property *property);
214 Property* GetProperty (
const char *key);
Boolean property class.
Definition property.h:87
BoolProperty(const char *newKey, bool newValue, bool readOnly, Driver *driver, ConfigFile *cf, int section)
Constructor that registers the property with a driver as well while it is constructed.
Class for loading configuration file information.
Definition configfile.h:197
Double property class.
Definition property.h:143
DoubleProperty(const char *newKey, double newValue, bool readOnly, Driver *driver, ConfigFile *cf, int section)
Constructor that registers the property with a driver as well while it is constructed.
Base class for all drivers.
Definition driver.h:109
Integer property class.
Definition property.h:115
IntProperty(const char *newKey, int newValue, bool readOnly, Driver *driver, ConfigFile *cf, int section)
Constructor that registers the property with a driver as well while it is constructed.
Property bag class: stores registered properties.
Definition property.h:208
Property base class.
Definition property.h:60
String Property Class.
Definition property.h:171
StringProperty(const char *newKey, const char *newValue, bool readOnly, Driver *driver, ConfigFile *cf, int section)
Constructor that registers the property with a driver as well while it is constructed.
Property node structure.
Definition property.h:200