Namespaces | Functions
program_options.cpp File Reference
#include <program_opts/program_options.h>
#include <program_opts/errors.h>
#include <cassert>
#include <cstring>
#include <climits>
#include <ostream>
#include <istream>
#include <algorithm>
#include <stdlib.h>
#include <stdio.h>
#include <cctype>
Include dependency graph for program_options.cpp:

Go to the source code of this file.

Namespaces

namespace  ProgramOptions

Functions

static std::string ProgramOptions::format (SyntaxError::Type t, const std::string &key)
static std::string ProgramOptions::format (ContextError::Type t, const std::string &ctx, const std::string &key, const std::string &alt)
static std::string ProgramOptions::format (ValueError::Type t, const std::string &ctx, const std::string &key, const std::string &value)
std::ostream & ProgramOptions::operator<< (std::ostream &os, const OptionContext &grp)
ParsedValues ProgramOptions::parseCfgFile (std::istream &is, const OptionContext &o, bool allowUnregistered)
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)
static std::string ProgramOptions::quote (const std::string &x)

Variable Documentation

int argPos_

Definition at line 717 of file program_options.cpp.

char** argv_

Definition at line 718 of file program_options.cpp.

const char* cmd_

Definition at line 745 of file program_options.cpp.

char* currentArg_

Definition at line 716 of file program_options.cpp.

unsigned eMask

Definition at line 853 of file program_options.cpp.

unsigned flags

Definition at line 588 of file program_options.cpp.

std::istream& in_

Definition at line 832 of file program_options.cpp.

ParsedValues parsed

Definition at line 852 of file program_options.cpp.

PosOption posOpt

Definition at line 851 of file program_options.cpp.

std::vector<const char*> remaining

Definition at line 587 of file program_options.cpp.

std::string tok_

Definition at line 746 of file program_options.cpp.



clasp
Author(s): Benjamin Kaufmann
autogenerated on Thu Aug 27 2015 12:41:40