#include <cstruct.h>
Public Methods | |
sFieldWrapper () | |
virtual | ~sFieldWrapper () |
virtual const char* | fieldType ()=0 |
virtual void | getAsString (char *buf, int bufsize)=0 |
virtual void | setAsString (const char *value)=0 |
Additional getter/setter members will be necessary to make sFieldWrappers useful.
|
Constructor. In subclasses, the constructor will need to take a pointer to actual object or member it is wrapping, and store it in a private data member (also to be added in subclasses). |
|
Destructor. |
|
Must be redefined in subclasses to return the type of the field as a string. |
|
Must be redefined in subclasses to return the value of the field as a string. Other (more specific) get..() methods will typically need to be added to the class to make it useful. |
|
Must be redefined in subclasses to set the value of the field as a string. Other (more specific) set..() methods will typically need to be added to the class to make it useful. |