|
Open Model Railroad Network (OpenMRN)
|
Defines a repeated group of a given type and a given number of repeats. More...
#include <ConfigRepresentation.hxx>
Public Types | |
| using | base_type = ConfigEntryBase |
Public Member Functions | |
| constexpr unsigned | end_offset () const |
| template<int K> | |
| constexpr Group | entry () const |
| Group | entry (unsigned k) |
| void | handle_events (const EventOffsetCallback &fn) |
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 () |
| static constexpr unsigned | num_repeats () |
| static constexpr GroupConfigRenderer< Group > | 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. | |
Defines a repeated group of a given type and a given number of repeats.
Typical usage:
using AllConsumers = RepeatedGroup<ConsumerConfig, 3>;
then add AllConsumers as an entry to the enclosing group or segment.
Definition at line 333 of file ConfigRepresentation.hxx.
| using openlcb::RepeatedGroup< Group, N >::base_type = ConfigEntryBase |
Definition at line 336 of file ConfigRepresentation.hxx.
|
inlinestaticconstexpr |
Definition at line 363 of file ConfigRepresentation.hxx.
|
inlineconstexpr |
Definition at line 342 of file ConfigRepresentation.hxx.
|
inlineconstexpr |
Definition at line 350 of file ConfigRepresentation.hxx.
|
inline |
Definition at line 357 of file ConfigRepresentation.hxx.
|
inline |
Definition at line 369 of file ConfigRepresentation.hxx.
|
inlinestaticconstexpr |
Definition at line 346 of file ConfigRepresentation.hxx.
|
inlinestaticconstexpr |
Definition at line 338 of file ConfigRepresentation.hxx.