Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
openlcb::GroupConfigRenderer< Body > Class Template Reference

Helper class for rendering the cdi.xml of groups, segments and the toplevel CDI node. More...

#include <ConfigRenderer.hxx>

Public Types

typedef GroupConfigOptions OptionsType
 

Public Member Functions

constexpr GroupConfigRenderer (unsigned replication, Body body)
 
template<typename... Args>
void render_cdi (string *s, Args... args)
 

Private Attributes

unsigned replication_
 For regular groups, the count of replicas.
 
Body body_
 Object representing the contents of this group.
 

Detailed Description

template<class Body>
class openlcb::GroupConfigRenderer< Body >

Helper class for rendering the cdi.xml of groups, segments and the toplevel CDI node.

Definition at line 429 of file ConfigRenderer.hxx.

Member Typedef Documentation

◆ OptionsType

template<class Body >
typedef GroupConfigOptions openlcb::GroupConfigRenderer< Body >::OptionsType

Definition at line 433 of file ConfigRenderer.hxx.

Constructor & Destructor Documentation

◆ GroupConfigRenderer()

template<class Body >
constexpr openlcb::GroupConfigRenderer< Body >::GroupConfigRenderer ( unsigned  replication,
Body  body 
)
inlineconstexpr

Definition at line 435 of file ConfigRenderer.hxx.

Member Function Documentation

◆ render_cdi()

template<class Body >
template<typename... Args>
void openlcb::GroupConfigRenderer< Body >::render_cdi ( string *  s,
Args...  args 
)
inline

Definition at line 441 of file ConfigRenderer.hxx.

Member Data Documentation

◆ body_

template<class Body >
Body openlcb::GroupConfigRenderer< Body >::body_
private

Object representing the contents of this group.

Must have a render_content_cdi() call.

Definition at line 508 of file ConfigRenderer.hxx.

◆ replication_

template<class Body >
unsigned openlcb::GroupConfigRenderer< Body >::replication_
private

For regular groups, the count of replicas.

Definition at line 505 of file ConfigRenderer.hxx.


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