libdballe 9.6
Public Member Functions | Protected Attributes | List of all members
dballe::Ident Class Reference

A station identifier, that can be any string (including the empty string) or a missing value. More...

#include <types.h>

Public Member Functions

 Ident (const char *value)
 
 Ident (const std::string &value)
 
 Ident (const Ident &o)
 
 Ident (Ident &&o)
 
Identoperator= (const Ident &o)
 
Identoperator= (Ident &&o)
 
Identoperator= (const char *o)
 
Identoperator= (const std::string &o)
 
const char * get () const
 Get the string value (might be nullptr in case of missing value)
 
void clear ()
 Set to missing value.
 
int compare (const Ident &o) const
 
int compare (const char *o) const
 
int compare (const std::string &o) const
 
template<typename T >
bool operator== (const T &o) const
 
template<typename T >
bool operator!= (const T &o) const
 
template<typename T >
bool operator< (const T &o) const
 
template<typename T >
bool operator<= (const T &o) const
 
template<typename T >
bool operator> (const T &o) const
 
template<typename T >
bool operator>= (const T &o) const
 
bool is_missing () const
 Check if the Ident is set to the missing value.
 
 operator const char * () const
 
 operator std::string () const
 

Protected Attributes

char * value = nullptr
 

Detailed Description

A station identifier, that can be any string (including the empty string) or a missing value.


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