31 #ifndef INCLUDE_OLA_RDM_PIDSTOREHELPER_H_ 32 #define INCLUDE_OLA_RDM_PIDSTOREHELPER_H_ 35 #include <ola/messaging/Descriptor.h> 36 #include <ola/messaging/SchemaPrinter.h> 53 unsigned int initial_indent = 0);
59 const std::string &pid_name,
60 uint16_t manufacturer_id)
const;
63 uint16_t manufacturer_id)
const;
67 const std::vector<std::string> &inputs);
70 unsigned int *data_length);
75 unsigned int data_length);
80 uint16_t manufacturer_id,
89 std::vector<std::string> *pid_names)
const;
92 uint16_t manufacturer_id,
93 std::vector<const PidDescriptor*> *descriptors)
const;
96 const std::string m_pid_location;
106 #endif // INCLUDE_OLA_RDM_PIDSTOREHELPER_H_ bool Init()
Init the PidStoreHelper, this loads the PID store.
Definition: PidStoreHelper.cpp:61
const std::string 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.
Definition: PidStoreHelper.cpp:165
const PidDescriptor * GetDescriptor(const std::string &pid_name, uint16_t manufacturer_id) const
Lookup a PidDescriptor by name.
Definition: PidStoreHelper.cpp:78
Serialize an RDM message.
Definition: StringMessageBuilder.h:51
Holds information about RDM PIDs.
const ola::messaging::Message * BuildMessage(const ola::messaging::Descriptor *descriptor, const std::vector< std::string > &inputs)
Build a Message object from a series of input strings.
Definition: PidStoreHelper.cpp:107
Definition: MessageSerializer.h:41
void SupportedPids(uint16_t manufacturer_id, std::vector< std::string > *pid_names) const
Return the list of PIDs supported including manufacturer PIDs.
Definition: PidStoreHelper.cpp:241
Used for displaying the RDM data to the command line.
Definition: SchemaPrinter.h:35
const std::string MessageToString(const ola::messaging::Message *message)
Convert a message to a string.
Definition: PidStoreHelper.cpp:148
Definition: MessageDeserializer.h:45
const uint8_t * SerializeMessage(const ola::messaging::Message *message, unsigned int *data_length)
Serialize a message to binary format.
Definition: PidStoreHelper.cpp:124
Definition: RDMMessagePrinters.h:51
PidStoreHelper(const std::string &pid_location, unsigned int initial_indent=0)
Set up a new PidStoreHelper object.
Definition: PidStoreHelper.cpp:39
Definition: Descriptor.h:403
Builds a Messagse object from a list of strings and a Descriptor.
const ola::messaging::Message * DeserializeMessage(const ola::messaging::Descriptor *descriptor, const uint8_t *data, unsigned int data_length)
DeSerialize a message.
Definition: PidStoreHelper.cpp:135
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
The root of the RDM parameter descriptor store.
Definition: PidStore.h:68
~PidStoreHelper()
Clean up.
Definition: PidStoreHelper.cpp:51
Inflate a message from raw data.
const std::string SchemaAsString(const ola::messaging::Descriptor *descriptor)
Return a string describing the schema for a descriptor.
Definition: PidStoreHelper.cpp:230
Definition: PidStoreHelper.h:50
Definition: PidStore.h:246