Open Lighting Architecture
0.9.6
|
Holds the PidDescriptors for a single manufacturer.
Public Member Functions | |
PidStore (const std::vector< const PidDescriptor * > &pids) | |
Create a new PidStore with the given PidDescriptors. | |
~PidStore () | |
Clean up. | |
unsigned int | PidCount () const |
The number of PidDescriptors in this store. | |
void | AllPids (std::vector< const PidDescriptor * > *pids) const |
Return a list of all PidDescriptors. | |
const PidDescriptor * | LookupPID (uint16_t pid_value) const |
Lookup a PidDescriptor by PID. | |
const PidDescriptor * | LookupPID (const std::string &pid_name) const |
Lookup a PidDescriptor by parameter name. |
|
explicit |
Create a new PidStore with the given PidDescriptors.
pids | a list of PidDescriptors to use. |
void ola::rdm::PidStore::AllPids | ( | std::vector< const PidDescriptor * > * | pids | ) | const |
Return a list of all PidDescriptors.
[out] | pids | a vector which is populated with a list of PidDescriptors. |
The pointers returned are valid for the life of the PidStore object.
const PidDescriptor * ola::rdm::PidStore::LookupPID | ( | uint16_t | pid_value | ) | const |
Lookup a PidDescriptor by PID.
pid_value | the PID to lookup. |
Lookup a PID by value.
pid_value | the 16 bit pid value. |
const PidDescriptor * ola::rdm::PidStore::LookupPID | ( | const std::string & | pid_name | ) | const |
Lookup a PidDescriptor by parameter name.
pid_name | the name of the parameter to look for. |
Lookup a PID by name
pid_name | the name of the pid. |
|
inline |
The number of PidDescriptors in this store.