Integer property class. More...

#include <property.h>

Inheritance diagram for IntProperty:
Inheritance graph
Collaboration diagram for IntProperty:
Collaboration graph

Detailed Description

Integer property class.

Public Member Functions

 IntProperty (const char *newKey, int newValue, bool readOnly)
 
 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.
 
int GetValue (void) const
 
void SetValue (int newValue)
 
void GetValueToMessage (void *data) const
 
void SetValueFromMessage (const void *data)
 
virtual bool ReadConfig (ConfigFile *cf, int section)
 
 operator int (void)
 
const IntPropertyoperator= (const IntProperty &rhs)
 
int operator= (int rhs)
 
- Public Member Functions inherited from Property
 Property (const char *newKey, bool readOnly)
 
virtual const char * GetKey (void) const
 
virtual void SetKey (const char *newKey)
 
virtual bool KeyIsEqual (const char *rhs)
 

Private Attributes

int value
 

Additional Inherited Members

- Protected Attributes inherited from Property
char * key
 
bool readonly
 

Member Function Documentation

◆ GetValueToMessage()

void IntProperty::GetValueToMessage ( void * data) const
virtual

Implements Property.

◆ ReadConfig()

virtual bool IntProperty::ReadConfig ( ConfigFile * cf,
int section )
virtual

Implements Property.

◆ SetValueFromMessage()

void IntProperty::SetValueFromMessage ( const void * data)
virtual

Implements Property.


The documentation for this class was generated from the following file: