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

Detailed Description

The root PID Store.

Public Types

typedef map< uint16_t, const
PidStore * > 
ManufacturerMap

Public Member Functions

 RootPidStore (const PidStore *esta_store, const ManufacturerMap &manufacturer_stores, uint64_t version=0)
 ~RootPidStore ()
uint64_t Version () const
const PidStoreEstaStore () const
const PidStoreManufacturerStore (uint16_t esta_id) const
const PidDescriptorGetDescriptor (const string &pid_name) const
const PidDescriptorGetDescriptor (const string &pid_name, uint16_t manufacturer_id) const
const PidDescriptorGetDescriptor (uint16_t pid_value) const
const PidDescriptorGetDescriptor (uint16_t pid_value, uint16_t manufacturer_id) const

Static Public Member Functions

static const RootPidStoreLoadFromFile (const std::string &file, bool validate=true)
static const RootPidStoreLoadFromDirectory (const std::string &directory, bool validate=true)

Constructor & Destructor Documentation

ola::rdm::RootPidStore::~RootPidStore ( )

Clean up

Member Function Documentation

const PidDescriptor * ola::rdm::RootPidStore::GetDescriptor ( const string &  pid_name) const

Lookup a PidDescriptor by name.

Parameters
pid_namethe name of the pid
Returns
a PidDescriptor or NULL if the pid wasn't found.
const PidDescriptor * ola::rdm::RootPidStore::GetDescriptor ( const string &  pid_name,
uint16_t  manufacturer_id 
) const

Lookup a PidDescriptor by name in both the ESTA PIDs and any manufacturer PIDs.

Parameters
manufacturer_idthe ESTA id of the manufacturer_id
pid_namethe name of the pid
Returns
a PidDescriptor or NULL if the pid wasn't found.
const PidDescriptor * ola::rdm::RootPidStore::GetDescriptor ( uint16_t  pid_value) const

Lookup a PidDescriptor by pid value.

Parameters
pid_valuethe pid to lookup
Returns
a PidDescriptor or NULL if the pid wasn't found.
const PidDescriptor * ola::rdm::RootPidStore::GetDescriptor ( uint16_t  pid_value,
uint16_t  manufacturer_id 
) const

Lookup a PidDescriptor by pid value in both the ESTA PIDs and any manufacturer PIDs.

Parameters
manufacturer_idthe ESTA id of the manufacturer_id
pid_valuethe pid to lookup
Returns
a PidDescriptor or NULL if the pid wasn't found.
const RootPidStore * ola::rdm::RootPidStore::LoadFromDirectory ( const std::string &  directory,
bool  validate = true 
)
static

Load all pid definition files in a directory

const RootPidStore * ola::rdm::RootPidStore::LoadFromFile ( const std::string &  file,
bool  validate = true 
)
static

Load a pid store from a file

const PidStore * ola::rdm::RootPidStore::ManufacturerStore ( uint16_t  esta_id) const

Lookup a PidStore based on Manufacturer Id

Parameters
esta_idthe manufacturer id
Returns
A pointer to a PidStore or NULL if not found

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