libMesh
|
GetPot - A class for parsing command line arguments and configuration files. More...
#include <getpot.h>
Classes | |
struct | ltstr |
helper functor for creating sets of C-style strings More... | |
struct | variable |
Variable to be specified on the command line or in input files. More... | |
Public Member Functions | |
GetPot () | |
constructors, destructor, assignment operator More... | |
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(" \\")) | |
This constructor is mainly for testing. More... | |
~GetPot () | |
GetPot & | operator= (const GetPot &) |
void | parse_command_line (const int argc_, const char *const *argv_, const char *FieldSeparator=0x0) |
Re-initialization methods. More... | |
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) |
absorbing contents of another GetPot object More... | |
void | clear_requests () |
for ufo detection: recording requested arguments, options etc. More... | |
void | disable_request_recording () |
void | enable_request_recording () |
const char * | operator[] (unsigned Idx) const |
direct access to command line arguments More... | |
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 |
flags More... | |
bool | argument_contains (unsigned Idx, const char *FlagList) const |
bool | have_variable (const char *VarName) const |
variables More... | |
bool | have_variable (const std::string &VarName) const |
bool | have_section (const char *section_name) const |
Check for a section name. More... | |
bool | have_section (const std::string §ion_name) const |
Check for a section name. More... | |
template<typename T > | |
T | operator() (const char *VarName, const T &Default) const |
scalar values More... | |
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 |
vectors More... | |
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 |
access variables, but error out if not present scalar values More... | |
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 |
vectors More... | |
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) |
setting variables i) from outside of GetPot (considering prefix etc.) ii) from inside, use '_set_variable()' below More... | |
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) |
cursor oriented functions More... | |
bool | search_failed () const |
void | disable_loop () |
enable/disable search for an option in loop More... | |
void | enable_loop () |
void | reset_cursor () |
reset cursor to position '1' More... | |
void | init_multiple_occurrence () |
bool | search (const char *option) |
search for a certain option and set cursor to position More... | |
bool | search (const std::string &option) |
bool | search (unsigned No, const char *P,...) |
template<typename T > | |
T | next (const T &Default) |
get argument at cursor++ More... | |
const char * | next (const char *Default) |
template<typename T > | |
T | follow (const T &Default, const char *Option) |
search for option and get argument at cursor++ More... | |
const char * | follow (const char *Default, const char *Option) |
template<typename T > | |
T | follow (const T &Default, unsigned No, const char *Option,...) |
search for one of the given options and get argument that follows it More... | |
const char * | follow (const char *Default, unsigned No, const char *Option,...) |
template<typename T > | |
T | direct_follow (const T &Default, const char *Option) |
directly followed arguments More... | |
const char * | direct_follow (const char *Default, const char *Option) |
void | reset_nominus_cursor () |
nominus arguments More... | |
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 |
unidentified flying objects More... | |
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 |
Accessors for requested variables. More... | |
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 |
output More... | |
int | print (const char *custom_prefix, std::ostream &out_stream=std::cout, unsigned int skip_count=1) const |
Print everything after skipping skip_count arguments, with a custom prefix. More... | |
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 |
some functions return a char pointer to a temporarily existing string this function adds them to our container More... | |
void | _record_argument_request (const std::string &Arg) const |
if an argument is requested record it and the 'tag' the section branch to which it belongs. More... | |
void | _record_variable_request (const std::string &Arg) const |
void | _set_variable (const std::string &VarName, const std::string &Value, const bool Requested) |
helper functions More... | |
void | _parse_argument_vector (const STRING_VECTOR &ARGV) |
produce three basic data vectors: More... | |
const variable * | _find_variable (const char *) const |
helpers for argument list processing More... | |
const variable * | _request_variable (const char *) const |
search (and record request) for a variable in 'variables' array More... | |
const char * | _match_starting_string (const char *StartString) |
support finding directly followed arguments More... | |
bool | _check_flags (const std::string &Str, const char *FlagList) const |
support search for flags in a specific argument More... | |
template<typename T > | |
T | _convert_to_type (const std::string &String, const T &Default) const |
type conversion if possible More... | |
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 |
prefix extraction More... | |
bool | _search_string_vector (const STRING_VECTOR &Vec, const std::string &Str) const |
search for a specific string More... | |
void | _skip_whitespace (std::istream &istr) |
helpers to parse input file create an argument vector based on data found in an input file, i.e. More... | |
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) |
dollar bracket expressions More... | |
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) |
cuts a variable name into a tree of sub-sections. More... | |
Private Attributes | |
std::string | prefix |
member variables More... | |
std::string | section |
STRING_VECTOR | section_list |
STRING_VECTOR | argv |
argument vector More... | |
unsigned | cursor |
bool | search_loop_f |
bool | search_failed_f |
std::set< std::string > | overridden_vars |
int | nominus_cursor |
nominus vector More... | |
std::vector< unsigned > | idx_nominus |
std::vector< variable > | variables |
variables (arguments of the form "variable=value") More... | |
std::string | _comment_start |
comment delimiters More... | |
std::string | _comment_end |
std::string | _field_separator |
field separator (separating elements of a vector) More... | |
GETPOT_MUTEX_DECLARE | |
we have some mutable non-thread-safe members, but we want to be able to call const member functions from multiple threads at once, so we'll wrap access to mutable objects in a mutex. More... | |
std::set< const char *, ltstr > | _internal_string_container |
some functions return a char pointer to a string created on the fly. More... | |
std::set< std::string > | _requested_arguments |
keeping track about arguments that are requested, so that the UFO detection can be simplified More... | |
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 744 of file getpot.h.
References _basic_initialization().
|
inline |
Definition at line 977 of file getpot.h.
References _internal_string_container.
|
inline |
Definition at line 773 of file getpot.h.
References parse_command_line().
|
inline |
Definition at line 834 of file getpot.h.
References parse_input_file().
|
inline |
Definition at line 868 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 913 of file getpot.h.
References parse_input_stream().
|
inline |
Definition at line 1019 of file getpot.h.
References _internal_string_container.
|
inlineprivate |
Definition at line 721 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 2158 of file getpot.h.
Referenced by argument_contains(), and options_contain().
|
inlinestaticprivate |
Definition at line 691 of file getpot.h.
Referenced by _DBE_expand().
|
inlineprivate |
type conversion if possible
Definition at line 1569 of file getpot.h.
Referenced by _DBE_expand(), direct_follow(), get(), next(), and operator()().
|
inlineprivate |
|
inline |
|
inlineprivate |
|
inlineprivate |
Definition at line 1634 of file getpot.h.
References libMesh::Quality::name().
Referenced by get_value_no_default().
|
inlineprivate |
|
inline |
|
inlineprivate |
Definition at line 1672 of file getpot.h.
References libMesh::Quality::name().
|
inlineprivate |
Definition at line 2929 of file getpot.h.
References _convert_from_type(), _convert_to_type(), _DBE_get_expr_list(), _DBE_get_variable(), std::abs(), int, GETPOT_NAMESPACE::GetPot::variable::name, GETPOT_NAMESPACE::GetPot::variable::original, libMesh::Utility::pow(), size(), and std::sqrt().
Referenced by _DBE_expand_string(), and _DBE_get_expr_list().
|
inlineprivate |
dollar bracket expressions
Definition at line 2771 of file getpot.h.
References _DBE_expand().
Referenced by _parse_argument_vector().
|
inlineprivate |
Definition at line 2804 of file getpot.h.
References _DBE_expand(), and int.
Referenced by _DBE_expand().
|
inlineprivate |
Definition at line 2895 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 2658 of file getpot.h.
References prefix, and variables.
Referenced by _request_variable(), and _set_variable().
|
inlineprivate |
Definition at line 1368 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 1739 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 702 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 1707 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 2060 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 1131 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 1234 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 2457 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 2479 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 2674 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 2503 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) interpret sections like '[../my-section]' etc.
Definition at line 1306 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 1088 of file getpot.h.
References _requested_arguments, _requested_sections, _requested_variables, argv, request_recording_f, and variables.
|
inline |
Definition at line 2123 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 1118 of file getpot.h.
References _requested_arguments, _requested_sections, and _requested_variables.
|
inline |
directly followed arguments
Definition at line 2031 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 2049 of file getpot.h.
References _internal_managed_copy(), and direct_follow().
|
inline |
enable/disable search for an option in loop
Definition at line 361 of file getpot.h.
References search_loop_f.
Referenced by init_multiple_occurrence().
|
inline |
|
inline |
|
inline |
|
inline |
search for option and get argument at cursor++
Definition at line 1949 of file getpot.h.
References next(), and search().
Referenced by follow().
|
inline |
Definition at line 1961 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 |
Definition at line 1999 of file getpot.h.
References next(), and search().
|
inline |
Definition at line 1972 of file getpot.h.
References next(), and search().
|
inline |
|
inline |
|
inline |
Definition at line 1886 of file getpot.h.
References _convert_to_type(), and argv.
|
inline |
Definition at line 2650 of file getpot.h.
References overridden_vars.
|
inline |
Accessors for requested variables.
Definition at line 3884 of file getpot.h.
References _requested_arguments.
|
inline |
Definition at line 3902 of file getpot.h.
References _requested_sections.
|
inline |
Definition at line 3893 of file getpot.h.
References _requested_variables.
|
inline |
|
inline |
|
inline |
access variables, but error out if not present scalar values
Definition at line 2369 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 2385 of file getpot.h.
References get_value_no_default().
|
inline |
Definition at line 2393 of file getpot.h.
References _internal_managed_copy(), and get_value_no_default().
|
inline |
Definition at line 2401 of file getpot.h.
References get_value_no_default().
|
inline |
vectors
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 2410 of file getpot.h.
References _convert_to_type_no_default(), _request_variable(), and GETPOT_NAMESPACE::GetPot::variable::get_element().
|
inline |
Definition at line 2433 of file getpot.h.
References get_value_no_default().
|
inline |
Definition at line 2576 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 2258 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 2265 of file getpot.h.
References section_list.
|
inline |
variables
check for a variable
Definition at line 2239 of file getpot.h.
References _request_variable().
Referenced by have_variable().
|
inline |
Definition at line 2252 of file getpot.h.
References have_variable().
|
inline |
Definition at line 1864 of file getpot.h.
References disable_loop(), and reset_cursor().
|
inline |
get argument at cursor++
Definition at line 1916 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 1938 of file getpot.h.
References _internal_managed_copy(), and next().
|
inline |
Definition at line 2192 of file getpot.h.
References _internal_managed_copy(), _record_argument_request(), argv, idx_nominus, and nominus_cursor.
|
inline |
Definition at line 2209 of file getpot.h.
References _record_argument_request(), argv, idx_nominus, and nominus_cursor.
|
inline |
|
inline |
Definition at line 2173 of file getpot.h.
References _record_argument_request(), argv, and idx_nominus.
|
inline |
scalar values
Definition at line 2287 of file getpot.h.
References _convert_to_type(), _request_variable(), and GETPOT_NAMESPACE::GetPot::variable::original.
Referenced by operator()().
|
inline |
Definition at line 2302 of file getpot.h.
References operator()().
|
inline |
Definition at line 2310 of file getpot.h.
References _internal_managed_copy().
|
inline |
Definition at line 2318 of file getpot.h.
References operator()().
|
inline |
vectors
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 2327 of file getpot.h.
References _convert_to_type(), _request_variable(), and GETPOT_NAMESPACE::GetPot::variable::get_element().
|
inline |
Definition at line 2344 of file getpot.h.
References operator()().
Definition at line 1031 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 |
direct access to command line arguments
Definition at line 1877 of file getpot.h.
References argv, and libMesh::MeshTools::Generation::Private::idx().
|
inline |
flags
Definition at line 2104 of file getpot.h.
References _check_flags(), _get_remaining_string(), argv, and prefix.
|
inline |
Re-initialization methods.
Definition at line 805 of file getpot.h.
References _basic_initialization(), _field_separator, and _parse_argument_vector().
Referenced by GetPot().
|
inline |
Definition at line 898 of file getpot.h.
References parse_input_stream().
Referenced by _parse_argument_vector(), and GetPot().
|
inline |
Definition at line 946 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 1855 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 1766 of file getpot.h.
References _record_argument_request(), argv, cursor, prefix, search_failed_f, and search_loop_f.
Referenced by follow(), and search().
|
inline |
Definition at line 1757 of file getpot.h.
References search().
|
inline |
Definition at line 1809 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 2522 of file getpot.h.
References _set_variable().
|
inline |
|
inline |
Definition at line 2541 of file getpot.h.
References _set_variable().
|
inline |
|
inline |
|
inline |
|
inline |
unidentified flying objects
Definition at line 3447 of file getpot.h.
References unidentified_arguments().
|
inline |
Definition at line 3487 of file getpot.h.
References _get_remaining_string(), argv, and prefix.
|
inline |
Definition at line 3477 of file getpot.h.
References unidentified_arguments().
|
inline |
Definition at line 3469 of file getpot.h.
References _requested_arguments.
Referenced by unidentified_arguments(), and unidentified_options().
|
inline |
Definition at line 3585 of file getpot.h.
References _get_remaining_string(), argv, and prefix.
|
inline |
Definition at line 3782 of file getpot.h.
References unidentified_nominuses().
|
inline |
Definition at line 3833 of file getpot.h.
References _get_remaining_string(), argv, and prefix.
|
inline |
Definition at line 3823 of file getpot.h.
References unidentified_nominuses().
|
inline |
Definition at line 3808 of file getpot.h.
References _requested_arguments.
Referenced by unidentified_nominuses().
|
inline |
Definition at line 3509 of file getpot.h.
References unidentified_options().
|
inline |
Definition at line 3555 of file getpot.h.
References _get_remaining_string(), argv, and prefix.
|
inline |
Definition at line 3545 of file getpot.h.
References unidentified_options().
|
inline |
Definition at line 3531 of file getpot.h.
References _requested_arguments, and unidentified_arguments().
Referenced by unidentified_options().
|
inline |
Definition at line 3710 of file getpot.h.
References unidentified_sections().
|
inline |
Definition at line 3760 of file getpot.h.
References _get_remaining_string(), prefix, and section_list.
|
inline |
Definition at line 3750 of file getpot.h.
References unidentified_sections().
|
inline |
Definition at line 3742 of file getpot.h.
References _requested_sections.
Referenced by unidentified_sections().
|
inline |
Definition at line 3649 of file getpot.h.
References unidentified_variables().
|
inline |
Definition at line 3681 of file getpot.h.
References _get_remaining_string(), prefix, and variables.
|
inline |
Definition at line 3671 of file getpot.h.
References unidentified_variables().
|
inline |
Definition at line 3702 of file getpot.h.
References _requested_variables.
Referenced by unidentified_variables().
|
inline |
Definition at line 2557 of file getpot.h.
References _request_variable(), and GETPOT_NAMESPACE::GetPot::variable::value.
Referenced by vector_variable_size().
|
inline |
Definition at line 2568 of file getpot.h.
References vector_variable_size().
|
private |
Definition at line 537 of file getpot.h.
Referenced by _basic_initialization(), _parse_argument_vector(), _skip_whitespace(), operator=(), and parse_input_stream().
|
private |
comment delimiters
Definition at line 536 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 542 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 568 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 580 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 582 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 581 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 516 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 517 of file getpot.h.
Referenced by _basic_initialization(), _match_starting_string(), direct_follow(), next(), operator=(), reset_cursor(), and search().
|
private |
|
private |
Definition at line 526 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 525 of file getpot.h.
Referenced by _basic_initialization(), next_nominus(), next_nominus_string(), operator=(), and reset_nominus_cursor().
|
private |
Definition at line 520 of file getpot.h.
Referenced by _set_variable(), get_overridden_variables(), and operator=().
|
private |
member variables
Definition at line 509 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 584 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 519 of file getpot.h.
Referenced by _basic_initialization(), _match_starting_string(), next(), operator=(), reset_cursor(), search(), and search_failed().
|
private |
Definition at line 518 of file getpot.h.
Referenced by _basic_initialization(), _match_starting_string(), disable_loop(), enable_loop(), operator=(), and search().
|
private |
Definition at line 510 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 511 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 531 of file getpot.h.
Referenced by _find_variable(), _set_variable(), absorb(), get_variable_names(), operator=(), and unidentified_variables().