Auxiliary data structure to label data types within a type list.
More...
#include <JTypeID.hh>
|
| JLabel_t (const int ID, const char *name, const int version) |
| Constructor.
|
|
int | getID () const |
| Get data type identifier.
|
|
const char * | getName () const |
| Get name of data type.
|
|
int | getVersion () const |
| Get version of data type.
|
|
|
std::ostream & | operator<< (std::ostream &out, const JLabel_t &object) |
| Write label to output.
|
|
Auxiliary data structure to label data types within a type list.
Definition at line 22 of file JTypeID.hh.
◆ JLabel_t()
JLANG::JLabel_t::JLabel_t |
( |
const int | ID, |
|
|
const char * | name, |
|
|
const int | version ) |
|
inline |
Constructor.
- Parameters
-
ID | identifier |
name | name |
version | version |
Definition at line 30 of file JTypeID.hh.
◆ getID()
int JLANG::JLabel_t::getID |
( |
| ) |
const |
|
inline |
Get data type identifier.
- Returns
- identifier
Definition at line 44 of file JTypeID.hh.
◆ getName()
const char * JLANG::JLabel_t::getName |
( |
| ) |
const |
|
inline |
Get name of data type.
- Returns
- name
Definition at line 55 of file JTypeID.hh.
◆ getVersion()
int JLANG::JLabel_t::getVersion |
( |
| ) |
const |
|
inline |
Get version of data type.
- Returns
- version
Definition at line 66 of file JTypeID.hh.
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & | out, |
|
|
const JLabel_t & | object ) |
|
friend |
Write label to output.
- Parameters
-
out | output stream |
object | label |
- Returns
- output stream
Definition at line 79 of file JTypeID.hh.
80 {
81 return out << object.getID() << '/'
82 << object.getName() << ':'
83 << object.getVersion();
84 }
◆ __ID
int JLANG::JLabel_t::__ID |
|
protected |
◆ __name
const char* JLANG::JLabel_t::__name |
|
protected |
◆ __version
int JLANG::JLabel_t::__version |
|
protected |
The documentation for this struct was generated from the following file: