Open Lighting Architecture
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ola::rdm::PidStore Class Reference

Detailed Description

Stores the PidDescriptors for a set of PIDs in a common namespace.

Public Member Functions

 PidStore (const vector< const PidDescriptor * > &pids)
 ~PidStore ()
unsigned int PidCount () const
void AllPids (vector< const PidDescriptor * > *pids) const
const PidDescriptorLookupPID (uint16_t pid_value) const
const PidDescriptorLookupPID (const string &pid_name) const

Constructor & Destructor Documentation

ola::rdm::PidStore::PidStore ( const vector< const PidDescriptor * > &  pids)
explicit

Create a new PidStore

Parameters
alist of PidDescriptors for this store.
Precondition
the names and values for the pids in the vector are unique.
ola::rdm::PidStore::~PidStore ( )

Clean up.

Member Function Documentation

void ola::rdm::PidStore::AllPids ( vector< const PidDescriptor * > *  pids) const

Return a list of all pids

Parameters
apointer to a vector in which to put the PidDescriptors.
const PidDescriptor * ola::rdm::PidStore::LookupPID ( uint16_t  pid_value) const

Lookup a PID by value.

Parameters
pid_valuethe 16 bit pid value.
const PidDescriptor * ola::rdm::PidStore::LookupPID ( const string &  pid_name) const

Lookup a PID by name

Parameters
pid_namethe name of the pid.

The documentation for this class was generated from the following files: