#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("\), const std::string &FieldSeparator=std::string(" \\")) | |
GetPot (std::istream &FileStream, const std::string &CommentStart=std::string("#"), const std::string &CommentEnd=std::string("\), const std::string &FieldSeparator=std::string(" \\")) | |
~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("\), const std::string &FieldSeparator=std::string(" \\")) |
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("\), const std::string &FieldSeparator=std::string(" \\")) |
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 |
STRING_VECTOR | get_subsection_names (const std::string §ion_name) 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 command line arguments and configuration files.
|
inline |
constructors, destructor, assignment operator
Definition at line 743 of file getpot.h.
References _basic_initialization().
|
inline |
Definition at line 976 of file getpot.h.
References _internal_string_container, and end.
|
inline |
Definition at line 772 of file getpot.h.
References parse_command_line().
|
inline |
Definition at line 833 of file getpot.h.
References parse_input_file().
|
inline |
Definition at line 867 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 912 of file getpot.h.
References parse_input_stream().
|
inline |
Definition at line 1018 of file getpot.h.
References _internal_string_container, and end.
|
inlineprivate |
Definition at line 720 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 2157 of file getpot.h.
Referenced by argument_contains(), and options_contain().
|
inlinestaticprivate |
Definition at line 690 of file getpot.h.
Referenced by _DBE_expand().
|
inlineprivate |
type conversion if possible
Definition at line 1568 of file getpot.h.
Referenced by _DBE_expand(), direct_follow(), get(), next(), and operator()().
|
inlineprivate |
|
inline |
|
inlineprivate |
|
inlineprivate |
Definition at line 1633 of file getpot.h.
References libMesh::Quality::name().
Referenced by get_value_no_default().
|
inlineprivate |
|
inline |
|
inlineprivate |
Definition at line 1671 of file getpot.h.
References libMesh::Quality::name().
|
inlineprivate |
Definition at line 2928 of file getpot.h.
References _convert_from_type(), _convert_to_type(), _DBE_get_expr_list(), _DBE_get_variable(), A, std::abs(), end, std::max(), std::min(), GETPOT_NAMESPACE::GetPot::variable::name, GETPOT_NAMESPACE::GetPot::variable::original, std::pow(), and size().
Referenced by _DBE_expand_string(), and _DBE_get_expr_list().
|
inlineprivate |
dollar bracket expressions
Definition at line 2770 of file getpot.h.
References _DBE_expand().
Referenced by _parse_argument_vector().
|
inlineprivate |
Definition at line 2803 of file getpot.h.
References _DBE_expand().
Referenced by _DBE_expand().
|
inlineprivate |
Definition at line 2894 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 2657 of file getpot.h.
References prefix, and variables.
Referenced by _request_variable(), and _set_variable().
|
inlineprivate |
Definition at line 1367 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 1738 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 701 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 1706 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 2059 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 1130 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 1233 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 2456 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 2478 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 2673 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 2502 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 1305 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 1087 of file getpot.h.
References _requested_arguments, _requested_sections, _requested_variables, argv, request_recording_f, and variables.
|
inline |
Definition at line 2122 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 1117 of file getpot.h.
References _requested_arguments, _requested_sections, and _requested_variables.
|
inline |
directly followed arguments
Definition at line 2030 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 2048 of file getpot.h.
References _internal_managed_copy(), and direct_follow().
|
inline |
enable/disable search for an option in loop
Definition at line 360 of file getpot.h.
References search_loop_f.
Referenced by init_multiple_occurrence().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 1960 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 1885 of file getpot.h.
References _convert_to_type(), and argv.
|
inline |
Definition at line 2649 of file getpot.h.
References overridden_vars.
|
inline |
Accessors for requested variables
Definition at line 3883 of file getpot.h.
References _requested_arguments.
|
inline |
Definition at line 3901 of file getpot.h.
References _requested_sections.
|
inline |
Definition at line 3892 of file getpot.h.
References _requested_variables.
|
inline |
|
inline |
|
inline |
access variables, but error out if not present scalar values
Definition at line 2368 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 2384 of file getpot.h.
References get_value_no_default().
|
inline |
Definition at line 2392 of file getpot.h.
References _internal_managed_copy(), and get_value_no_default().
|
inline |
Definition at line 2400 of file getpot.h.
References get_value_no_default().
|
inline |
vectors
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 2409 of file getpot.h.
References _convert_to_type_no_default(), _request_variable(), and GETPOT_NAMESPACE::GetPot::variable::get_element().
|
inline |
Definition at line 2432 of file getpot.h.
References get_value_no_default().
|
inline |
Definition at line 2575 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 2257 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 2264 of file getpot.h.
References section_list.
|
inline |
variables check for a variable
Definition at line 2238 of file getpot.h.
References _request_variable().
Referenced by have_variable().
|
inline |
Definition at line 2251 of file getpot.h.
References have_variable().
|
inline |
|
inline |
get argument at cursor++
Definition at line 1915 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 1937 of file getpot.h.
References _internal_managed_copy(), and next().
|
inline |
Definition at line 2191 of file getpot.h.
References _internal_managed_copy(), _record_argument_request(), argv, idx_nominus, and nominus_cursor.
|
inline |
Definition at line 2208 of file getpot.h.
References _record_argument_request(), argv, idx_nominus, and nominus_cursor.
|
inline |
|
inline |
Definition at line 2172 of file getpot.h.
References _record_argument_request(), argv, and idx_nominus.
|
inline |
scalar values
Definition at line 2286 of file getpot.h.
References _convert_to_type(), _request_variable(), and GETPOT_NAMESPACE::GetPot::variable::original.
Referenced by operator()().
|
inline |
Definition at line 2301 of file getpot.h.
References operator()().
|
inline |
Definition at line 2309 of file getpot.h.
References _internal_managed_copy().
|
inline |
Definition at line 2317 of file getpot.h.
References operator()().
|
inline |
vectors
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 2326 of file getpot.h.
References _convert_to_type(), _request_variable(), and GETPOT_NAMESPACE::GetPot::variable::get_element().
|
inline |
Definition at line 2343 of file getpot.h.
References operator()().
Definition at line 1030 of file getpot.h.
References _comment_end, _comment_start, _field_separator, _internal_string_container, _requested_arguments, _requested_sections, _requested_variables, argv, cursor, end, 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 |
direct access to command line arguments
Definition at line 1876 of file getpot.h.
References argv, and libMesh::MeshTools::Generation::Private::idx().
|
inline |
flags
Definition at line 2103 of file getpot.h.
References _check_flags(), _get_remaining_string(), argv, and prefix.
|
inline |
Re-initialization methods
Definition at line 804 of file getpot.h.
References _basic_initialization(), _field_separator, and _parse_argument_vector().
Referenced by GetPot().
|
inline |
Definition at line 897 of file getpot.h.
References parse_input_stream().
Referenced by _parse_argument_vector(), and GetPot().
|
inline |
Definition at line 945 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 1854 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 1765 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 1808 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 2521 of file getpot.h.
References _set_variable().
|
inline |
|
inline |
Definition at line 2540 of file getpot.h.
References _set_variable().
|
inline |
|
inline |
|
inline |
|
inline |
unidentified flying objects
Definition at line 3446 of file getpot.h.
References unidentified_arguments().
|
inline |
Definition at line 3486 of file getpot.h.
References _get_remaining_string(), argv, and prefix.
|
inline |
Definition at line 3476 of file getpot.h.
References unidentified_arguments().
|
inline |
Definition at line 3468 of file getpot.h.
References _requested_arguments.
Referenced by unidentified_arguments(), and unidentified_options().
|
inline |
Definition at line 3584 of file getpot.h.
References _get_remaining_string(), argv, and prefix.
|
inline |
Definition at line 3781 of file getpot.h.
References unidentified_nominuses().
|
inline |
Definition at line 3832 of file getpot.h.
References _get_remaining_string(), argv, and prefix.
|
inline |
Definition at line 3822 of file getpot.h.
References unidentified_nominuses().
|
inline |
Definition at line 3807 of file getpot.h.
References _requested_arguments.
Referenced by unidentified_nominuses().
|
inline |
Definition at line 3508 of file getpot.h.
References unidentified_options().
|
inline |
Definition at line 3554 of file getpot.h.
References _get_remaining_string(), argv, and prefix.
|
inline |
Definition at line 3544 of file getpot.h.
References unidentified_options().
|
inline |
Definition at line 3530 of file getpot.h.
References _requested_arguments, and unidentified_arguments().
Referenced by unidentified_options().
|
inline |
Definition at line 3709 of file getpot.h.
References unidentified_sections().
|
inline |
Definition at line 3759 of file getpot.h.
References _get_remaining_string(), prefix, and section_list.
|
inline |
Definition at line 3749 of file getpot.h.
References unidentified_sections().
|
inline |
Definition at line 3741 of file getpot.h.
References _requested_sections.
Referenced by unidentified_sections().
|
inline |
Definition at line 3648 of file getpot.h.
References unidentified_variables().
|
inline |
Definition at line 3680 of file getpot.h.
References _get_remaining_string(), prefix, and variables.
|
inline |
Definition at line 3670 of file getpot.h.
References unidentified_variables().
|
inline |
Definition at line 3701 of file getpot.h.
References _requested_variables.
Referenced by unidentified_variables().
|
inline |
Definition at line 2556 of file getpot.h.
References _request_variable(), and GETPOT_NAMESPACE::GetPot::variable::value.
Referenced by vector_variable_size().
|
inline |
Definition at line 2567 of file getpot.h.
References vector_variable_size().
|
private |
Definition at line 536 of file getpot.h.
Referenced by _basic_initialization(), _parse_argument_vector(), _skip_whitespace(), operator=(), and parse_input_stream().
|
private |
comment delimiters
Definition at line 535 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 541 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 567 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 579 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 581 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 580 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 515 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 516 of file getpot.h.
Referenced by _basic_initialization(), _match_starting_string(), direct_follow(), next(), operator=(), reset_cursor(), and search().
|
private |
|
private |
Definition at line 525 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 524 of file getpot.h.
Referenced by _basic_initialization(), next_nominus(), next_nominus_string(), operator=(), and reset_nominus_cursor().
|
private |
Definition at line 519 of file getpot.h.
Referenced by _set_variable(), get_overridden_variables(), and operator=().
|
private |
member variables
Definition at line 508 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 583 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 518 of file getpot.h.
Referenced by _basic_initialization(), _match_starting_string(), next(), operator=(), reset_cursor(), search(), and search_failed().
|
private |
Definition at line 517 of file getpot.h.
Referenced by _basic_initialization(), _match_starting_string(), disable_loop(), enable_loop(), operator=(), and search().
|
private |
Definition at line 509 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 510 of file getpot.h.
Referenced by _parse_argument_vector(), get_section_names(), get_subsection_names(), have_section(), operator=(), and unidentified_sections().
|
private |
variables (arguments of the form "variable=value")
Definition at line 530 of file getpot.h.
Referenced by _find_variable(), _set_variable(), absorb(), get_variable_names(), operator=(), and unidentified_variables().