Public Types | Public Member Functions | Private Attributes
ProgramOptions::ContextError Class Reference

Used for signaling errors in OptionContext. More...

#include <errors.h>

Inheritance diagram for ProgramOptions::ContextError:
Inheritance graph
[legend]

List of all members.

Public Types

enum  Type { duplicate_option, unknown_option, ambiguous_option, unknown_group }

Public Member Functions

 ContextError (const std::string &ctx, Type t, const std::string &key, const std::string &desc="")
const std::string & ctx () const
const std::string & key () const
Type type () const
 ~ContextError () throw ()

Private Attributes

std::string ctx_
std::string key_
Type type_

Detailed Description

Used for signaling errors in OptionContext.

Definition at line 52 of file errors.h.


Member Enumeration Documentation

Enumerator:
duplicate_option 
unknown_option 
ambiguous_option 
unknown_group 

Definition at line 54 of file errors.h.


Constructor & Destructor Documentation

ProgramOptions::ContextError::ContextError ( const std::string &  ctx,
Type  t,
const std::string &  key,
const std::string &  desc = "" 
)

Definition at line 941 of file program_options.cpp.

Definition at line 61 of file errors.h.


Member Function Documentation

const std::string& ProgramOptions::ContextError::ctx ( ) const [inline]

Definition at line 64 of file errors.h.

const std::string& ProgramOptions::ContextError::key ( ) const [inline]

Definition at line 63 of file errors.h.

Definition at line 62 of file errors.h.


Member Data Documentation

std::string ProgramOptions::ContextError::ctx_ [private]

Definition at line 66 of file errors.h.

std::string ProgramOptions::ContextError::key_ [private]

Definition at line 67 of file errors.h.

Definition at line 68 of file errors.h.


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


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