queso-0.57.1
|
#include <getpot.h>
Classes | |
struct | ltstr |
struct | variable |
Public Member Functions | |
GetPot () | |
GetPot (const GetPot &) | |
GetPot (const int argc_, const char *const *argv_, const char *FieldSeparator=0x0) | |
GetPot (const char *FileName, const char *CommentStart=0x0, const char *CommentEnd=0x0, const char *FieldSeparator=0x0) | |
GetPot (const std::string &FileName, const std::string &CommentStart=std::string("#"), const std::string &CommentEnd=std::string("\n"), const std::string &FieldSeparator=std::string(" \t\n")) | |
GetPot (std::istream &FileStream, const std::string &CommentStart=std::string("#"), const std::string &CommentEnd=std::string("\n"), const std::string &FieldSeparator=std::string(" \t\n")) | |
~GetPot () | |
GetPot & | operator= (const GetPot &) |
void | parse_command_line (const int argc_, const char *const *argv_, const char *FieldSeparator=0x0) |
void | parse_input_file (const std::string &FileName, const std::string &CommentStart=std::string("#"), const std::string &CommentEnd=std::string("\n"), const std::string &FieldSeparator=std::string(" \t\n")) |
void | parse_input_stream (std::istream &FileStream, const std::string &FileName=std::string("ParsedFromStream"), const std::string &CommentStart=std::string("#"), const std::string &CommentEnd=std::string("\n"), const std::string &FieldSeparator=std::string(" \t\n")) |
void | absorb (const GetPot &Other) |
void | clear_requests () |
void | disable_request_recording () |
void | enable_request_recording () |
const char * | operator[] (unsigned Idx) const |
template<typename T > | |
T | get (unsigned Idx, const T &Default) const |
const char * | get (unsigned Idx, const char *Default) const |
unsigned | size () const |
bool | options_contain (const char *FlagList) const |
bool | argument_contains (unsigned Idx, const char *FlagList) const |
bool | have_variable (const char *VarName) const |
bool | have_variable (const std::string &VarName) const |
bool | have_section (const char *section_name) const |
bool | have_section (const std::string §ion_name) const |
template<typename T > | |
T | operator() (const char *VarName, const T &Default) const |
template<typename T > | |
T | operator() (const std::string &VarName, const T &Default) const |
const char * | operator() (const char *VarName, const char *Default) const |
const char * | operator() (const std::string &VarName, const char *Default) const |
template<typename T > | |
T | operator() (const char *VarName, const T &Default, unsigned Idx) const |
template<typename T > | |
T | operator() (const std::string &VarName, const T &Default, unsigned Idx) const |
const char * | operator() (const char *VarName, const char *Default, unsigned Idx) const |
const char * | operator() (const std::string &VarName, const char *Default, unsigned Idx) const |
template<typename T > | |
T | get_value_no_default (const char *VarName, const T &Default) const |
template<typename T > | |
T | get_value_no_default (const std::string &VarName, const T &Default) const |
const char * | get_value_no_default (const char *VarName, const char *Default) const |
const char * | get_value_no_default (const std::string &VarName, const char *Default) const |
template<typename T > | |
T | get_value_no_default (const char *VarName, const T &Default, unsigned Idx) const |
template<typename T > | |
T | get_value_no_default (const std::string &VarName, const T &Default, unsigned Idx) const |
const char * | get_value_no_default (const char *VarName, const char *Default, unsigned Idx) const |
const char * | get_value_no_default (const std::string &VarName, const char *Default, unsigned Idx) const |
template<typename T > | |
void | set (const char *VarName, const T &Value, const bool Requested=true) |
template<typename T > | |
void | set (const std::string &VarName, const T &Value, const bool Requested=true) |
void | set (const char *VarName, const char *Value, const bool Requested=true) |
void | set (const std::string &VarName, const char *Value, const bool Requested=true) |
unsigned | vector_variable_size (const char *VarName) const |
unsigned | vector_variable_size (const std::string &VarName) const |
STRING_VECTOR | get_variable_names () const |
STRING_VECTOR | get_section_names () const |
std::set< std::string > | get_overridden_variables () const |
void | set_prefix (const char *Prefix) |
bool | search_failed () const |
void | disable_loop () |
void | enable_loop () |
void | reset_cursor () |
void | init_multiple_occurrence () |
bool | search (const char *option) |
bool | search (const std::string &option) |
bool | search (unsigned No, const char *P,...) |
template<typename T > | |
T | next (const T &Default) |
const char * | next (const char *Default) |
template<typename T > | |
T | follow (const T &Default, const char *Option) |
const char * | follow (const char *Default, const char *Option) |
template<typename T > | |
T | follow (const T &Default, unsigned No, const char *Option,...) |
const char * | follow (const char *Default, unsigned No, const char *Option,...) |
template<typename T > | |
T | direct_follow (const T &Default, const char *Option) |
const char * | direct_follow (const char *Default, const char *Option) |
void | reset_nominus_cursor () |
STRING_VECTOR | nominus_vector () const |
unsigned | nominus_size () const |
const char * | next_nominus () |
std::string | next_nominus_string () |
STRING_VECTOR | unidentified_arguments (unsigned Number, const char *Known,...) const |
STRING_VECTOR | unidentified_arguments (const std::set< std::string > &Knowns) const |
STRING_VECTOR | unidentified_arguments (const std::vector< std::string > &Knowns) const |
STRING_VECTOR | unidentified_arguments () const |
STRING_VECTOR | unidentified_options (unsigned Number, const char *Known,...) const |
STRING_VECTOR | unidentified_options (const std::set< std::string > &Knowns) const |
STRING_VECTOR | unidentified_options (const std::vector< std::string > &Knowns) const |
STRING_VECTOR | unidentified_options () const |
std::string | unidentified_flags (const char *Known, int ArgumentNumber) const |
STRING_VECTOR | unidentified_variables (unsigned Number, const char *Known,...) const |
STRING_VECTOR | unidentified_variables (const std::set< std::string > &Knowns) const |
STRING_VECTOR | unidentified_variables (const std::vector< std::string > &Knowns) const |
STRING_VECTOR | unidentified_variables () const |
STRING_VECTOR | unidentified_sections (unsigned Number, const char *Known,...) const |
STRING_VECTOR | unidentified_sections (const std::set< std::string > &Knowns) const |
STRING_VECTOR | unidentified_sections (const std::vector< std::string > &Knowns) const |
STRING_VECTOR | unidentified_sections () const |
STRING_VECTOR | unidentified_nominuses (unsigned Number, const char *Known,...) const |
STRING_VECTOR | unidentified_nominuses (const std::set< std::string > &Knowns) const |
STRING_VECTOR | unidentified_nominuses (const std::vector< std::string > &Knowns) const |
STRING_VECTOR | unidentified_nominuses () const |
std::set< std::string > | get_requested_arguments () const |
std::set< std::string > | get_requested_variables () const |
std::set< std::string > | get_requested_sections () const |
int | print (std::ostream &out_stream=std::cout) const |
int | print (const char *custom_prefix, std::ostream &out_stream=std::cout, unsigned int skip_count=1) const |
template<> | |
std::string | _convert_to_type (const std::string &String, const std::string &) const |
template<> | |
std::string | _convert_to_type_no_default (const char *, const std::string &String, const std::string &) const |
template<typename T > | |
T | get (unsigned int Idx, const T &Default) const |
template<typename T > | |
T | follow (const T &Default, unsigned int No, const char *P,...) |
template<typename T > | |
T | operator() (const char *VarName, const T &Default, unsigned int Idx) const |
template<typename T > | |
T | operator() (const std::string &VarName, const T &Default, unsigned int Idx) const |
template<typename T > | |
T | get_value_no_default (const char *VarName, const T &Default, unsigned int Idx) const |
template<typename T > | |
T | get_value_no_default (const std::string &VarName, const T &Default, unsigned int Idx) const |
Private Member Functions | |
void | _basic_initialization () |
const char * | _internal_managed_copy (const std::string &Arg) const |
void | _record_argument_request (const std::string &Arg) const |
void | _record_variable_request (const std::string &Arg) const |
void | _set_variable (const std::string &VarName, const std::string &Value, const bool Requested) |
void | _parse_argument_vector (const STRING_VECTOR &ARGV) |
const variable * | _find_variable (const char *) const |
const variable * | _request_variable (const char *) const |
const char * | _match_starting_string (const char *StartString) |
bool | _check_flags (const std::string &Str, const char *FlagList) const |
template<typename T > | |
T | _convert_to_type (const std::string &String, const T &Default) const |
std::string | _convert_to_type (const std::string &String, const char *Default) const |
template<typename T > | |
T | _convert_to_type_no_default (const char *VarName, const std::string &String, const T &Default) const |
std::string | _convert_to_type_no_default (const char *VarName, const std::string &String, const char *Default) const |
const std::string | _get_remaining_string (const std::string &String, const std::string &Start) const |
bool | _search_string_vector (const STRING_VECTOR &Vec, const std::string &Str) const |
void | _skip_whitespace (std::istream &istr) |
const std::string | _get_next_token (std::istream &istr) |
const std::string | _get_string (std::istream &istr) |
const std::string | _get_until_closing_bracket (std::istream &istr) |
const std::string | _get_until_closing_square_bracket (std::istream &istr) |
STRING_VECTOR | _read_in_stream (std::istream &istr) |
std::string | _process_section_label (const std::string &Section, STRING_VECTOR §ion_stack) |
std::string | _DBE_expand_string (const std::string &str) |
std::string | _DBE_expand (const std::string &str) |
const GetPot::variable * | _DBE_get_variable (const std::string &str) |
STRING_VECTOR | _DBE_get_expr_list (const std::string &str, const unsigned ExpectedNumber) |
template<> | |
bool | _convert_to_type (const std::string &String, const bool &Default) const |
template<> | |
bool | _convert_to_type_no_default (const char *VarName, const std::string &String, const bool &) const |
Static Private Member Functions | |
template<typename T > | |
static std::string | _convert_from_type (const T &Value) |
static STRING_VECTOR | _get_section_tree (const std::string &FullPath) |
Private Attributes | |
std::string | prefix |
std::string | section |
STRING_VECTOR | section_list |
STRING_VECTOR | argv |
unsigned | cursor |
bool | search_loop_f |
bool | search_failed_f |
std::set< std::string > | overridden_vars |
int | nominus_cursor |
std::vector< unsigned > | idx_nominus |
std::vector< variable > | variables |
std::string | _comment_start |
std::string | _comment_end |
std::string | _field_separator |
GETPOT_MUTEX_DECLARE | |
std::set< const char *, ltstr > | _internal_string_container |
std::set< std::string > | _requested_arguments |
std::set< std::string > | _requested_variables |
std::set< std::string > | _requested_sections |
bool | request_recording_f |
GetPot - A class for parsing comand line arguments and configuration files.
|
inline |
constructors, destructor, assignment operator
Definition at line 721 of file getpot.h.
References _basic_initialization().
|
inline |
Definition at line 954 of file getpot.h.
References _internal_string_container.
|
inline |
Definition at line 750 of file getpot.h.
References parse_command_line().
|
inline |
Definition at line 811 of file getpot.h.
References parse_input_file().
|
inline |
Definition at line 845 of file getpot.h.
References parse_input_file().
|
inline |
This constructor is mainly for testing. The std::string based constructor should be preferred.
Definition at line 890 of file getpot.h.
References parse_input_stream().
|
inline |
Definition at line 996 of file getpot.h.
References _internal_string_container.
|
inlineprivate |
Definition at line 698 of file getpot.h.
References _comment_end, _comment_start, _field_separator, cursor, nominus_cursor, prefix, request_recording_f, search_failed_f, search_loop_f, and section.
Referenced by GetPot(), parse_command_line(), and parse_input_stream().
|
inlineprivate |
support search for flags in a specific argument
Definition at line 2133 of file getpot.h.
Referenced by argument_contains(), and options_contain().
|
inlinestaticprivate |
Definition at line 668 of file getpot.h.
Referenced by _DBE_expand().
|
inlineprivate |
type conversion if possible
Definition at line 1545 of file getpot.h.
Referenced by _DBE_expand(), direct_follow(), get(), next(), and operator()().
|
inlineprivate |
|
inline |
|
inlineprivate |
|
inlineprivate |
Definition at line 1610 of file getpot.h.
Referenced by get_value_no_default().
|
inlineprivate |
|
inline |
|
inlineprivate |
|
inlineprivate |
Definition at line 2854 of file getpot.h.
References _convert_from_type(), _convert_to_type(), _DBE_get_expr_list(), _DBE_get_variable(), GETPOT_NAMESPACE::GetPot::variable::name, GETPOT_NAMESPACE::GetPot::variable::original, and size().
Referenced by _DBE_expand_string(), and _DBE_get_expr_list().
|
inlineprivate |
dollar bracket expressions
Definition at line 2696 of file getpot.h.
References _DBE_expand().
Referenced by _parse_argument_vector().
|
inlineprivate |
Definition at line 2729 of file getpot.h.
References _DBE_expand().
Referenced by _DBE_expand().
|
inlineprivate |
Definition at line 2820 of file getpot.h.
References _request_variable(), GETPOT_NAMESPACE::GetPot::variable::original, prefix, and section.
Referenced by _DBE_expand().
|
inlineprivate |
helpers for argument list processing search for a variable in 'variables' array
Definition at line 2583 of file getpot.h.
References prefix, and variables.
Referenced by _request_variable(), and _set_variable().
|
inlineprivate |
Definition at line 1344 of file getpot.h.
References _get_string(), _get_until_closing_bracket(), and _get_until_closing_square_bracket().
Referenced by _read_in_stream().
|
inlineprivate |
prefix extraction
Definition at line 1714 of file getpot.h.
Referenced by argument_contains(), get_variable_names(), next(), options_contain(), unidentified_arguments(), unidentified_flags(), unidentified_nominuses(), unidentified_options(), unidentified_sections(), and unidentified_variables().
|
inlinestaticprivate |
cuts a variable name into a tree of sub-sections. this is requested for recording requested sections when dealing with 'ufo' detection.
Definition at line 679 of file getpot.h.
Referenced by _record_argument_request(), and _record_variable_request().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
some functions return a char pointer to a temporarily existing string this function adds them to our container
Definition at line 1683 of file getpot.h.
References _internal_string_container.
Referenced by direct_follow(), follow(), get_value_no_default(), next(), next_nominus(), and operator()().
|
inlineprivate |
support finding directly followed arguments
Definition at line 2035 of file getpot.h.
References argv, cursor, search_failed_f, and search_loop_f.
Referenced by direct_follow().
|
inlineprivate |
produce three basic data vectors:
Definition at line 1107 of file getpot.h.
References _comment_end, _comment_start, _DBE_expand_string(), _field_separator, _process_section_label(), _requested_arguments, _set_variable(), argv, idx_nominus, parse_input_file(), request_recording_f, section, and section_list.
Referenced by parse_command_line(), and parse_input_stream().
|
inlineprivate |
|
inlineprivate |
Definition at line 1210 of file getpot.h.
References _comment_start, _get_next_token(), and _skip_whitespace().
Referenced by parse_input_stream().
|
inlineprivate |
if an argument is requested record it and the 'tag' the section branch to which it belongs. Caution: both functions mark the sections as 'tagged'. These are "const" functions but they do modify the mutable requested* members
Definition at line 2432 of file getpot.h.
References _get_section_tree(), _requested_arguments, _requested_sections, request_recording_f, and section.
Referenced by argument_contains(), direct_follow(), next(), next_nominus(), next_nominus_string(), nominus_vector(), and search().
|
inlineprivate |
Definition at line 2454 of file getpot.h.
References _get_section_tree(), _requested_sections, _requested_variables, request_recording_f, and section.
Referenced by _request_variable().
|
inlineprivate |
search (and record request) for a variable in 'variables' array
Definition at line 2599 of file getpot.h.
References _find_variable(), and _record_variable_request().
Referenced by _DBE_get_variable(), _set_variable(), get_value_no_default(), have_variable(), operator()(), and vector_variable_size().
|
inlineprivate |
|
inlineprivate |
helper functions set variable from inside GetPot (no prefix considered)
Definition at line 2478 of file getpot.h.
References _field_separator, _find_variable(), _request_variable(), overridden_vars, and variables.
Referenced by _parse_argument_vector(), and set().
|
inlineprivate |
helpers to parse input file create an argument vector based on data found in an input file, i.e.: 1) delete comments (in between '_comment_start' '_comment_end') 2) contract assignment expressions, such as my-variable = '007 J. B.' into my-variable='007 J. B.' 3) interprete sections like '[../my-section]' etc.
Definition at line 1282 of file getpot.h.
References _comment_end, and _comment_start.
Referenced by _read_in_stream().
|
inline |
absorbing contents of another GetPot object
Definition at line 1064 of file getpot.h.
References _requested_arguments, _requested_sections, _requested_variables, argv, request_recording_f, and variables.
|
inline |
Definition at line 2098 of file getpot.h.
References _check_flags(), _get_remaining_string(), _record_argument_request(), argv, and prefix.
|
inline |
for ufo detection: recording requested arguments, options etc.
Definition at line 1094 of file getpot.h.
References _requested_arguments, _requested_sections, and _requested_variables.
|
inline |
directly followed arguments
Definition at line 2006 of file getpot.h.
References _convert_to_type(), _match_starting_string(), _record_argument_request(), argv, and cursor.
Referenced by direct_follow().
|
inline |
Definition at line 2024 of file getpot.h.
References _internal_managed_copy(), and direct_follow().
|
inline |
enable/disable search for an option in loop
Definition at line 338 of file getpot.h.
References search_loop_f.
Referenced by init_multiple_occurrence().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 1936 of file getpot.h.
References _internal_managed_copy(), and follow().
|
inline |
search for one of the given options and get argument that follows it
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 1861 of file getpot.h.
References _convert_to_type(), and argv.
|
inline |
Definition at line 2575 of file getpot.h.
References overridden_vars.
|
inline |
Accessors for requested variables
Definition at line 3809 of file getpot.h.
References _requested_arguments.
|
inline |
Definition at line 3827 of file getpot.h.
References _requested_sections.
|
inline |
Definition at line 3818 of file getpot.h.
References _requested_variables.
|
inline |
|
inline |
access varibles, but error out if not present scalar values
Definition at line 2344 of file getpot.h.
References _convert_to_type_no_default(), _request_variable(), and GETPOT_NAMESPACE::GetPot::variable::original.
Referenced by get_value_no_default().
|
inline |
Definition at line 2360 of file getpot.h.
References get_value_no_default().
|
inline |
Definition at line 2368 of file getpot.h.
References _internal_managed_copy(), and get_value_no_default().
|
inline |
Definition at line 2376 of file getpot.h.
References get_value_no_default().
|
inline |
vectors
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 2385 of file getpot.h.
References _convert_to_type_no_default(), _request_variable(), and GETPOT_NAMESPACE::GetPot::variable::get_element().
|
inline |
Definition at line 2408 of file getpot.h.
References get_value_no_default().
|
inline |
Definition at line 2551 of file getpot.h.
References _get_remaining_string(), prefix, and variables.
|
inline |
Check for a section name. When querying, the section_name can be of the form Section1 or Section1/
Section1/Section2 or Section1/Section2/
etc.
Definition at line 2233 of file getpot.h.
|
inline |
Check for a section name. When querying, the section_name can be of the form Section1 or Section1/
Section1/Section2 or Section1/Section2/
etc.
Definition at line 2240 of file getpot.h.
References section_list.
|
inline |
variables check for a variable
Definition at line 2214 of file getpot.h.
References _request_variable().
Referenced by have_variable().
|
inline |
Definition at line 2227 of file getpot.h.
References have_variable().
|
inline |
|
inline |
get argument at cursor++
Definition at line 1891 of file getpot.h.
References _convert_to_type(), _get_remaining_string(), _record_argument_request(), argv, cursor, prefix, and search_failed_f.
Referenced by follow(), and next().
|
inline |
Definition at line 1913 of file getpot.h.
References _internal_managed_copy(), and next().
|
inline |
Definition at line 2167 of file getpot.h.
References _internal_managed_copy(), _record_argument_request(), argv, idx_nominus, and nominus_cursor.
|
inline |
Definition at line 2184 of file getpot.h.
References _record_argument_request(), argv, idx_nominus, and nominus_cursor.
|
inline |
|
inline |
Definition at line 2148 of file getpot.h.
References _record_argument_request(), argv, and idx_nominus.
|
inline |
scalar values
Definition at line 2262 of file getpot.h.
References _convert_to_type(), _request_variable(), and GETPOT_NAMESPACE::GetPot::variable::original.
Referenced by operator()().
|
inline |
Definition at line 2277 of file getpot.h.
References operator()().
|
inline |
Definition at line 2285 of file getpot.h.
References _internal_managed_copy().
|
inline |
Definition at line 2293 of file getpot.h.
References operator()().
|
inline |
vectors
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 2302 of file getpot.h.
References _convert_to_type(), _request_variable(), and GETPOT_NAMESPACE::GetPot::variable::get_element().
|
inline |
Definition at line 2319 of file getpot.h.
References operator()().
Definition at line 1008 of file getpot.h.
References _comment_end, _comment_start, _field_separator, _internal_string_container, _requested_arguments, _requested_sections, _requested_variables, argv, cursor, idx_nominus, nominus_cursor, overridden_vars, prefix, request_recording_f, search_failed_f, search_loop_f, section, section_list, and variables.
Referenced by GETPOT_NAMESPACE::GetPot::variable::variable().
|
inline |
|
inline |
flags
Definition at line 2079 of file getpot.h.
References _check_flags(), _get_remaining_string(), argv, and prefix.
|
inline |
Re-initialization methods
Definition at line 782 of file getpot.h.
References _basic_initialization(), _field_separator, and _parse_argument_vector().
Referenced by GetPot().
|
inline |
Definition at line 875 of file getpot.h.
References parse_input_stream().
Referenced by _parse_argument_vector(), and GetPot().
|
inline |
Definition at line 923 of file getpot.h.
References _basic_initialization(), _comment_end, _comment_start, _field_separator, _parse_argument_vector(), and _read_in_stream().
Referenced by GetPot(), and parse_input_file().
|
inline |
|
inline |
|
inline |
reset cursor to position '1'
Definition at line 1830 of file getpot.h.
References cursor, and search_failed_f.
Referenced by init_multiple_occurrence().
|
inline |
|
inline |
search for a certain option and set cursor to position
Definition at line 1741 of file getpot.h.
References _record_argument_request(), argv, cursor, prefix, search_failed_f, and search_loop_f.
Referenced by follow(), and search().
|
inline |
|
inline |
Definition at line 1784 of file getpot.h.
References _record_argument_request(), and search().
|
inline |
|
inline |
setting variables i) from outside of GetPot (considering prefix etc.) ii) from inside, use '_set_variable()' below
Definition at line 2497 of file getpot.h.
References _set_variable().
Referenced by set().
|
inline |
Definition at line 2508 of file getpot.h.
References set().
|
inline |
Definition at line 2516 of file getpot.h.
References _set_variable().
|
inline |
Definition at line 2524 of file getpot.h.
References set().
|
inline |
|
inline |
|
inline |
unidentified flying objects
Definition at line 3372 of file getpot.h.
References unidentified_arguments().
|
inline |
Definition at line 3412 of file getpot.h.
References _get_remaining_string(), argv, and prefix.
|
inline |
Definition at line 3402 of file getpot.h.
References unidentified_arguments().
|
inline |
Definition at line 3394 of file getpot.h.
References _requested_arguments.
Referenced by unidentified_arguments(), and unidentified_options().
|
inline |
Definition at line 3510 of file getpot.h.
References _get_remaining_string(), argv, and prefix.
|
inline |
Definition at line 3707 of file getpot.h.
References unidentified_nominuses().
|
inline |
Definition at line 3758 of file getpot.h.
References _get_remaining_string(), argv, and prefix.
|
inline |
Definition at line 3748 of file getpot.h.
References unidentified_nominuses().
|
inline |
Definition at line 3733 of file getpot.h.
References _requested_arguments.
Referenced by unidentified_nominuses().
|
inline |
Definition at line 3434 of file getpot.h.
References unidentified_options().
|
inline |
Definition at line 3480 of file getpot.h.
References _get_remaining_string(), argv, and prefix.
|
inline |
Definition at line 3470 of file getpot.h.
References unidentified_options().
|
inline |
Definition at line 3456 of file getpot.h.
References _requested_arguments, and unidentified_arguments().
Referenced by unidentified_options().
|
inline |
Definition at line 3635 of file getpot.h.
References unidentified_sections().
|
inline |
Definition at line 3685 of file getpot.h.
References _get_remaining_string(), prefix, and section_list.
|
inline |
Definition at line 3675 of file getpot.h.
References unidentified_sections().
|
inline |
Definition at line 3667 of file getpot.h.
References _requested_sections.
Referenced by unidentified_sections().
|
inline |
Definition at line 3574 of file getpot.h.
References unidentified_variables().
|
inline |
Definition at line 3606 of file getpot.h.
References _get_remaining_string(), prefix, and variables.
|
inline |
Definition at line 3596 of file getpot.h.
References unidentified_variables().
|
inline |
Definition at line 3627 of file getpot.h.
References _requested_variables.
Referenced by unidentified_variables().
|
inline |
Definition at line 2532 of file getpot.h.
References _request_variable(), and GETPOT_NAMESPACE::GetPot::variable::value.
Referenced by vector_variable_size().
|
inline |
Definition at line 2543 of file getpot.h.
References vector_variable_size().
|
private |
Definition at line 514 of file getpot.h.
Referenced by _basic_initialization(), _parse_argument_vector(), _skip_whitespace(), operator=(), and parse_input_stream().
|
private |
comment delimiters
Definition at line 513 of file getpot.h.
Referenced by _basic_initialization(), _parse_argument_vector(), _read_in_stream(), _skip_whitespace(), operator=(), and parse_input_stream().
|
private |
field separator (separating elements of a vector)
Definition at line 519 of file getpot.h.
Referenced by _basic_initialization(), _parse_argument_vector(), _set_variable(), operator=(), parse_command_line(), and parse_input_stream().
|
mutableprivate |
some functions return a char pointer to a string created on the fly. this container makes them 'available' until the getpot object is destroyed. user codes are recommended to instead request std::string values. We use char* here because c_str() results are only guaranteed to remain valid until a non-const string method is called
Definition at line 545 of file getpot.h.
Referenced by _internal_managed_copy(), GetPot(), operator=(), and ~GetPot().
|
mutableprivate |
keeping track about arguments that are requested, so that the UFO detection can be simplified
Definition at line 557 of file getpot.h.
Referenced by _parse_argument_vector(), _record_argument_request(), absorb(), clear_requests(), get_requested_arguments(), operator=(), unidentified_arguments(), unidentified_nominuses(), and unidentified_options().
|
mutableprivate |
Definition at line 559 of file getpot.h.
Referenced by _record_argument_request(), _record_variable_request(), absorb(), clear_requests(), get_requested_sections(), operator=(), and unidentified_sections().
|
mutableprivate |
Definition at line 558 of file getpot.h.
Referenced by _record_variable_request(), absorb(), clear_requests(), get_requested_variables(), operator=(), and unidentified_variables().
|
private |
argument vector
Definition at line 493 of file getpot.h.
Referenced by _match_starting_string(), _parse_argument_vector(), absorb(), argument_contains(), direct_follow(), get(), next(), next_nominus(), next_nominus_string(), nominus_vector(), operator=(), operator[](), options_contain(), print(), search(), size(), unidentified_arguments(), unidentified_flags(), unidentified_nominuses(), and unidentified_options().
|
private |
Definition at line 494 of file getpot.h.
Referenced by _basic_initialization(), _match_starting_string(), direct_follow(), next(), operator=(), reset_cursor(), and search().
|
private |
|
private |
Definition at line 503 of file getpot.h.
Referenced by _parse_argument_vector(), next_nominus(), next_nominus_string(), nominus_size(), nominus_vector(), and operator=().
|
private |
nominus vector
Definition at line 502 of file getpot.h.
Referenced by _basic_initialization(), next_nominus(), next_nominus_string(), operator=(), and reset_nominus_cursor().
|
private |
Definition at line 497 of file getpot.h.
Referenced by _set_variable(), get_overridden_variables(), and operator=().
|
private |
member variables
Definition at line 486 of file getpot.h.
Referenced by _basic_initialization(), _DBE_get_variable(), _find_variable(), argument_contains(), get_variable_names(), next(), operator=(), options_contain(), search(), set_prefix(), unidentified_arguments(), unidentified_flags(), unidentified_nominuses(), unidentified_options(), unidentified_sections(), and unidentified_variables().
|
private |
Definition at line 561 of file getpot.h.
Referenced by _basic_initialization(), _parse_argument_vector(), _record_argument_request(), _record_variable_request(), absorb(), disable_request_recording(), enable_request_recording(), and operator=().
|
private |
Definition at line 496 of file getpot.h.
Referenced by _basic_initialization(), _match_starting_string(), next(), operator=(), reset_cursor(), search(), and search_failed().
|
private |
Definition at line 495 of file getpot.h.
Referenced by _basic_initialization(), _match_starting_string(), disable_loop(), enable_loop(), operator=(), and search().
|
private |
Definition at line 487 of file getpot.h.
Referenced by _basic_initialization(), _DBE_get_variable(), _parse_argument_vector(), _record_argument_request(), _record_variable_request(), and operator=().
|
private |
Definition at line 488 of file getpot.h.
Referenced by _parse_argument_vector(), get_section_names(), have_section(), operator=(), and unidentified_sections().
|
private |
variables (arguments of the form "variable=value")
Definition at line 508 of file getpot.h.
Referenced by _find_variable(), _set_variable(), absorb(), get_variable_names(), operator=(), and unidentified_variables().