clingo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
Classes | Namespaces | Typedefs | Enumerations | Functions
program_options.h File Reference
#include "value.h"
#include "detail/refcountable.h"
#include <iosfwd>
#include <set>
#include <map>
#include <vector>
#include <stdexcept>
#include <memory>
#include <cstdio>
Include dependency graph for program_options.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ProgramOptions::Option
 Represents one program option. More...
 
class  ProgramOptions::OptionGroup
 A list of options logically grouped under a caption. More...
 
class  ProgramOptions::OptionInitHelper
 
class  ProgramOptions::OptionContext
 A (logically grouped) list of unique options. More...
 
class  ProgramOptions::ParsedOptions
 Set of options holding a parsed value. More...
 
class  ProgramOptions::ParsedValues
 
class  ProgramOptions::ParseContext
 
class  ProgramOptions::OptionParser
 Base class for options parsers. More...
 
struct  ProgramOptions::DefaultFormat
 Default formatting for options. More...
 
class  ProgramOptions::OptionOutput
 Base class for printing options. More...
 
class  ProgramOptions::OptionOutputImpl< Writer, Formatter >
 Implementation class for printing options. More...
 
struct  ProgramOptions::OstreamWriter
 Writes formatted option descriptions to an std::ostream. More...
 
struct  ProgramOptions::StringWriter
 Writes formatted option descriptions to an std::string. More...
 
struct  ProgramOptions::FileWriter
 Writes formatted option descriptions to a FILE. More...
 

Namespaces

 ProgramOptions
 

Typedefs

typedef
detail::IntrusiveSharedPtr
< Option > 
ProgramOptions::SharedOptPtr
 
typedef OptionOutputImpl
< OstreamWriter > 
ProgramOptions::StreamOut
 
typedef OptionOutputImpl
< StringWriter > 
ProgramOptions::StringOut
 
typedef OptionOutputImpl
< FileWriter > 
ProgramOptions::FileOut
 
typedef bool(* ProgramOptions::PosOption )(const std::string &, std::string &)
 

Enumerations

enum  ProgramOptions::CommandLineFlags { ProgramOptions::command_line_allow_flag_value = 1u }
 

Functions

ParsedValues ProgramOptions::parseCommandLine (int &argc, char **argv, const OptionContext &ctx, bool allowUnregistered=true, PosOption posParser=0, unsigned flags=0)
 
ParseContext & ProgramOptions::parseCommandLine (int &argc, char **argv, ParseContext &ctx, unsigned flags=0)
 
ParsedValues ProgramOptions::parseCommandString (const std::string &cmd, const OptionContext &ctx, bool allowUnreg=false, PosOption posParser=0, unsigned flags=command_line_allow_flag_value)
 
ParseContext & ProgramOptions::parseCommandString (const char *cmd, ParseContext &ctx, unsigned flags=command_line_allow_flag_value)
 
ParsedValues ProgramOptions::parseCfgFile (std::istream &is, const OptionContext &o, bool allowUnregistered)