Public Member Functions |
| PidStoreHelper (const std::string &pid_location, unsigned int initial_indent=0) |
| ~PidStoreHelper () |
bool | Init () |
const PidDescriptor * | GetDescriptor (const std::string &pid_name, uint16_t manufacturer_id) const |
const PidDescriptor * | GetDescriptor (uint16_t param_id, uint16_t manufacturer_id) const |
const ola::messaging::Message * | BuildMessage (const ola::messaging::Descriptor *descriptor, const std::vector< std::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 std::string | MessageToString (const ola::messaging::Message *message) |
const std::string | PrettyPrintMessage (uint16_t manufacturer_id, bool is_set, uint16_t pid, const ola::messaging::Message *message) |
const std::string | SchemaAsString (const ola::messaging::Descriptor *descriptor) |
void | SupportedPids (uint16_t manufacturer_id, std::vector< std::string > *pid_names) const |
void | SupportedPids (uint16_t manufacturer_id, std::vector< const PidDescriptor * > *descriptors) const |
Constructor & Destructor Documentation
ola::rdm::PidStoreHelper::PidStoreHelper |
( |
const std::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 std::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
-
manufacturer_id | the manufacturer ID |
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, |
|
|
std::vector< std::string > * |
pid_names |
|
) |
| const |
Return the list of pids supported including manufacturer pids.
void ola::rdm::PidStoreHelper::SupportedPids |
( |
uint16_t |
manufacturer_id, |
|
|
std::vector< const 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: