Skip to content

Namespace cxxopts

Namespace List > cxxopts

Namespaces

Type Name
namespace exceptions
namespace values

Classes

Type Name
struct HelpGroupDetails
struct HelpOptionDetails
class KeyValue
struct Option
class OptionAdder
class OptionDetails
class OptionParser
class OptionValue
class Options
class ParseResult
class Value

Public Types

Type Name
typedef std::unordered_map< std::string, std::size_t > NameHashMap
typedef std::unordered_map< std::string, std::shared_ptr< OptionDetails > > OptionMap
typedef std::vector< std::string > OptionNames
typedef std::unordered_map< std::size_t, OptionValue > ParsedHashMap
typedef std::vector< std::string > PositionalList
typedef PositionalList::const_iterator PositionalListIterator
typedef std::string String

Public Attributes

Type Name
uint8_t major
uint8_t minor
uint8_t patch

Public Static Attributes

Type Name
constexpr struct cxxopts version = {CXXOPTS\_\_VERSION\_MAJOR, CXXOPTS\_\_VERSION\_MINOR, CXXOPTS\_\_VERSION\_PATCH}
constexpr struct cxxopts version = {CXXOPTS\_\_VERSION\_MAJOR, CXXOPTS\_\_VERSION\_MINOR, CXXOPTS\_\_VERSION\_PATCH}

Public Functions

Type Name
bool empty (const std::string & s)
CXXOPTS_NODISCARD const std::string & first_or_empty (const OptionNames & long_names)
String & stringAppend (String & s, const String & a)
String & stringAppend (String & s, std::size_t n, char c)
String & stringAppend (String & s, Iterator begin, Iterator end)
std::size_t stringLength (const String & s)
void throw_or_mimic (const std::string & text)
T toLocalString (T && t)
std::string toUTF8String (T && t)
std::shared_ptr< Value > value ()
std::shared_ptr< Value > value (T & t)

Public Types Documentation

typedef NameHashMap

typedef std::unordered_map< std::string, std::size_t > cxxopts::NameHashMap;

typedef OptionMap

typedef std::unordered_map< std::string, std::shared_ptr< OptionDetails > > cxxopts::OptionMap;

typedef OptionNames

typedef std::vector< std::string > cxxopts::OptionNames;

typedef ParsedHashMap

typedef std::unordered_map< std::size_t, OptionValue > cxxopts::ParsedHashMap;

typedef PositionalList

typedef std::vector< std::string > cxxopts::PositionalList;

typedef PositionalListIterator

typedef PositionalList::const_iterator cxxopts::PositionalListIterator;

typedef String

typedef std::string cxxopts::String;

Public Attributes Documentation

variable major

uint8_t cxxopts::major;

variable minor

uint8_t cxxopts::minor;

variable patch

uint8_t cxxopts::patch;

Public Static Attributes Documentation

variable version

constexpr struct cxxopts cxxopts::version;

variable version

constexpr struct cxxopts cxxopts::version;

Public Functions Documentation

function empty

inline bool cxxopts::empty (
    const std::string & s
) 

function first_or_empty

inline CXXOPTS_NODISCARD const std::string & cxxopts::first_or_empty (
    const OptionNames & long_names
) 

function stringAppend

inline String & cxxopts::stringAppend (
    String & s,
    const String & a
) 

function stringAppend

inline String & cxxopts::stringAppend (
    String & s,
    std::size_t n,
    char c
) 

function stringAppend

template<typename Iterator>
String & cxxopts::stringAppend (
    String & s,
    Iterator begin,
    Iterator end
) 

function stringLength

inline std::size_t cxxopts::stringLength (
    const String & s
) 

function throw_or_mimic

template<typename T>
void cxxopts::throw_or_mimic (
    const std::string & text
) 

function toLocalString

template<typename T>
T cxxopts::toLocalString (
    T && t
) 

function toUTF8String

template<typename T>
std::string cxxopts::toUTF8String (
    T && t
) 

function value

template<typename T>
std::shared_ptr< Value > cxxopts::value () 

function value

template<typename T>
std::shared_ptr< Value > cxxopts::value (
    T & t
) 


The documentation for this class was generated from the following file /home/friedel/devel/ILLIXR/plugins/zed/capture/cxxopts.hpp