Jpp  18.0.1-rc.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | Friends | List of all members
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. More...
 
int getID () const
 Get data type identifier. More...
 
const char * getName () const
 Get name of data type. More...
 
int getVersion () const
 Get version of data type. More...
 

Protected Attributes

int __ID
 
const char * __name
 
int __version
 

Friends

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

Detailed Description

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

Definition at line 22 of file JTypeID.hh.

Constructor & Destructor Documentation

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),
36  {}
version
Definition: JEditTuneHV.sh:5
then echo Enter input within $TIMEOUT_S seconds echo n User name
Definition: JCookie.sh:42
const char * __name
Definition: JTypeID.hh:88

Member Function Documentation

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  }
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  }
const char * __name
Definition: JTypeID.hh:88
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 Function Documentation

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

int JLANG::JLabel_t::__ID
protected

Definition at line 87 of file JTypeID.hh.

const char* JLANG::JLabel_t::__name
protected

Definition at line 88 of file JTypeID.hh.

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: