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

Helper class for rendering a numeric data element into the cdi.xml. More...

#include <ConfigRenderer.hxx>

Public Types

enum  { SKIP_SIZE = 0xffffffff }
 
typedef NumericConfigOptions OptionsType
 

Public Member Functions

constexpr NumericConfigRenderer (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 a numeric data element into the cdi.xml.

Definition at line 228 of file ConfigRenderer.hxx.

Member Typedef Documentation

◆ OptionsType

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Definition at line 231 of file ConfigRenderer.hxx.

Constructor & Destructor Documentation

◆ NumericConfigRenderer()

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

Definition at line 238 of file ConfigRenderer.hxx.

Member Function Documentation

◆ render_cdi()

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

Definition at line 244 of file ConfigRenderer.hxx.

Member Data Documentation

◆ size_

unsigned openlcb::NumericConfigRenderer::size_
private

The size attribute of the configuration atom.

Definition at line 265 of file ConfigRenderer.hxx.

◆ tag_

const char* openlcb::NumericConfigRenderer::tag_
private

XML tag for this atom.

Definition at line 263 of file ConfigRenderer.hxx.


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