Classes | Public Member Functions | Private Member Functions | Private Attributes

GetPot Class Reference

Class to handle input file parsing. More...

#include <src/interface/GetPot.h>

Collaboration diagram for GetPot:
Collaboration graph
[legend]

List of all members.

Classes

struct  variable

Public Member Functions

 GetPot (const GetPot &)
 GetPot (const int argc_, char **argv_, const char *FieldSeparator=0x0)
 GetPot (const char *FileName, const char *CommentStart=0x0, const char *CommentEnd=0x0, const char *FieldSeparator=0x0)
GetPotoperator= (const GetPot &)
void absorb (const GetPot &That)
void clear_requests ()
void disable_request_recording ()
void enable_request_recording ()
const std::string operator[] (unsigned Idx) const
int get (unsigned Idx, int Default) const
double get (unsigned Idx, const double &Default) const
const std::string 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
int operator() (const char *VarName, int Default) const
double operator() (const char *VarName, const double &Default) const
const std::string operator() (const char *VarName, const char *Default) const
int operator() (const char *VarName, int Default, unsigned Idx) const
double operator() (const char *VarName, const double &Default, unsigned Idx) const
const std::string operator() (const char *VarName, const char *Default, unsigned Idx) const
void set (const char *VarName, const char *Value, const bool Requested=true)
void set (const char *VarName, const double &Value, const bool Requested=true)
void set (const char *VarName, const int Value, const bool Requested=true)
unsigned vector_variable_size (const char *VarName) const
STRING_VECTOR get_variable_names () const
STRING_VECTOR get_section_names () 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 (unsigned No, const char *P,...)
int next (int Default)
double next (const double &Default)
const std::string next (const char *Default)
int follow (int Default, const char *Option)
double follow (const double &Default, const char *Option)
const std::string follow (const char *Default, const char *Option)
int follow (int Default, unsigned No, const char *Option,...)
double follow (const double &Default, unsigned No, const char *Option,...)
const std::string follow (const char *Default, unsigned No, const char *Option,...)
std::vector< std::string > nominus_followers (const char *Option)
std::vector< std::string > nominus_followers (unsigned No,...)
int direct_follow (int Default, const char *Option)
double direct_follow (const double &Default, const char *Option)
const std::string direct_follow (const char *Default, const char *Option)
std::vector< std::string > string_tails (const char *StartString)
std::vector< int > int_tails (const char *StartString, const int Default=1)
std::vector< double > double_tails (const char *StartString, const double Default=1.0)
STRING_VECTOR nominus_vector () const
unsigned nominus_size () const
std::string next_nominus ()
STRING_VECTOR unidentified_arguments (unsigned Number, const char *Known,...) const
STRING_VECTOR unidentified_arguments (const STRING_VECTOR &Knowns) const
STRING_VECTOR unidentified_arguments () const
STRING_VECTOR unidentified_options (unsigned Number, const char *Known,...) const
STRING_VECTOR unidentified_options (const STRING_VECTOR &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 STRING_VECTOR &Knowns) const
STRING_VECTOR unidentified_variables () const
STRING_VECTOR unidentified_sections (unsigned Number, const char *Known,...) const
STRING_VECTOR unidentified_sections (const STRING_VECTOR &Knowns) const
STRING_VECTOR unidentified_sections () const
STRING_VECTOR unidentified_nominuses (unsigned Number, const char *Known,...) const
STRING_VECTOR unidentified_nominuses (const STRING_VECTOR &Knowns) const
STRING_VECTOR unidentified_nominuses () const
int print () const

Private Member Functions

void __basic_initialization ()
void __record_argument_request (const std::string &Arg)
void __record_variable_request (const std::string &Arg)
void __set_variable (const char *VarName, const char *Value)
void __parse_argument_vector (const STRING_VECTOR &ARGV)
const variable__find_variable (const char *) const
const char * __match_starting_string (const char *StartString)
bool __check_flags (const std::string &Str, const char *FlagList) const
int __convert_to_type (const std::string &String, int Default) const
double __convert_to_type (const std::string &String, double 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)
STRING_VECTOR __read_in_stream (std::istream &istr)
STRING_VECTOR __read_in_file (const char *FileName)
std::string __process_section_label (const std::string &Section, STRING_VECTOR &section_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)
std::string __double2string (const double &Value) const
std::string __int2string (const int &Value) const
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
int nominus_cursor
std::vector< unsigned > idx_nominus
std::vector< variablevariables
std::string _comment_start
std::string _comment_end
std::string _field_separator
std::vector< char * > __internal_string_container
STRING_VECTOR _requested_arguments
STRING_VECTOR _requested_variables
STRING_VECTOR _requested_sections
bool __request_recording_f

Detailed Description

Class to handle input file parsing.


The documentation for this class was generated from the following file:
All Classes Files Functions Variables Typedefs Friends Defines