|
Open Model Railroad Network (OpenMRN)
|
Implementation class for internal data bytes configuration entries. More...
#include <ConfigEntry.hxx>
Public Member Functions | |
| constexpr unsigned | end_offset () const |
| string | read (int fd) const |
| void | write (int fd, string data) const |
Public Member Functions inherited from openlcb::ConfigReference | |
| constexpr | ConfigReference (unsigned offset) |
| Initializes the config reference from a configuration space offset. | |
| constexpr | ConfigReference (const ConfigReference &ref) |
| Initializes the config reference from an existing config reference. | |
| constexpr unsigned | offset () const |
Static Public Member Functions | |
| static constexpr unsigned | size () |
| Storage bytes occupied by the instance in the config file. | |
| static constexpr EmptyGroupConfigRenderer | config_renderer () |
Static Public Member Functions inherited from openlcb::ConfigEntryBase | |
| template<typename... Args> | |
| static constexpr GroupConfigOptions | group_opts (Args... args) |
| static void | handle_events (const EventOffsetCallback &fn) |
Additional Inherited Members | |
Protected Member Functions inherited from openlcb::ConfigEntryBase | |
| template<class T > | |
| T | raw_read (int fd) const |
| Reads a given typed variable from the configuration file. | |
| template<class T > | |
| void | raw_write (int fd, const T &value) const |
| Writes a given typed variable to the configuration file. | |
| void | repeated_read (int fd, void *buf, size_t size) const |
| Performs a reliable read from the given FD. | |
| void | repeated_write (int fd, const void *buf, size_t size) const |
| Performs a reliable write to the given FD. | |
Protected Attributes inherited from openlcb::ConfigReference | |
| unsigned | offset_ |
| zero-based offset from the beginning of the configuration file. | |
Implementation class for internal data bytes configuration entries.
These are stored like a pascal string: the first byte is the length, the rest is the payload. The template argument is the storage size. These data elements are not rendered in the CDI in a user-visible form.
Definition at line 409 of file ConfigEntry.hxx.
|
inlinestaticconstexpr |
Definition at line 431 of file ConfigEntry.hxx.
|
inlineconstexpr |
Definition at line 426 of file ConfigEntry.hxx.
|
inline |
Definition at line 436 of file ConfigEntry.hxx.
|
inlinestaticconstexpr |
Storage bytes occupied by the instance in the config file.
Definition at line 421 of file ConfigEntry.hxx.
|
inline |
Definition at line 444 of file ConfigEntry.hxx.