Public Member Functions |
| PidStoreHelper (const string &pid_location, unsigned int initial_indent=0) |
| ~PidStoreHelper () |
bool | Init () |
const ola::rdm::PidDescriptor * | GetDescriptor (const string &pid_name, uint16_t manufacturer_id) const |
const ola::rdm::PidDescriptor * | GetDescriptor (uint16_t param_id, uint16_t manufacturer_id) const |
const ola::messaging::Message * | BuildMessage (const ola::messaging::Descriptor *descriptor, const vector< string > &inputs) |
const uint8_t * | SerializeMessage (const ola::messaging::Message *message, unsigned int *data_length) |
const ola::messaging::Message * | DeserializeMessage (const ola::messaging::Descriptor *descriptor, const uint8_t *data, unsigned int data_length) |
const string | MessageToString (const ola::messaging::Message *message) |
const string | PrettyPrintMessage (uint16_t manufacturer_id, bool is_set, uint16_t pid, const ola::messaging::Message *message) |
const string | SchemaAsString (const ola::messaging::Descriptor *descriptor) |
void | SupportedPids (uint16_t manufacturer_id, vector< string > *pid_names) const |
void | SupportedPids (uint16_t manufacturer_id, vector< const ola::rdm::PidDescriptor * > *descriptors) const |
Constructor & Destructor Documentation
ola::rdm::PidStoreHelper::PidStoreHelper |
( |
const string & |
pid_location, |
|
|
unsigned int |
initial_indent = 0 |
|
) |
| |
|
explicit |
ola::rdm::PidStoreHelper::~PidStoreHelper |
( |
| ) |
|
Member Function Documentation
Build a Message object from a series of input strings
const ola::rdm::PidDescriptor * ola::rdm::PidStoreHelper::GetDescriptor |
( |
const string & |
pid_name, |
|
|
uint16_t |
manufacturer_id |
|
) |
| const |
Lookup a PidDescriptor by name.
- Parameters
-
manufacturer_id | the ESTA id of the manufacturer_id |
pid_name | the name of the pid |
- Returns
- a PidDescriptor or NULL if the pid wasn't found.
const ola::rdm::PidDescriptor * ola::rdm::PidStoreHelper::GetDescriptor |
( |
uint16_t |
pid_value, |
|
|
uint16_t |
manufacturer_id |
|
) |
| const |
Lookup a PidDescriptor by pid value.
- Parameters
-
manufacturer_id | the ESTA id of the manufacturer_id |
pid_value | the pid to lookup |
- Returns
- a PidDescriptor or NULL if the pid wasn't found.
bool ola::rdm::PidStoreHelper::Init |
( |
| ) |
|
Convert a message to a string
- Parameters
-
message | the Message object to print |
- Returns
- a formatted string representation of the message.
const string ola::rdm::PidStoreHelper::PrettyPrintMessage |
( |
uint16_t |
manufacturer_id, |
|
|
bool |
is_set, |
|
|
uint16_t |
pid, |
|
|
const ola::messaging::Message * |
message |
|
) |
| |
Pretty print a RDM message based on the PID, if we can't find a custom MessagePrinter we default to the GenericMessagePrinter.
- Parameters
-
pid | the pid value |
message | the Message object to print |
- Returns
- a formatted string representation of the message.
Return a string describing the schema for a descriptor
const uint8_t * ola::rdm::PidStoreHelper::SerializeMessage |
( |
const ola::messaging::Message * |
message, |
|
|
unsigned int * |
data_length |
|
) |
| |
Serialize a message to binary format
void ola::rdm::PidStoreHelper::SupportedPids |
( |
uint16_t |
manufacturer_id, |
|
|
vector< string > * |
pid_names |
|
) |
| const |
Return the list of pids supported including manufacturer pids.
void ola::rdm::PidStoreHelper::SupportedPids |
( |
uint16_t |
manufacturer_id, |
|
|
vector< const ola::rdm::PidDescriptor * > * |
descriptors |
|
) |
| const |
Return the list of PidDescriptors supported. The caller does not owner the pointers, they are valid for the lifetime of the PidStoreHelper.
The documentation for this class was generated from the following files: