Zivid C++ API 2.13.1+18e79e79-1
Zivid::Detail::EnvironmentInfo::UserToolchain::StandardLibrary::ID Class Reference

The name of the standard library implementation. More...

#include <Zivid/Detail/EnvironmentInfo.h>

Public Types

enum class  ValueType { unknown , msvc , libcxx , libstdcxx }
 The type of the underlying value. More...
 

Public Member Functions

 ID ()=default
 Default constructor.
 
constexpr ID (ValueType value)
 Constructor.
 
ValueType value () const
 Get the value.
 
std::string toString () const
 Get the value as string.
 
bool operator== (const ID &other) const
 Comparison operator.
 
bool operator!= (const ID &other) const
 Comparison operator.
 

Static Public Member Functions

static std::set< ValueTypevalidValues ()
 All valid values of ID.
 

Static Public Attributes

static constexpr DataModel::NodeType nodeType = DataModel::NodeType::leafValue
 The type of this node.
 
static constexpr const char * path { "UserToolchain/StandardLibrary/ID" }
 The full path for this value.
 
static constexpr const char * name { "ID" }
 The name of this value.
 
static constexpr const char * description
 The description for this value.
 
static const ID unknown
 unknown
 
static const ID msvc
 msvc
 
static const ID libcxx
 libcxx
 
static const ID libstdcxx
 libstdcxx
 

Friends

struct DataModel::Detail::Befriend< ID >
 
std::ostream & operator<< (std::ostream &stream, const ID::ValueType &value)
 Operator to serialize ValueType to a stream.
 
std::ostream & operator<< (std::ostream &stream, const ID &value)
 Operator to serialize the value to a stream.
 

Detailed Description

The name of the standard library implementation.

Member Enumeration Documentation

◆ ValueType

The type of the underlying value.

Enumerator
unknown 
msvc 
libcxx 
libstdcxx 

Constructor & Destructor Documentation

◆ ID() [1/2]

Zivid::Detail::EnvironmentInfo::UserToolchain::StandardLibrary::ID::ID ( )
default

Default constructor.

◆ ID() [2/2]

Zivid::Detail::EnvironmentInfo::UserToolchain::StandardLibrary::ID::ID ( ValueType value)
inlineexplicitconstexpr

Constructor.

Member Function Documentation

◆ operator!=()

bool Zivid::Detail::EnvironmentInfo::UserToolchain::StandardLibrary::ID::operator!= ( const ID & other) const
inline

Comparison operator.

◆ operator==()

bool Zivid::Detail::EnvironmentInfo::UserToolchain::StandardLibrary::ID::operator== ( const ID & other) const
inline

Comparison operator.

◆ toString()

std::string Zivid::Detail::EnvironmentInfo::UserToolchain::StandardLibrary::ID::toString ( ) const

Get the value as string.

◆ validValues()

static std::set< ValueType > Zivid::Detail::EnvironmentInfo::UserToolchain::StandardLibrary::ID::validValues ( )
inlinestatic

All valid values of ID.

◆ value()

ValueType Zivid::Detail::EnvironmentInfo::UserToolchain::StandardLibrary::ID::value ( ) const

Get the value.

Friends And Related Symbol Documentation

◆ DataModel::Detail::Befriend< ID >

friend struct DataModel::Detail::Befriend< ID >
friend

◆ operator<< [1/2]

std::ostream & operator<< ( std::ostream & stream,
const ID & value )
friend

Operator to serialize the value to a stream.

◆ operator<< [2/2]

std::ostream & operator<< ( std::ostream & stream,
const ID::ValueType & value )
friend

Operator to serialize ValueType to a stream.

Member Data Documentation

◆ description

const char* Zivid::Detail::EnvironmentInfo::UserToolchain::StandardLibrary::ID::description
staticconstexpr
Initial value:
{
R"description(The name of the standard library implementation)description"
}

The description for this value.

◆ libcxx

const ID Zivid::Detail::EnvironmentInfo::UserToolchain::StandardLibrary::ID::libcxx
static

libcxx

◆ libstdcxx

const ID Zivid::Detail::EnvironmentInfo::UserToolchain::StandardLibrary::ID::libstdcxx
static

libstdcxx

◆ msvc

const ID Zivid::Detail::EnvironmentInfo::UserToolchain::StandardLibrary::ID::msvc
static

msvc

◆ name

const char* Zivid::Detail::EnvironmentInfo::UserToolchain::StandardLibrary::ID::name { "ID" }
staticconstexpr

The name of this value.

◆ nodeType

DataModel::NodeType Zivid::Detail::EnvironmentInfo::UserToolchain::StandardLibrary::ID::nodeType = DataModel::NodeType::leafValue
staticconstexpr

The type of this node.

◆ path

const char* Zivid::Detail::EnvironmentInfo::UserToolchain::StandardLibrary::ID::path { "UserToolchain/StandardLibrary/ID" }
staticconstexpr

The full path for this value.

◆ unknown

const ID Zivid::Detail::EnvironmentInfo::UserToolchain::StandardLibrary::ID::unknown
static

unknown


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