cxxopts.hpp File Reference
#include <cstring>
#include <cctype>
#include <exception>
#include <iostream>
#include <map>
#include <memory>
#include <regex>
#include <sstream>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
+ Include dependency graph for cxxopts.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  argument_incorrect_type
 
struct  HelpGroupDetails
 
struct  HelpOptionDetails
 
class  invalid_option_format_error
 
class  KeyValue
 
class  missing_argument_exception
 
class  option_exists_error
 
class  option_not_exists_exception
 
class  option_not_has_argument_exception
 
class  option_not_present_exception
 
class  option_required_exception
 
class  option_requires_argument_exception
 
class  option_syntax_exception
 
class  OptionAdder
 
class  OptionDetails
 
class  OptionException
 
class  OptionParseException
 
class  Options
 
class  OptionSpecException
 
class  OptionValue
 
class  ParseResult
 
class  Value
 
class  abstract_value< T >
 
struct  SignedCheck< T, B >
 
struct  SignedCheck< T, false >
 
struct  SignedCheck< T, true >
 
class  standard_value< T >
 
class  standard_value< bool >
 
struct  type_is_container< T >
 
struct  type_is_container< std::vector< T > >
 

Namespaces

 cxxopts
 
 cxxopts::values
 
 cxxopts::values::detail
 

Macros

#define CXXOPTS__VERSION_MAJOR   2
 
#define CXXOPTS__VERSION_MINOR   2
 
#define CXXOPTS__VERSION_PATCH   0
 

Typedefs

typedef std::string String
 

Functions

template<typename T , typename U >
void check_signed_range (bool negative, U value, const std::string &text)
 
template<typename R , typename T >
T checked_negate (T &&, const std::string &text, std::false_type)
 
template<typename R , typename T >
checked_negate (T &&t, const std::string &, std::true_type)
 
bool empty (const std::string &s)
 
template<typename T >
void integer_parser (const std::string &text, T &value)
 
void parse_value (const std::string &text, bool &value)
 
void parse_value (const std::string &text, int16_t &value)
 
void parse_value (const std::string &text, int32_t &value)
 
void parse_value (const std::string &text, int64_t &value)
 
void parse_value (const std::string &text, int8_t &value)
 
void parse_value (const std::string &text, std::string &value)
 
template<typename T >
void parse_value (const std::string &text, std::vector< T > &value)
 
template<typename T >
void parse_value (const std::string &text, T &value)
 
void parse_value (const std::string &text, uint16_t &value)
 
void parse_value (const std::string &text, uint32_t &value)
 
void parse_value (const std::string &text, uint64_t &value)
 
void parse_value (const std::string &text, uint8_t &value)
 
template<typename Iterator >
String & stringAppend (String &s, Iterator begin, Iterator end)
 
String & stringAppend (String &s, size_t n, char c)
 
String & stringAppend (String &s, String a)
 
size_t stringLength (const String &s)
 
template<typename T >
void stringstream_parser (const std::string &text, T &value)
 
template<typename T >
T toLocalString (T &&t)
 
template<typename T >
std::string toUTF8String (T &&t)
 
template<typename T >
std::shared_ptr< Value > value ()
 
template<typename T >
std::shared_ptr< Value > value (T &t)
 

Macro Definition Documentation

◆ CXXOPTS__VERSION_MAJOR

#define CXXOPTS__VERSION_MAJOR   2

Definition at line 46 of file cxxopts.hpp.

◆ CXXOPTS__VERSION_MINOR

#define CXXOPTS__VERSION_MINOR   2

Definition at line 47 of file cxxopts.hpp.

◆ CXXOPTS__VERSION_PATCH

#define CXXOPTS__VERSION_PATCH   0

Definition at line 48 of file cxxopts.hpp.