advgetopt 2.0.49
Parse complex command line arguments and configuration files in C++.
Classes | Namespaces | Typedefs | Enumerations | Variables
validator.cpp File Reference

Validator manager. More...

#include "advgetopt/validator.h"
#include "advgetopt/exception.h"
#include "advgetopt/validator_list.h"
#include <cppthread/log.h>
#include <snapdev/not_reached.h>
#include <snapdev/join_strings.h>
#include <map>
#include <snapdev/poison.h>
Include dependency graph for validator.cpp:

Go to the source code of this file.

Classes

class  advgetopt::anonymous_namespace{validator.cpp}::lexer
 
class  advgetopt::anonymous_namespace{validator.cpp}::parser
 
class  advgetopt::anonymous_namespace{validator.cpp}::token
 
class  advgetopt::anonymous_namespace{validator.cpp}::validator_with_params
 

Namespaces

namespace  advgetopt
 The advgetopt environment to parse command line options.
 
namespace  advgetopt::anonymous_namespace{validator.cpp}
 

Typedefs

typedef std::map< std::string, validator_factory const * > advgetopt::anonymous_namespace{validator.cpp}::factory_map_t
 

Enumerations

enum class  advgetopt::anonymous_namespace{validator.cpp}::token_t {
  advgetopt::anonymous_namespace{validator.cpp}::TOK_EOF ,
  advgetopt::anonymous_namespace{validator.cpp}::TOK_STRING ,
  advgetopt::anonymous_namespace{validator.cpp}::TOK_IDENTIFIER ,
  advgetopt::anonymous_namespace{validator.cpp}::TOK_REGEX ,
  advgetopt::anonymous_namespace{validator.cpp}::TOK_OPEN_PARENTHESIS ,
  advgetopt::anonymous_namespace{validator.cpp}::TOK_CLOSE_PARENTHESIS ,
  advgetopt::anonymous_namespace{validator.cpp}::TOK_COMMA ,
  advgetopt::anonymous_namespace{validator.cpp}::TOK_OR ,
  advgetopt::anonymous_namespace{validator.cpp}::TOK_INVALID
}
 

Variables

factory_map_tadvgetopt::anonymous_namespace{validator.cpp}::g_validator_factories
 

Detailed Description

The command line options can be validated before starting your process. This means you do not have to do you own validation of every single option passed by the end user.

The manager creates validators using their factory.

Definition in file validator.cpp.

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.