Definition at line 378 of file HeyParser.hh.
Public Member Functions | |
HeyPropertyInfo (const char *name, unsigned int commands, const char *specifiers=NULL, const char *usage=NULL) | |
Construct a description of a property. | |
virtual | ~HeyPropertyInfo (void) |
Deconstruct a HeyPropertyInfo. | |
const char * | getName (void) const |
unsigned int | getCommands (void) const |
const char * | getSpecifiers (void) const |
const char * | getUsage (void) const |
Static Public Attributes | |
HeyPropertyInfo | HPI_NULL |
Typed NULL for HeyPropertyInfo's. | |
Private Attributes | |
const char * | hpi_Name |
The property's name. | |
unsigned int | hpi_Commands |
The bitmap of commands supported by this property. | |
const char * | hpi_Specifiers |
The string describing the specifier argument, if any. | |
const char * | hpi_Usage |
The string describing how to use this property. | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const HeyPropertyInfo &hpi) |
Output stream operator for HeyPropertyInfo objects. | |
std::ostream & | operator<< (std::ostream &os, const HeyPropertyInfo hpi[]) |
Output stream operator for an HPI_NULL terminated array of HeyPropertyInfo objects. |
|
Construct a description of a property. For example, if a server supported the following requests on a 'string' object:
The 'suites' for these requests would be encoded by the following array of HeyPropertyInfo's.
The first object indicates that the 'string' property supports CREATE_PROPERTY and takes two arguments, the string identifier and the string's value. The second and third objects also describe the 'string' property, but this time, they document what happens when used with the get, set, and delete actions. These objects are then grouped in an array so they can be easily sent to an output stream, like so:
The result would then look like the following:
Definition at line 460 of file HeyParser.hh. References hpi_Commands, hpi_Name, hpi_Specifiers, and hpi_Usage. |
|
Definition at line 489 of file HeyParser.hh. References hpi_Commands. |
|
Definition at line 481 of file HeyParser.hh. References hpi_Name. |
|
Definition at line 497 of file HeyParser.hh. References hpi_Specifiers. |
|
Definition at line 505 of file HeyParser.hh. References hpi_Usage. |
|
Output stream operator for an HPI_NULL terminated array of HeyPropertyInfo objects.
Definition at line 552 of file HeyParser.hh. |
|
Output stream operator for HeyPropertyInfo objects.
Definition at line 517 of file HeyParser.hh. |