DryChem 1.0.0
A generic, compile-time C++ toolbox with no dependencies for the modern computational chemistry project.
Loading...
Searching...
No Matches
GetOpts Namespace Reference

Classes

struct  CommandLineOption
 
class  CommandLineParser
 
class  Optional
 
class  Required
 
class  WithArgument
 
class  WithoutArgument
 

Typedefs

template<typename Derived>
using WithDoubleArgument = WithArgument<double, Derived>
 
template<typename Derived>
using WithFileArgument = WithArgument<fs::path, Derived>
 
template<typename Derived>
using WithIntegerArgument = WithArgument<int, Derived>
 
template<typename Derived>
using WithStringArgument = WithArgument<std::string, Derived>
 
using OptionalFlag = CommandLineOption<Optional, WithoutArgument>
 
using OptionalFlagWithDouble = CommandLineOption<Optional, WithDoubleArgument>
 
using OptionalFlagWithFile = CommandLineOption<Optional, WithFileArgument>
 
using OptionalFlagWithInteger = CommandLineOption<Optional, WithIntegerArgument>
 
using OptionalFlagWithString = CommandLineOption<Optional, WithStringArgument>
 
using RequiredFlag = CommandLineOption<Required, WithoutArgument>
 
using RequiredFlagWithDouble = CommandLineOption<Required, WithDoubleArgument>
 
using RequiredFlagWithFile = CommandLineOption<Required, WithFileArgument>
 
using RequiredFlagWithInteger = CommandLineOption<Required, WithIntegerArgument>
 
using RequiredFlagWithString = CommandLineOption<Required, WithStringArgument>
 

Variables

static std::unordered_map< std::type_index, std::string > type_names
 

Typedef Documentation

◆ WithDoubleArgument

template<typename Derived>
using GetOpts::WithDoubleArgument = WithArgument<double, Derived>

◆ WithFileArgument

template<typename Derived>
using GetOpts::WithFileArgument = WithArgument<fs::path, Derived>

◆ WithIntegerArgument

template<typename Derived>
using GetOpts::WithIntegerArgument = WithArgument<int, Derived>

◆ WithStringArgument

template<typename Derived>
using GetOpts::WithStringArgument = WithArgument<std::string, Derived>

◆ OptionalFlag

◆ OptionalFlagWithDouble

◆ OptionalFlagWithFile

◆ OptionalFlagWithInteger

◆ OptionalFlagWithString

◆ RequiredFlag

◆ RequiredFlagWithDouble

◆ RequiredFlagWithFile

◆ RequiredFlagWithInteger

◆ RequiredFlagWithString

Variable Documentation

◆ type_names

std::unordered_map<std::type_index, std::string> GetOpts::type_names
inlinestatic
Initial value:
{
{std::type_index(typeid(std::vector<double>)), "ARRAY<DOUBLE>"},
{std::type_index(typeid(std::vector<fs::path>)), "ARRAY<FILE>"},
{std::type_index(typeid(std::vector<int>)), "ARRAY<INT>"},
{std::type_index(typeid(std::vector<std::string>)), "ARRAY<STRING>"},
{std::type_index(typeid(double)), "DOUBLE"},
{std::type_index(typeid(fs::path)), "FILE"},
{std::type_index(typeid(int)), "INT"},
{std::type_index(typeid(std::string)), "STRING"}
}

Referenced by GetOpts::WithArgument< double, Derived >::generateUsage().