ldas-tools-al 2.6.7
Loading...
Searching...
No Matches
LDASTools::AL::CommandLineOptions::Option Class Reference

#include <CommandLineOptions.hh>

Classes

struct  acceptor
 

Public Types

enum  arg_type {
  ARG_NONE , ARG_REQUIRED , ARG_OPTIONAL , ARG_NONE ,
  ARG_REQUIRED , ARG_OPTIONAL
}
 
enum  arg_type {
  ARG_NONE , ARG_REQUIRED , ARG_OPTIONAL , ARG_NONE ,
  ARG_REQUIRED , ARG_OPTIONAL
}
 

Public Member Functions

 Option (int ArgumentId, const std::string &ArgumentName, arg_type ArgType, const std::string &Usage, const std::string &ArgumentArg=std::string(""), Validator *V=new Validator())
 
 Option (const Option &Source)
 
const std::string & ArgumentArg () const
 
const std::string & ArgumentName () const
 
int ArgumentId () const
 
arg_type ArgumentType () const
 
const std::string & Description () const
 
bool ValidateArg (const std::string &Arg) const
 
 Option (int ArgumentId, const std::string &ArgumentName, arg_type ArgType, const std::string &Usage, const std::string &ArgumentArg=std::string(""), Validator *V=new Validator())
 
 Option (const Option &Source)
 
const std::string & ArgumentArg () const
 
const std::string & ArgumentName () const
 
int ArgumentId () const
 
arg_type ArgumentType () const
 
const std::string & Description () const
 
bool ValidateArg (const std::string &Arg) const
 

Static Public Member Functions

static const char * Prefix ()
 
static const char * Prefix ()
 

Private Attributes

const int m_id
 
const std::string m_name
 
const arg_type m_arg_type
 
const std::string m_usage
 
const std::string m_argument
 
boost::shared_ptr< Validatorvalidator
 

Static Private Attributes

static const char * m_prefix
 

Member Enumeration Documentation

◆ arg_type [1/2]

enum LDASTools::AL::CommandLineOptions::Option::arg_type
Enumerator
ARG_NONE 
ARG_REQUIRED 
ARG_OPTIONAL 
ARG_NONE 
ARG_REQUIRED 
ARG_OPTIONAL 

◆ arg_type [2/2]

enum LDASTools::AL::CommandLineOptions::Option::arg_type
Enumerator
ARG_NONE 
ARG_REQUIRED 
ARG_OPTIONAL 
ARG_NONE 
ARG_REQUIRED 
ARG_OPTIONAL 

Constructor & Destructor Documentation

◆ Option() [1/4]

LDASTools::AL::CommandLineOptions::Option::Option ( int ArgumentId,
const std::string & ArgumentName,
arg_type ArgType,
const std::string & Usage,
const std::string & ArgumentArg = std::string( "" ),
Validator * V = new Validator( ) )

◆ Option() [2/4]

◆ Option() [3/4]

LDASTools::AL::CommandLineOptions::Option::Option ( int ArgumentId,
const std::string & ArgumentName,
arg_type ArgType,
const std::string & Usage,
const std::string & ArgumentArg = std::string(""),
Validator * V = new Validator() )

◆ Option() [4/4]

Member Function Documentation

◆ ArgumentArg() [1/2]

const std::string & LDASTools::AL::CommandLineOptions::Option::ArgumentArg ( ) const
inline

◆ ArgumentArg() [2/2]

const std::string & LDASTools::AL::CommandLineOptions::Option::ArgumentArg ( ) const

◆ ArgumentId() [1/2]

int LDASTools::AL::CommandLineOptions::Option::ArgumentId ( ) const
inline

◆ ArgumentId() [2/2]

int LDASTools::AL::CommandLineOptions::Option::ArgumentId ( ) const

◆ ArgumentName() [1/2]

const std::string & LDASTools::AL::CommandLineOptions::Option::ArgumentName ( ) const
inline

◆ ArgumentName() [2/2]

const std::string & LDASTools::AL::CommandLineOptions::Option::ArgumentName ( ) const

◆ ArgumentType() [1/2]

CommandLineOptions::Option::arg_type LDASTools::AL::CommandLineOptions::Option::ArgumentType ( ) const
inline

◆ ArgumentType() [2/2]

arg_type LDASTools::AL::CommandLineOptions::Option::ArgumentType ( ) const

◆ Description() [1/2]

const std::string & LDASTools::AL::CommandLineOptions::Option::Description ( ) const
inline

◆ Description() [2/2]

const std::string & LDASTools::AL::CommandLineOptions::Option::Description ( ) const

◆ Prefix() [1/2]

const char * LDASTools::AL::CommandLineOptions::Option::Prefix ( )
inlinestatic

◆ Prefix() [2/2]

static const char * LDASTools::AL::CommandLineOptions::Option::Prefix ( )
static

◆ ValidateArg() [1/2]

bool LDASTools::AL::CommandLineOptions::Option::ValidateArg ( const std::string & Arg) const
inline

◆ ValidateArg() [2/2]

bool LDASTools::AL::CommandLineOptions::Option::ValidateArg ( const std::string & Arg) const

Member Data Documentation

◆ m_arg_type

const arg_type LDASTools::AL::CommandLineOptions::Option::m_arg_type
private

◆ m_argument

const std::string LDASTools::AL::CommandLineOptions::Option::m_argument
private

◆ m_id

const int LDASTools::AL::CommandLineOptions::Option::m_id
private

◆ m_name

const std::string LDASTools::AL::CommandLineOptions::Option::m_name
private

◆ m_prefix

static const char * LDASTools::AL::CommandLineOptions::Option::m_prefix
staticprivate

◆ m_usage

const std::string LDASTools::AL::CommandLineOptions::Option::m_usage
private

◆ validator

boost::shared_ptr< Validator > LDASTools::AL::CommandLineOptions::Option::validator
private

The documentation for this class was generated from the following files: