CMS 3D CMS Logo

Namespaces | Classes | Typedefs | Functions | Variables
cxxopts Namespace Reference

Namespaces

 values
 

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
 

Typedefs

typedef std::string String
 

Functions

bool empty (const std::string &s)
 
StringstringAppend (String &s, String a)
 
StringstringAppend (String &s, size_t n, char c)
 
template<typename Iterator >
StringstringAppend (String &s, Iterator begin, Iterator end)
 
size_t stringLength (const String &s)
 
template<typename T >
T toLocalString (T &&t)
 
template<typename T >
std::string toUTF8String (T &&t)
 
template<typename T >
std::shared_ptr< Valuevalue ()
 
template<typename T >
std::shared_ptr< Valuevalue (T &t)
 

Variables

struct {
   uint8_t   cxxopts::major
 
   uint8_t   cxxopts::minor
 
   uint8_t   cxxopts::patch
 
version = { 2 , 2 , 0 }
 

Typedef Documentation

◆ String

typedef std::string cxxopts::String

Definition at line 139 of file cxxopts.h.

Function Documentation

◆ empty()

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

Definition at line 162 of file cxxopts.h.

References alignCSCRings::s.

Referenced by cxxopts::Options::generate_group_help().

162 { return s.empty(); }

◆ stringAppend() [1/3]

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

Definition at line 148 of file cxxopts.h.

References a, eostools::move(), and alignCSCRings::s.

148 { return s.append(std::move(a)); }
double a
Definition: hdecay.h:121
def move(src, dest)
Definition: eostools.py:511

◆ stringAppend() [2/3]

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

Definition at line 150 of file cxxopts.h.

References DummyCfis::c, create_idmaps::n, and alignCSCRings::s.

150 { return s.append(n, c); }

◆ stringAppend() [3/3]

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

Definition at line 153 of file cxxopts.h.

References alignCSCRings::s.

153  {
154  return s.append(begin, end);
155  }

◆ stringLength()

size_t cxxopts::stringLength ( const String s)
inline

Definition at line 146 of file cxxopts.h.

References alignCSCRings::s.

Referenced by cxxopts::Options::help_one_group().

146 { return s.length(); }

◆ toLocalString()

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

Definition at line 142 of file cxxopts.h.

References submitPVValidationJobs::t.

Referenced by cxxopts::Options::add_option(), cxxopts::Options::help(), and cxxopts::Options::help_one_group().

142  {
143  return std::forward<T>(t);
144  }

◆ toUTF8String()

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

Definition at line 158 of file cxxopts.h.

References submitPVValidationJobs::t.

Referenced by cxxopts::Options::help().

158  {
159  return std::forward<T>(t);
160  }

◆ value() [1/2]

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

◆ value() [2/2]

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

Definition at line 579 of file cxxopts.h.

References submitPVValidationJobs::t.

Referenced by cxxopts::values::Abstract_value< bool >::is_boolean().

579  {
580  return std::make_shared<values::Standard_value<T>>(&t);
581  }

Variable Documentation

◆ major

uint8_t cxxopts::major

◆ minor

uint8_t cxxopts::minor

◆ patch

uint8_t cxxopts::patch

Definition at line 53 of file cxxopts.h.

◆ version

constexpr { ... } cxxopts::version