Public Member Functions | Static Public Member Functions | List of all members
nmx::XModel Class Reference

The XModel class Basisklasse speichert eine ID in Form einer Zeichenkette enthält Hilfsfunktionen zur Speicherung von Daten. More...

#include <xmodel.h>

Inheritance diagram for nmx::XModel:
nmx::apps::x032::X032 nmx::apps::x040::X040 nmx::apps::x1200::X1200 nmx::apps::x130::X130 nmx::apps::x1500::X1500 nmx::apps::x1800::X1800 nmx::apps::x1900::X1900 nmx::apps::x2000::X2000 nmx::apps::x200::X200 nmx::apps::x2010::X2010 nmx::apps::x410::X410 nmx::apps::x710::X710 nmx::apps::x9000::X9000 nmx::apps::x900::X900 nmx::apps::x9100::X9100 nmx::apps::x910::X910

Public Member Functions

 XModel ()=delete
 XModelBase kein Standardkonstruktor. More...
 
 XModel (const char *name)
 XModelBase Konstruktor. More...
 

Static Public Member Functions

static std::ofstream get_output_stream (Format fmt)
 get_output_stream More...
 
template<class T >
static std::ofstream get_output_stream (Format fmt, const T &id)
 get_output_stream More...
 
template<class T >
static void save (const T &data, Format fmt)
 save Speicherung von Daten in eine Datei More...
 
template<class T , class ID >
static void save (const T &data, Format fmt, const ID &id)
 save Speicherung von Daten in eine Datei More...
 
static std::string class_name ()
 class_name More...
 

Detailed Description

The XModel class Basisklasse speichert eine ID in Form einer Zeichenkette enthält Hilfsfunktionen zur Speicherung von Daten.

Definition at line 22 of file xmodel.h.

Constructor & Destructor Documentation

◆ XModel() [1/2]

nmx::XModel::XModel ( )
delete

XModelBase kein Standardkonstruktor.

◆ XModel() [2/2]

nmx::XModel::XModel ( const char *  name)
inline

XModelBase Konstruktor.

Parameters
nameKlassen-ID

Definition at line 38 of file xmodel.h.

Member Function Documentation

◆ class_name()

static std::string nmx::XModel::class_name ( )
inlinestatic

class_name

Returns
Klassenname oder ID

Definition at line 91 of file xmodel.h.

◆ get_output_stream() [1/2]

static std::ofstream nmx::XModel::get_output_stream ( Format  fmt)
inlinestatic

get_output_stream

Parameters
fmtFormatierung
Returns
Ausgabestrom

Definition at line 49 of file xmodel.h.

◆ get_output_stream() [2/2]

template<class T >
static std::ofstream nmx::XModel::get_output_stream ( Format  fmt,
const T &  id 
)
inlinestatic

get_output_stream

Parameters
fmtFormatierung
idNamenszusatz
Returns
Ausgabestrom

Definition at line 60 of file xmodel.h.

◆ save() [1/2]

template<class T >
static void nmx::XModel::save ( const T &  data,
Format  fmt 
)
inlinestatic

save Speicherung von Daten in eine Datei

Parameters
dataDatenobjekt
fmtFormatierung

Definition at line 70 of file xmodel.h.

◆ save() [2/2]

template<class T , class ID >
static void nmx::XModel::save ( const T &  data,
Format  fmt,
const ID &  id 
)
inlinestatic

save Speicherung von Daten in eine Datei

Parameters
dataDatenobjekt
fmtFormatierung
idNamenszusatz

Definition at line 82 of file xmodel.h.


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