| DtStandardVariableRecordFactory::DtStandardVariableRecordFactory |
( |
| ) |
|
default constructor Adds creators for the various Standard Variable Records.
| virtual DtStandardVariableRecordFactory::~DtStandardVariableRecordFactory |
( |
| ) |
|
|
virtual |
| virtual DtStandardVariableRecord* DtStandardVariableRecordFactory::createStandardVariableRecord |
( |
unsigned int |
recordType, |
|
|
void * |
addr = 0, |
|
|
unsigned int |
length = 0 |
|
) |
| const |
|
virtual |
Returns a Standard Variable Record pointer.
The user my delete it. Note that this method will return null if the Record Type is not registered. If any part of the address or length is illegal then this will return NULL. If only the recordType is passed in then an empty Record of the recordType will be created.
| virtual DtStandardVariableRecord* DtStandardVariableRecordFactory::createStandardVariableRecordFromNet |
( |
const char * |
addr, |
|
|
const char * |
endOfPdu |
|
) |
| const |
|
virtual |
This will attempt to parse a Standard Variable Record an address.
There must be at least a DtNetStandardVariableRecord to parse. It will use the Record Type and length to return a DtStandardVariableRecord *. This will be NULL any part of the parsing fails or the record is not registered in the factory.
| void DtStandardVariableRecordFactory::initialize |
( |
| ) |
|
Initialize the factory with the implemented Records Called in constructor.
Register a Record Type with a creator function.
The documentation for this class was generated from the following file: