Jpp 19.3.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
JLANG::JLabel_t Struct Reference

Auxiliary data structure to label data types within a type list. More...

#include <JTypeID.hh>

Public Member Functions

 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.
 

Protected Attributes

int __ID
 
const char * __name
 
int __version
 

Friends

std::ostream & operator<< (std::ostream &out, const JLabel_t &object)
 Write label to output.
 

Detailed Description

Auxiliary data structure to label data types within a type list.

Definition at line 22 of file JTypeID.hh.

Constructor & Destructor Documentation

◆ JLabel_t()

JLANG::JLabel_t::JLabel_t ( const int ID,
const char * name,
const int version )
inline

Constructor.

Parameters
IDidentifier
namename
versionversion

Definition at line 30 of file JTypeID.hh.

32 :
33 __ID (ID),
34 __name (name),
35 __version(version)
36 {}
const char * __name
Definition JTypeID.hh:88

Member Function Documentation

◆ getID()

int JLANG::JLabel_t::getID ( ) const
inline

Get data type identifier.

Returns
identifier

Definition at line 44 of file JTypeID.hh.

45 {
46 return __ID;
47 }

◆ getName()

const char * JLANG::JLabel_t::getName ( ) const
inline

Get name of data type.

Returns
name

Definition at line 55 of file JTypeID.hh.

56 {
57 return __name;
58 }

◆ getVersion()

int JLANG::JLabel_t::getVersion ( ) const
inline

Get version of data type.

Returns
version

Definition at line 66 of file JTypeID.hh.

67 {
68 return __version;
69 }

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & out,
const JLabel_t & object )
friend

Write label to output.

Parameters
outoutput stream
objectlabel
Returns
output stream

Definition at line 79 of file JTypeID.hh.

80 {
81 return out << object.getID() << '/'
82 << object.getName() << ':'
83 << object.getVersion();
84 }

Member Data Documentation

◆ __ID

int JLANG::JLabel_t::__ID
protected

Definition at line 87 of file JTypeID.hh.

◆ __name

const char* JLANG::JLabel_t::__name
protected

Definition at line 88 of file JTypeID.hh.

◆ __version

int JLANG::JLabel_t::__version
protected

Definition at line 89 of file JTypeID.hh.


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