|
geopm 3.2.1.dev237+gbe30cff60
GEOPM - Global Extensible Open Power Manager
|
#include <SDBusMessage.hpp>


Public Member Functions | |
| SDBusMessageImp () | |
| SDBusMessageImp (sd_bus_message *bus_message) | |
| virtual | ~SDBusMessageImp () |
| sd_bus_message * | get_sd_ptr (void) override |
| Get raw pointer to sd_bus struct. | |
| void | enter_container (char type, const std::string &contents) override |
| Enter a container in the message for reading. | |
| void | exit_container (void) override |
| Exit a container in the message for reading. | |
| virtual void | open_container (char type, const std::string &contents) override |
| Open a container in the message for writing. | |
| virtual void | close_container (void) override |
| Close a container in the message for writing. | |
| std::string | read_string (void) override |
| Read a string out of the message. | |
| double | read_double (void) override |
| Read a double out of the message. | |
| int | read_integer (void) override |
| Read an integer out of the message. | |
| void | append_strings (const std::vector< std::string > &write_values) override |
| Write an array of strings into the message. | |
| void | append_request (const geopm_request_s &request) override |
| Write an array of geopm_request_s into the message. | |
| bool | was_success (void) override |
| Determine if end of array has been reached. | |
Additional Inherited Members |
| geopm::SDBusMessageImp::SDBusMessageImp | ( | ) |
| geopm::SDBusMessageImp::SDBusMessageImp | ( | sd_bus_message * | bus_message | ) |
|
virtual |
|
overridevirtual |
Write an array of geopm_request_s into the message.
Wrapper around the "sd_bus_message_append(3)" function.
| [in] | Vector | of geopm_request_s to write into the message as an array. |
Implements geopm::SDBusMessage.
|
overridevirtual |
Write an array of strings into the message.
Wrapper around the "sd_bus_message_append_strv(3)" function.
| [in] | Vector | of strings to write into the message as an array. |
Implements geopm::SDBusMessage.
|
overridevirtual |
Close a container in the message for writing.
Wrapper around sd_bus_message_close_open_container(3)
Implements geopm::SDBusMessage.
|
overridevirtual |
Enter a container in the message for reading.
Wrapper around sd_bus_message_enter_container(3) function.
| type | [in] One of M_MESSAGE_TYPE_STRUCT or M_MESSAGE_TYPE_ARRAY which map to the related char values defined in "sd-bus.h". |
| contents | [in] The sd_bus string expression that describes the data types in the message. |
Implements geopm::SDBusMessage.
|
overridevirtual |
Exit a container in the message for reading.
Wrapper around sd_bus_message_exit_container(3) function.
Implements geopm::SDBusMessage.
|
overridevirtual |
Get raw pointer to sd_bus struct.
This value can be used to make sd_bus interface calls that require the raw pointer in the SDBus class.
Implements geopm::SDBusMessage.
|
overridevirtual |
Open a container in the message for writing.
Wrapper around sd_bus_message_open_container(3)
| type | [in] One of M_MESSAGE_TYPE_STRUCT or M_MESSAGE_TYPE_ARRAY which map to the related char values defined in "sd-bus.h". |
| contents | [in] The sd_bus string expression that describes the data types in the message. |
Implements geopm::SDBusMessage.
|
overridevirtual |
Read a double out of the message.
Wrapper around the "sd_bus_message_read(3)" function.
Implements geopm::SDBusMessage.
|
overridevirtual |
Read an integer out of the message.
Wrapper around the "sd_bus_message_read(3)" function.
Implements geopm::SDBusMessage.
|
overridevirtual |
Read a string out of the message.
Wrapper around the "sd_bus_message_read(3)" function.
Implements geopm::SDBusMessage.
|
overridevirtual |
Determine if end of array has been reached.
When iterating through an array container, the was_success() method can be used to determine if the last read from the container was successful. After a read from an array was successful the was_success() will return true, and if the end of the array has been reached, was_success() will return false. The return value from a read from an array container that was unsuccessful should be ignored.
Implements geopm::SDBusMessage.