CLRX  1
An unofficial OpenCL extensions designed for Radeon GPUs
Classes | Namespaces | Macros | Enumerations
CLIParser.h File Reference

command line parser More...

#include <CLRX/Config.h>
#include <exception>
#include <string>
#include <vector>
#include <ostream>
#include <iostream>
#include <memory>
#include <CLRX/utils/Utilities.h>
#include <CLRX/utils/Containers.h>

Go to the source code of this file.

Classes

struct  CLRX::CLIOption
 Command line option description. More...
 
class  CLRX::CLIException
 CLI exception class. More...
 
class  CLRX::CLIParser
 The Command Line Parser (parses options and their arguments) More...
 
union  CLRX::CLIParser::OptionEntry::Value
 value holder More...
 
struct  CLRX::CLIParser::OptTypeTrait< bool >
 Option type trait for boolean type. More...
 
struct  CLRX::CLIParser::OptTypeTrait< cxuint >
 Option type trait for cxuint type. More...
 
struct  CLRX::CLIParser::OptTypeTrait< cxint >
 Option type trait for cxint type. More...
 
struct  CLRX::CLIParser::OptTypeTrait< cxulong >
 Option type trait for cxulong type. More...
 
struct  CLRX::CLIParser::OptTypeTrait< cxlong >
 Option type trait for cxlong type. More...
 
struct  CLRX::CLIParser::OptTypeTrait< cxullong >
 Option type trait for cxullong type. More...
 
struct  CLRX::CLIParser::OptTypeTrait< cxllong >
 Option type trait for cxllong type. More...
 
struct  CLRX::CLIParser::OptTypeTrait< float >
 Option type trait for float type. More...
 
struct  CLRX::CLIParser::OptTypeTrait< double >
 Option type trait for double type. More...
 
struct  CLRX::CLIParser::OptTypeTrait< const char * >
 Option type trait for const char* type. More...
 
struct  CLRX::CLIParser::OptTypeTrait< bool * >
 Option type trait for bool* type. More...
 
struct  CLRX::CLIParser::OptTypeTrait< cxuint * >
 Option type trait for cxuint* type. More...
 
struct  CLRX::CLIParser::OptTypeTrait< cxint * >
 Option type trait for cxint* type. More...
 
struct  CLRX::CLIParser::OptTypeTrait< cxulong * >
 Option type trait for cxulong* type. More...
 
struct  CLRX::CLIParser::OptTypeTrait< cxlong * >
 Option type trait for cxlong* type. More...
 
struct  CLRX::CLIParser::OptTypeTrait< cxullong * >
 Option type trait for cxullong* type. More...
 
struct  CLRX::CLIParser::OptTypeTrait< cxllong * >
 Option type trait for cxllong* type. More...
 
struct  CLRX::CLIParser::OptTypeTrait< float * >
 Option type trait for float* type. More...
 
struct  CLRX::CLIParser::OptTypeTrait< double * >
 Option type trait for double* type. More...
 
struct  CLRX::CLIParser::OptTypeTrait< const char ** >
 Option type trait for const char** type. More...
 

Namespaces

 CLRX
 main namespace
 

Macros

#define CLRX_CLI_AUTOHELP
 helper for auto help (this macro should be place in CLI option table More...
 

Enumerations

enum  CLRX::CLIArgType : cxuchar {
  CLRX::CLIArgType::NONE = 0, BOOL, UINT, INT,
  UINT64, INT64, SIZE, FLOAT,
  DOUBLE, STRING, CLRX::CLIArgType::TRIMMED_STRING, SINGLE_MAX = TRIMMED_STRING,
  BOOL_ARRAY = 32, UINT_ARRAY, INT_ARRAY, UINT64_ARRAY,
  INT64_ARRAY, SIZE_ARRAY, FLOAT_ARRAY, DOUBLE_ARRAY,
  STRING_ARRAY, CLRX::CLIArgType::TRIMMED_STRING_ARRAY, ARRAY_MAX = TRIMMED_STRING_ARRAY
}
 type of argument of the option More...
 

Detailed Description

command line parser

Macro Definition Documentation

#define CLRX_CLI_AUTOHELP
Value:
{ "help", '?', CLIArgType::NONE, false, false, "print help", nullptr }, \
{ "usage", 0, CLIArgType::NONE, false, false, "print usage", nullptr }, \
{ "version", 0, CLIArgType::NONE, false, false, "print version", nullptr },

helper for auto help (this macro should be place in CLI option table