Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
openlcb::AtomConfigRenderer Class Reference

Helper class for rendering an atom data element into the cdi.xml. More...

#include <ConfigRenderer.hxx>

Public Types

enum  { SKIP_SIZE = 0xffffffff }
 
typedef AtomConfigOptions OptionsType
 

Public Member Functions

constexpr AtomConfigRenderer (const char *tag, unsigned size)
 
template<typename... Args>
void render_cdi (string *s, Args... args) const
 

Private Attributes

const char * tag_
 XML tag for this atom.
 
unsigned size_
 The size attribute of the configuration atom.
 

Detailed Description

Helper class for rendering an atom data element into the cdi.xml.

Definition at line 109 of file ConfigRenderer.hxx.

Member Typedef Documentation

◆ OptionsType

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Definition at line 112 of file ConfigRenderer.hxx.

Constructor & Destructor Documentation

◆ AtomConfigRenderer()

constexpr openlcb::AtomConfigRenderer::AtomConfigRenderer ( const char *  tag,
unsigned  size 
)
inlineconstexpr

Definition at line 119 of file ConfigRenderer.hxx.

Member Function Documentation

◆ render_cdi()

template<typename... Args>
void openlcb::AtomConfigRenderer::render_cdi ( string *  s,
Args...  args 
) const
inline

Definition at line 125 of file ConfigRenderer.hxx.

Member Data Documentation

◆ size_

unsigned openlcb::AtomConfigRenderer::size_
private

The size attribute of the configuration atom.

Definition at line 146 of file ConfigRenderer.hxx.

◆ tag_

const char* openlcb::AtomConfigRenderer::tag_
private

XML tag for this atom.

Definition at line 144 of file ConfigRenderer.hxx.


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