libdballe 9.6
|
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) | |
Ident & | operator= (const Ident &o) |
Ident & | operator= (Ident &&o) |
Ident & | operator= (const char *o) |
Ident & | operator= (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 |
A station identifier, that can be any string (including the empty string) or a missing value.