Derecho  0.9
Distributed systems toolkit for RDMA
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
GetPot Class Reference

#include <GetPot.hpp>

Collaboration diagram for GetPot:
Collaboration graph
[legend]

Classes

struct  variable
 

Public Member Functions

 GetPot ()
 
 GetPot (const GetPot &)
 
 GetPot (const int argc_, char **argv_, const StringOrCharP FieldSeparator=(const char *) 0x0)
 
 GetPot (const StringOrCharP FileName, const StringOrCharP CommentStart=(const char *) 0x0, const StringOrCharP CommentEnd=(const char *) 0x0, const StringOrCharP FieldSeparator=(const char *) 0x0)
 
 ~GetPot ()
 
GetPotoperator= (const GetPot &)
 
void set_true_string_list (unsigned N, const char *StringForTrue,...)
 
void set_false_string_list (unsigned N, const char *StringForFalse,...)
 
void absorb (const GetPot &That)
 
void clear_requests ()
 
void disable_request_recording ()
 
void enable_request_recording ()
 
const std::string operator[] (unsigned Idx) const
 
unsigned size () const
 
bool options_contain (const char *FlagList) const
 
bool argument_contains (unsigned Idx, const char *FlagList) const
 
template<class T >
next (T Default)
 
template<class T >
follow (T Default, const char *Option)
 
template<class T >
follow (T Default, unsigned No, const char *Option,...)
 
template<class T >
direct_follow (T 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_followers (const char *Option)
 
STRING_VECTOR nominus_followers (unsigned No,...)
 
STRING_VECTOR nominus_vector () const
 
unsigned nominus_size () const
 
std::string next_nominus ()
 
template<class T >
get (unsigned Idx, T Default) const
 
STRING_VECTOR get_section_names () const
 
void set_prefix (StringOrCharP Prefix)
 
STRING_VECTOR get_variable_names () const
 
template<class T >
operator() (const StringOrCharP VarName, T Default) const
 
template<class T >
get (const StringOrCharP VarName)
 
template<class T >
get (const StringOrCharP VarName, const char *Constraint)
 
template<class T >
get (const StringOrCharP VarName, const char *Constraint, T Default)
 
unsigned vector_variable_size (StringOrCharP VarName) const
 
template<class T >
operator() (const StringOrCharP VarName, unsigned Idx, T Default) const
 
template<class T >
get_element (const StringOrCharP VarName, unsigned Idx, const char *Constraint)
 
template<class T >
get_element (const StringOrCharP VarName, unsigned Idx, const char *Constraint, T Default)
 
template<class T >
void set_variable (StringOrCharP VarName, T Value, const bool Requested=true)
 
template<class T >
void set (StringOrCharP VarName, T &Value)
 
template<class T >
void set (StringOrCharP VarName, T &Value, const char *Constraint)
 
template<class T , class U >
void set (StringOrCharP VarName, T &Value, const char *Constraint, U Default)
 
bool search_failed () const
 
bool search (const char *option)
 
bool search (unsigned No, const char *P,...)
 
void disable_loop ()
 
void enable_loop ()
 
void reset_cursor ()
 
void init_multiple_occurrence ()
 
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
 
template<class T >
__GETPOT_INLINEget (unsigned Idx, T Default) const
 
template<>
__GETPOT_INLINE const char * get (unsigned Idx, const char *Default) const
 
template<class T >
__GETPOT_INLINEget (const StringOrCharP VarName)
 
template<class T >
__GETPOT_INLINEget (const StringOrCharP VarName, const char *Constraint)
 
template<class T >
__GETPOT_INLINEget (const StringOrCharP VarName, const char *Constraint, T Default)
 
template<class T >
__GETPOT_INLINEnext (T Default)
 
template<class T >
__GETPOT_INLINEfollow (T Default, const char *Option)
 
template<class T >
__GETPOT_INLINEfollow (T Default, unsigned No, const char *P,...)
 
template<class T >
__GETPOT_INLINEdirect_follow (T Default, const char *Option)
 
template<class T >
__GETPOT_INLINE__get (const StringOrCharP VarName, const char *Constraint, bool ThrowExceptionF) const
 
template<class T >
__GETPOT_INLINE__get (const StringOrCharP VarName, const char *Constraint, T Default, bool ThrowExceptionF) const
 
template<class T >
__GETPOT_INLINE__get_element (const StringOrCharP VarName, unsigned Idx, const char *Constraint, bool ThrowExceptionF) const
 
template<class T >
__GETPOT_INLINE__get_element (const StringOrCharP VarName, unsigned Idx, const char *Constraint, T Default, bool ThrowExceptionF) const
 
template<class T >
__GETPOT_INLINEoperator() (const StringOrCharP VarName, T Default) const
 
template<class T >
__GETPOT_INLINEget_element (const StringOrCharP VarName, unsigned Idx, const char *Constraint)
 
template<class T >
__GETPOT_INLINEget_element (const StringOrCharP VarName, unsigned Idx, const char *Constraint, T Default)
 
template<class T >
__GETPOT_INLINEoperator() (const StringOrCharP VarName, unsigned Idx, T Default) const
 
template<>
__GETPOT_INLINE void set_variable (const StringOrCharP VarName, const char *Value, const bool Requested)
 
template<>
__GETPOT_INLINE void set_variable (const StringOrCharP VarName, double Value, const bool Requested)
 
template<>
__GETPOT_INLINE void set_variable (const StringOrCharP VarName, int Value, const bool Requested)
 
template<>
__GETPOT_INLINE void set_variable (const StringOrCharP VarName, bool Value, const bool Requested)
 
template<class T >
__GETPOT_INLINE void set (const StringOrCharP VarName, T &Value)
 
template<class T >
__GETPOT_INLINE void set (const StringOrCharP VarName, T &Value, const char *Constraint)
 
template<class T , class U >
__GETPOT_INLINE void set (const StringOrCharP VarName, T &Value, const char *Constraint, U Default)
 

Private Member Functions

void __basic_initialization ()
 
void __record_argument_request (const std::string &Arg)
 
void __record_variable_request (const std::string &Arg)
 
void __build (const std::string &FileName, const std::string &CommentStart, const std::string &CommentEnd, const std::string &FieldSeparator)
 
void __split (std::string str, std::vector< std::string > &vect, std::string delimiters=" \")
 
void __set_variable (const std::string &VarName, const std::string &Value)
 
void __parse_argument_vector (const STRING_VECTOR &ARGV)
 
const variable__find_variable (const std::string &, const std::string &TypeName, bool ThrowExceptionF=GETPOT_SETTING_THROW_EXCEPTION_ON_DEFAULT) const
 
template<class T >
__get (const StringOrCharP VarName, const char *Constraint, bool ThrowExceptionF) const
 
template<class T >
__get (const StringOrCharP VarName, const char *Constraint, T Default, bool ThrowExceptionF) const
 
template<class T >
__get_element (const StringOrCharP VarName, unsigned Idx, const char *Constraint, bool ThrowExceptionF) const
 
template<class T >
__get_element (const StringOrCharP VarName, unsigned Idx, const char *Constraint, T Default, bool ThrowExceptionF) const
 
const char * __match_starting_string (const char *StartString)
 
bool __check_flags (const std::string &Str, const char *FlagList) const
 
template<class T >
__convert_to_type (const std::string &String, T Default, bool ThrowExceptionF=GETPOT_SETTING_THROW_EXCEPTION_ON_DEFAULT) const
 
const char * __get_const_char (const std::string &String) const
 
bool __constraint_check (const std::string &Value, const char *ConstraintStr, bool ThrowExceptionF) const
 
bool __constraint_check_OR (const std::string &Value, const char **iterator) const
 
bool __constraint_check_AND (const std::string &Value, const char **iterator) const
 
bool __constraint_check_PRIMARY (const std::string &Value, const char **iterator) const
 
bool __constrain_check_EQUAL_STRING (const char *viterator, const char **iterator) 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 std::string &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 (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)
 
template<>
__GETPOT_INLINE bool __convert_to_type (const std::string &String, bool Default, bool ThrowExceptionF) const
 
template<>
__GETPOT_INLINE double __convert_to_type (const std::string &String, double Default, bool ThrowExceptionF) const
 
template<>
__GETPOT_INLINE int __convert_to_type (const std::string &String, int Default, bool ThrowExceptionF) const
 
template<>
__GETPOT_INLINE const char * __convert_to_type (const std::string &String, const char *Default, bool ThrowExceptionF) const
 

Private Attributes

bool built
 
std::string filename
 
STRING_VECTOR true_string_list
 
STRING_VECTOR false_string_list
 
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< std::vector< char > *> __internal_string_container
 
STRING_VECTOR _requested_arguments
 
STRING_VECTOR _requested_variables
 
STRING_VECTOR _requested_sections
 
bool __request_recording_f
 

Detailed Description

Definition at line 106 of file GetPot.hpp.

Constructor & Destructor Documentation

◆ GetPot() [1/4]

__GETPOT_INLINE GetPot::GetPot ( )

Definition at line 144 of file GetPot.cpp.

◆ GetPot() [2/4]

__GETPOT_INLINE GetPot::GetPot ( const GetPot That)

Definition at line 198 of file GetPot.cpp.

◆ GetPot() [3/4]

__GETPOT_INLINE GetPot::GetPot ( const int  argc_,
char **  argv_,
const StringOrCharP  FieldSeparator = (const char*)0x0 
)

Definition at line 156 of file GetPot.cpp.

◆ GetPot() [4/4]

__GETPOT_INLINE GetPot::GetPot ( const StringOrCharP  FileName,
const StringOrCharP  CommentStart = (const char*)0x0,
const StringOrCharP  CommentEnd = (const char*)0x0,
const StringOrCharP  FieldSeparator = (const char*)0x0 
)

Definition at line 187 of file GetPot.cpp.

◆ ~GetPot()

__GETPOT_INLINE GetPot::~GetPot ( )

Definition at line 202 of file GetPot.cpp.

Member Function Documentation

◆ __basic_initialization()

__GETPOT_INLINE void GetPot::__basic_initialization ( )
private

Definition at line 122 of file GetPot.cpp.

◆ __build()

__GETPOT_INLINE void GetPot::__build ( const std::string &  FileName,
const std::string &  CommentStart,
const std::string &  CommentEnd,
const std::string &  FieldSeparator 
)
private

Definition at line 1306 of file GetPot.cpp.

◆ __check_flags()

__GETPOT_INLINE bool GetPot::__check_flags ( const std::string &  Str,
const char *  FlagList 
) const
private

Definition at line 1139 of file GetPot.cpp.

◆ __constrain_check_EQUAL_STRING()

__GETPOT_INLINE bool GetPot::__constrain_check_EQUAL_STRING ( const char *  viterator,
const char **  iterator 
) const
private

Definition at line 2268 of file GetPot.cpp.

◆ __constraint_check()

__GETPOT_INLINE bool GetPot::__constraint_check ( const std::string &  Value,
const char *  ConstraintStr,
bool  ThrowExceptionF 
) const
private

Definition at line 2214 of file GetPot.cpp.

◆ __constraint_check_AND()

__GETPOT_INLINE bool GetPot::__constraint_check_AND ( const std::string &  Value,
const char **  iterator 
) const
private

Definition at line 2290 of file GetPot.cpp.

◆ __constraint_check_OR()

__GETPOT_INLINE bool GetPot::__constraint_check_OR ( const std::string &  Value,
const char **  iterator 
) const
private

Definition at line 2253 of file GetPot.cpp.

◆ __constraint_check_PRIMARY()

__GETPOT_INLINE bool GetPot::__constraint_check_PRIMARY ( const std::string &  Value,
const char **  iterator 
) const
private

Definition at line 2305 of file GetPot.cpp.

◆ __convert_to_type() [1/5]

template<class T >
T GetPot::__convert_to_type ( const std::string &  String,
Default,
bool  ThrowExceptionF = GETPOT_SETTING_THROW_EXCEPTION_ON_DEFAULT 
) const
private

◆ __convert_to_type() [2/5]

template<>
__GETPOT_INLINE bool GetPot::__convert_to_type ( const std::string &  String,
bool  Default,
bool  ThrowExceptionF 
) const
private

Definition at line 563 of file GetPot.cpp.

◆ __convert_to_type() [3/5]

template<>
__GETPOT_INLINE double GetPot::__convert_to_type ( const std::string &  String,
double  Default,
bool  ThrowExceptionF 
) const
private

Definition at line 587 of file GetPot.cpp.

◆ __convert_to_type() [4/5]

template<>
__GETPOT_INLINE int GetPot::__convert_to_type ( const std::string &  String,
int  Default,
bool  ThrowExceptionF 
) const
private

Definition at line 603 of file GetPot.cpp.

◆ __convert_to_type() [5/5]

template<>
__GETPOT_INLINE const char* GetPot::__convert_to_type ( const std::string &  String,
const char *  Default,
bool  ThrowExceptionF 
) const
private

Definition at line 614 of file GetPot.cpp.

◆ __DBE_expand()

__GETPOT_INLINE std::string GetPot::__DBE_expand ( const std::string  str)
private

Definition at line 1668 of file GetPot.cpp.

◆ __DBE_expand_string()

__GETPOT_INLINE std::string GetPot::__DBE_expand_string ( const std::string  str)
private

Definition at line 1537 of file GetPot.cpp.

◆ __DBE_get()

__GETPOT_INLINE const GetPot::variable * GetPot::__DBE_get ( const std::string  str)
private

Definition at line 1638 of file GetPot.cpp.

◆ __DBE_get_expr_list()

__GETPOT_INLINE STRING_VECTOR GetPot::__DBE_get_expr_list ( const std::string  str,
const unsigned  ExpectedNumber 
)
private

Definition at line 1564 of file GetPot.cpp.

◆ __double2string()

__GETPOT_INLINE std::string GetPot::__double2string ( const double &  Value) const
private

Definition at line 2491 of file GetPot.cpp.

◆ __find_variable()

__GETPOT_INLINE const GetPot::variable * GetPot::__find_variable ( const std::string &  VarName,
const std::string &  TypeName,
bool  ThrowExceptionF = GETPOT_SETTING_THROW_EXCEPTION_ON_DEFAULT 
) const
private

Definition at line 1444 of file GetPot.cpp.

◆ __get() [1/4]

template<class T >
T GetPot::__get ( const StringOrCharP  VarName,
const char *  Constraint,
bool  ThrowExceptionF 
) const
private

◆ __get() [2/4]

template<class T >
T GetPot::__get ( const StringOrCharP  VarName,
const char *  Constraint,
Default,
bool  ThrowExceptionF 
) const
private

◆ __get() [3/4]

template<class T >
__GETPOT_INLINE T GetPot::__get ( const StringOrCharP  VarName,
const char *  Constraint,
bool  ThrowExceptionF 
) const

Definition at line 1182 of file GetPot.cpp.

◆ __get() [4/4]

template<class T >
__GETPOT_INLINE T GetPot::__get ( const StringOrCharP  VarName,
const char *  Constraint,
Default,
bool  ThrowExceptionF 
) const

Definition at line 1198 of file GetPot.cpp.

◆ __get_const_char()

__GETPOT_INLINE const char * GetPot::__get_const_char ( const std::string &  String) const
private

Definition at line 621 of file GetPot.cpp.

◆ __get_element() [1/4]

template<class T >
T GetPot::__get_element ( const StringOrCharP  VarName,
unsigned  Idx,
const char *  Constraint,
bool  ThrowExceptionF 
) const
private

◆ __get_element() [2/4]

template<class T >
T GetPot::__get_element ( const StringOrCharP  VarName,
unsigned  Idx,
const char *  Constraint,
Default,
bool  ThrowExceptionF 
) const
private

◆ __get_element() [3/4]

template<class T >
__GETPOT_INLINE T GetPot::__get_element ( const StringOrCharP  VarName,
unsigned  Idx,
const char *  Constraint,
bool  ThrowExceptionF 
) const

Definition at line 1212 of file GetPot.cpp.

◆ __get_element() [4/4]

template<class T >
__GETPOT_INLINE T GetPot::__get_element ( const StringOrCharP  VarName,
unsigned  Idx,
const char *  Constraint,
Default,
bool  ThrowExceptionF 
) const

Definition at line 1234 of file GetPot.cpp.

◆ __get_next_token()

__GETPOT_INLINE const std::string GetPot::__get_next_token ( std::istream &  istr)
private

Definition at line 436 of file GetPot.cpp.

◆ __get_remaining_string()

__GETPOT_INLINE const std::string GetPot::__get_remaining_string ( const std::string &  String,
const std::string &  Start 
) const
private

Definition at line 634 of file GetPot.cpp.

◆ __get_section_tree()

__GETPOT_INLINE STRING_VECTOR GetPot::__get_section_tree ( const std::string &  FullPath)
private

Definition at line 2509 of file GetPot.cpp.

◆ __get_string()

__GETPOT_INLINE const std::string GetPot::__get_string ( std::istream &  istr)
private

Definition at line 469 of file GetPot.cpp.

◆ __get_until_closing_bracket()

__GETPOT_INLINE const std::string GetPot::__get_until_closing_bracket ( std::istream &  istr)
private

Definition at line 487 of file GetPot.cpp.

◆ __int2string()

__GETPOT_INLINE std::string GetPot::__int2string ( const int &  Value) const
private

Definition at line 2500 of file GetPot.cpp.

◆ __match_starting_string()

__GETPOT_INLINE const char * GetPot::__match_starting_string ( const char *  StartString)
private

Definition at line 1054 of file GetPot.cpp.

◆ __parse_argument_vector()

__GETPOT_INLINE void GetPot::__parse_argument_vector ( const STRING_VECTOR ARGV)
private

Definition at line 259 of file GetPot.cpp.

◆ __process_section_label()

__GETPOT_INLINE std::string GetPot::__process_section_label ( const std::string &  Section,
STRING_VECTOR section_stack 
)
private

Definition at line 510 of file GetPot.cpp.

◆ __read_in_file()

__GETPOT_INLINE STRING_VECTOR GetPot::__read_in_file ( const std::string &  FileName)
private

Definition at line 329 of file GetPot.cpp.

◆ __read_in_stream()

__GETPOT_INLINE STRING_VECTOR GetPot::__read_in_stream ( std::istream &  istr)
private

Definition at line 341 of file GetPot.cpp.

◆ __record_argument_request()

__GETPOT_INLINE void GetPot::__record_argument_request ( const std::string &  Arg)
private

Definition at line 1271 of file GetPot.cpp.

◆ __record_variable_request()

__GETPOT_INLINE void GetPot::__record_variable_request ( const std::string &  Arg)
private

Definition at line 1288 of file GetPot.cpp.

◆ __search_string_vector()

__GETPOT_INLINE bool GetPot::__search_string_vector ( const STRING_VECTOR Vec,
const std::string &  Str 
) const
private

Definition at line 1898 of file GetPot.cpp.

◆ __set_variable()

__GETPOT_INLINE void GetPot::__set_variable ( const std::string &  VarName,
const std::string &  Value 
)
private

Definition at line 1352 of file GetPot.cpp.

◆ __skip_whitespace()

__GETPOT_INLINE void GetPot::__skip_whitespace ( std::istream &  istr)
private

Definition at line 383 of file GetPot.cpp.

◆ __split()

__GETPOT_INLINE void GetPot::__split ( std::string  str,
std::vector< std::string > &  vect,
std::string  delimiters = " \n\t" 
)
private

Definition at line 1330 of file GetPot.cpp.

◆ absorb()

__GETPOT_INLINE void GetPot::absorb ( const GetPot That)

Definition at line 239 of file GetPot.cpp.

◆ argument_contains()

__GETPOT_INLINE bool GetPot::argument_contains ( unsigned  Idx,
const char *  FlagList 
) const

Definition at line 1109 of file GetPot.cpp.

◆ clear_requests()

__GETPOT_INLINE void GetPot::clear_requests ( )

Definition at line 251 of file GetPot.cpp.

◆ direct_follow() [1/2]

template<class T >
T GetPot::direct_follow ( Default,
const char *  Option 
)

◆ direct_follow() [2/2]

template<class T >
__GETPOT_INLINE T GetPot::direct_follow ( Default,
const char *  Option 
)

Definition at line 861 of file GetPot.cpp.

◆ disable_loop()

void GetPot::disable_loop ( )
inline

Definition at line 212 of file GetPot.hpp.

◆ disable_request_recording()

void GetPot::disable_request_recording ( )
inline

Definition at line 134 of file GetPot.hpp.

◆ double_tails()

__GETPOT_INLINE std::vector< double > GetPot::double_tails ( const char *  StartString,
const double  Default = 1.0 
)

Definition at line 958 of file GetPot.cpp.

◆ enable_loop()

void GetPot::enable_loop ( )
inline

Definition at line 213 of file GetPot.hpp.

◆ enable_request_recording()

void GetPot::enable_request_recording ( )
inline

Definition at line 135 of file GetPot.hpp.

◆ follow() [1/4]

template<class T >
T GetPot::follow ( Default,
const char *  Option 
)

◆ follow() [2/4]

template<class T >
T GetPot::follow ( Default,
unsigned  No,
const char *  Option,
  ... 
)

◆ follow() [3/4]

template<class T >
__GETPOT_INLINE T GetPot::follow ( Default,
const char *  Option 
)

Definition at line 825 of file GetPot.cpp.

◆ follow() [4/4]

template<class T >
__GETPOT_INLINE T GetPot::follow ( Default,
unsigned  No,
const char *  P,
  ... 
)

Definition at line 836 of file GetPot.cpp.

◆ get() [1/9]

template<class T >
T GetPot::get ( unsigned  Idx,
Default 
) const

◆ get() [2/9]

template<class T >
T GetPot::get ( const StringOrCharP  VarName)

◆ get() [3/9]

template<class T >
T GetPot::get ( const StringOrCharP  VarName,
const char *  Constraint 
)

◆ get() [4/9]

template<class T >
T GetPot::get ( const StringOrCharP  VarName,
const char *  Constraint,
Default 
)

◆ get() [5/9]

template<class T >
__GETPOT_INLINE T GetPot::get ( unsigned  Idx,
Default 
) const

Definition at line 769 of file GetPot.cpp.

◆ get() [6/9]

template<>
__GETPOT_INLINE const char* GetPot::get ( unsigned  Idx,
const char *  Default 
) const

Definition at line 776 of file GetPot.cpp.

◆ get() [7/9]

template<class T >
__GETPOT_INLINE T GetPot::get ( const StringOrCharP  VarName)

Definition at line 783 of file GetPot.cpp.

◆ get() [8/9]

template<class T >
__GETPOT_INLINE T GetPot::get ( const StringOrCharP  VarName,
const char *  Constraint 
)

Definition at line 789 of file GetPot.cpp.

◆ get() [9/9]

template<class T >
__GETPOT_INLINE T GetPot::get ( const StringOrCharP  VarName,
const char *  Constraint,
Default 
)

Definition at line 795 of file GetPot.cpp.

◆ get_element() [1/4]

template<class T >
T GetPot::get_element ( const StringOrCharP  VarName,
unsigned  Idx,
const char *  Constraint 
)

◆ get_element() [2/4]

template<class T >
T GetPot::get_element ( const StringOrCharP  VarName,
unsigned  Idx,
const char *  Constraint,
Default 
)

◆ get_element() [3/4]

template<class T >
__GETPOT_INLINE T GetPot::get_element ( const StringOrCharP  VarName,
unsigned  Idx,
const char *  Constraint 
)

Definition at line 1258 of file GetPot.cpp.

◆ get_element() [4/4]

template<class T >
__GETPOT_INLINE T GetPot::get_element ( const StringOrCharP  VarName,
unsigned  Idx,
const char *  Constraint,
Default 
)

Definition at line 1262 of file GetPot.cpp.

◆ get_section_names()

__GETPOT_INLINE STRING_VECTOR GetPot::get_section_names ( ) const

Definition at line 1440 of file GetPot.cpp.

◆ get_variable_names()

__GETPOT_INLINE STRING_VECTOR GetPot::get_variable_names ( ) const

Definition at line 1428 of file GetPot.cpp.

◆ init_multiple_occurrence()

__GETPOT_INLINE void GetPot::init_multiple_occurrence ( )

Definition at line 722 of file GetPot.cpp.

◆ int_tails()

__GETPOT_INLINE std::vector< int > GetPot::int_tails ( const char *  StartString,
const int  Default = 1 
)

Definition at line 916 of file GetPot.cpp.

◆ next() [1/2]

template<class T >
T GetPot::next ( Default)

◆ next() [2/2]

template<class T >
__GETPOT_INLINE T GetPot::next ( Default)

Definition at line 807 of file GetPot.cpp.

◆ next_nominus()

__GETPOT_INLINE std::string GetPot::next_nominus ( )

Definition at line 1167 of file GetPot.cpp.

◆ nominus_followers() [1/2]

__GETPOT_INLINE std::vector< std::string > GetPot::nominus_followers ( const char *  Option)

Definition at line 1003 of file GetPot.cpp.

◆ nominus_followers() [2/2]

__GETPOT_INLINE std::vector< std::string > GetPot::nominus_followers ( unsigned  No,
  ... 
)

Definition at line 1026 of file GetPot.cpp.

◆ nominus_size()

unsigned GetPot::nominus_size ( ) const
inline

Definition at line 170 of file GetPot.hpp.

◆ nominus_vector()

__GETPOT_INLINE STRING_VECTOR GetPot::nominus_vector ( ) const

Definition at line 1150 of file GetPot.cpp.

◆ operator()() [1/4]

template<class T >
T GetPot::operator() ( const StringOrCharP  VarName,
Default 
) const

◆ operator()() [2/4]

template<class T >
T GetPot::operator() ( const StringOrCharP  VarName,
unsigned  Idx,
Default 
) const

◆ operator()() [3/4]

template<class T >
__GETPOT_INLINE T GetPot::operator() ( const StringOrCharP  VarName,
Default 
) const

Definition at line 1254 of file GetPot.cpp.

◆ operator()() [4/4]

template<class T >
__GETPOT_INLINE T GetPot::operator() ( const StringOrCharP  VarName,
unsigned  Idx,
Default 
) const

Definition at line 1266 of file GetPot.cpp.

◆ operator=()

__GETPOT_INLINE GetPot & GetPot::operator= ( const GetPot That)

Definition at line 211 of file GetPot.cpp.

◆ operator[]()

__GETPOT_INLINE const std::string GetPot::operator[] ( unsigned  Idx) const

Definition at line 765 of file GetPot.cpp.

◆ options_contain()

__GETPOT_INLINE bool GetPot::options_contain ( const char *  FlagList) const

Definition at line 1094 of file GetPot.cpp.

◆ print()

__GETPOT_INLINE int GetPot::print ( ) const

Definition at line 1478 of file GetPot.cpp.

◆ reset_cursor()

__GETPOT_INLINE void GetPot::reset_cursor ( )

Definition at line 718 of file GetPot.cpp.

◆ search() [1/2]

__GETPOT_INLINE bool GetPot::search ( const char *  option)

Definition at line 647 of file GetPot.cpp.

◆ search() [2/2]

__GETPOT_INLINE bool GetPot::search ( unsigned  No,
const char *  P,
  ... 
)

Definition at line 681 of file GetPot.cpp.

◆ search_failed()

bool GetPot::search_failed ( ) const
inline

Definition at line 205 of file GetPot.hpp.

◆ set() [1/6]

template<class T >
void GetPot::set ( StringOrCharP  VarName,
T &  Value 
)

◆ set() [2/6]

template<class T >
void GetPot::set ( StringOrCharP  VarName,
T &  Value,
const char *  Constraint 
)

◆ set() [3/6]

template<class T , class U >
void GetPot::set ( StringOrCharP  VarName,
T &  Value,
const char *  Constraint,
Default 
)

◆ set() [4/6]

template<class T >
__GETPOT_INLINE void GetPot::set ( const StringOrCharP  VarName,
T &  Value 
)

Definition at line 1398 of file GetPot.cpp.

◆ set() [5/6]

template<class T >
__GETPOT_INLINE void GetPot::set ( const StringOrCharP  VarName,
T &  Value,
const char *  Constraint 
)

Definition at line 1405 of file GetPot.cpp.

◆ set() [6/6]

template<class T , class U >
__GETPOT_INLINE void GetPot::set ( const StringOrCharP  VarName,
T &  Value,
const char *  Constraint,
Default 
)

Definition at line 1412 of file GetPot.cpp.

◆ set_false_string_list()

__GETPOT_INLINE void GetPot::set_false_string_list ( unsigned  N,
const char *  StringForFalse,
  ... 
)

Definition at line 744 of file GetPot.cpp.

◆ set_prefix()

void GetPot::set_prefix ( StringOrCharP  Prefix)
inline

Definition at line 180 of file GetPot.hpp.

◆ set_true_string_list()

__GETPOT_INLINE void GetPot::set_true_string_list ( unsigned  N,
const char *  StringForTrue,
  ... 
)

Definition at line 726 of file GetPot.cpp.

◆ set_variable() [1/5]

template<class T >
void GetPot::set_variable ( StringOrCharP  VarName,
Value,
const bool  Requested = true 
)

◆ set_variable() [2/5]

template<>
__GETPOT_INLINE void GetPot::set_variable ( const StringOrCharP  VarName,
const char *  Value,
const bool  Requested 
)

Definition at line 1367 of file GetPot.cpp.

◆ set_variable() [3/5]

template<>
__GETPOT_INLINE void GetPot::set_variable ( const StringOrCharP  VarName,
double  Value,
const bool  Requested 
)

Definition at line 1379 of file GetPot.cpp.

◆ set_variable() [4/5]

template<>
__GETPOT_INLINE void GetPot::set_variable ( const StringOrCharP  VarName,
int  Value,
const bool  Requested 
)

Definition at line 1383 of file GetPot.cpp.

◆ set_variable() [5/5]

template<>
__GETPOT_INLINE void GetPot::set_variable ( const StringOrCharP  VarName,
bool  Value,
const bool  Requested 
)

Definition at line 1387 of file GetPot.cpp.

◆ size()

__GETPOT_INLINE unsigned GetPot::size ( ) const

Definition at line 801 of file GetPot.cpp.

◆ string_tails()

__GETPOT_INLINE std::vector< std::string > GetPot::string_tails ( const char *  StartString)

Definition at line 874 of file GetPot.cpp.

◆ unidentified_arguments() [1/3]

__GETPOT_INLINE STRING_VECTOR GetPot::unidentified_arguments ( unsigned  Number,
const char *  Known,
  ... 
) const

Definition at line 1907 of file GetPot.cpp.

◆ unidentified_arguments() [2/3]

__GETPOT_INLINE STRING_VECTOR GetPot::unidentified_arguments ( const STRING_VECTOR Knowns) const

Definition at line 1931 of file GetPot.cpp.

◆ unidentified_arguments() [3/3]

__GETPOT_INLINE STRING_VECTOR GetPot::unidentified_arguments ( ) const

Definition at line 1927 of file GetPot.cpp.

◆ unidentified_flags()

__GETPOT_INLINE std::string GetPot::unidentified_flags ( const char *  Known,
int  ArgumentNumber = -1 
) const

Definition at line 2008 of file GetPot.cpp.

◆ unidentified_nominuses() [1/3]

__GETPOT_INLINE STRING_VECTOR GetPot::unidentified_nominuses ( unsigned  Number,
const char *  Known,
  ... 
) const

Definition at line 2148 of file GetPot.cpp.

◆ unidentified_nominuses() [2/3]

__GETPOT_INLINE STRING_VECTOR GetPot::unidentified_nominuses ( const STRING_VECTOR Knowns) const

Definition at line 2182 of file GetPot.cpp.

◆ unidentified_nominuses() [3/3]

__GETPOT_INLINE STRING_VECTOR GetPot::unidentified_nominuses ( ) const

Definition at line 2170 of file GetPot.cpp.

◆ unidentified_options() [1/3]

__GETPOT_INLINE STRING_VECTOR GetPot::unidentified_options ( unsigned  Number,
const char *  Known,
  ... 
) const

Definition at line 1949 of file GetPot.cpp.

◆ unidentified_options() [2/3]

__GETPOT_INLINE STRING_VECTOR GetPot::unidentified_options ( const STRING_VECTOR Knowns) const

Definition at line 1987 of file GetPot.cpp.

◆ unidentified_options() [3/3]

__GETPOT_INLINE STRING_VECTOR GetPot::unidentified_options ( ) const

Definition at line 1969 of file GetPot.cpp.

◆ unidentified_sections() [1/3]

__GETPOT_INLINE STRING_VECTOR GetPot::unidentified_sections ( unsigned  Number,
const char *  Known,
  ... 
) const

Definition at line 2101 of file GetPot.cpp.

◆ unidentified_sections() [2/3]

__GETPOT_INLINE STRING_VECTOR GetPot::unidentified_sections ( const STRING_VECTOR Knowns) const

Definition at line 2129 of file GetPot.cpp.

◆ unidentified_sections() [3/3]

__GETPOT_INLINE STRING_VECTOR GetPot::unidentified_sections ( ) const

Definition at line 2125 of file GetPot.cpp.

◆ unidentified_variables() [1/3]

__GETPOT_INLINE STRING_VECTOR GetPot::unidentified_variables ( unsigned  Number,
const char *  Known,
  ... 
) const

Definition at line 2059 of file GetPot.cpp.

◆ unidentified_variables() [2/3]

__GETPOT_INLINE STRING_VECTOR GetPot::unidentified_variables ( const STRING_VECTOR Knowns) const

Definition at line 2079 of file GetPot.cpp.

◆ unidentified_variables() [3/3]

__GETPOT_INLINE STRING_VECTOR GetPot::unidentified_variables ( ) const

Definition at line 2096 of file GetPot.cpp.

◆ vector_variable_size()

__GETPOT_INLINE unsigned GetPot::vector_variable_size ( StringOrCharP  VarName) const

Definition at line 1418 of file GetPot.cpp.

Member Data Documentation

◆ __internal_string_container

std::vector<std::vector<char>* > GetPot::__internal_string_container
private

Definition at line 307 of file GetPot.hpp.

◆ __request_recording_f

bool GetPot::__request_recording_f
private

Definition at line 315 of file GetPot.hpp.

◆ _comment_end

std::string GetPot::_comment_end
private

Definition at line 300 of file GetPot.hpp.

◆ _comment_start

std::string GetPot::_comment_start
private

Definition at line 299 of file GetPot.hpp.

◆ _field_separator

std::string GetPot::_field_separator
private

Definition at line 303 of file GetPot.hpp.

◆ _requested_arguments

STRING_VECTOR GetPot::_requested_arguments
private

Definition at line 311 of file GetPot.hpp.

◆ _requested_sections

STRING_VECTOR GetPot::_requested_sections
private

Definition at line 313 of file GetPot.hpp.

◆ _requested_variables

STRING_VECTOR GetPot::_requested_variables
private

Definition at line 312 of file GetPot.hpp.

◆ argv

STRING_VECTOR GetPot::argv
private

Definition at line 283 of file GetPot.hpp.

◆ built

bool GetPot::built
private

Definition at line 275 of file GetPot.hpp.

◆ cursor

unsigned GetPot::cursor
private

Definition at line 284 of file GetPot.hpp.

◆ false_string_list

STRING_VECTOR GetPot::false_string_list
private

Definition at line 278 of file GetPot.hpp.

◆ filename

std::string GetPot::filename
private

Definition at line 276 of file GetPot.hpp.

◆ idx_nominus

std::vector<unsigned> GetPot::idx_nominus
private

Definition at line 292 of file GetPot.hpp.

◆ nominus_cursor

int GetPot::nominus_cursor
private

Definition at line 291 of file GetPot.hpp.

◆ prefix

std::string GetPot::prefix
private

Definition at line 279 of file GetPot.hpp.

◆ search_failed_f

bool GetPot::search_failed_f
private

Definition at line 287 of file GetPot.hpp.

◆ search_loop_f

bool GetPot::search_loop_f
private

Definition at line 285 of file GetPot.hpp.

◆ section

std::string GetPot::section
private

Definition at line 280 of file GetPot.hpp.

◆ section_list

STRING_VECTOR GetPot::section_list
private

Definition at line 281 of file GetPot.hpp.

◆ true_string_list

STRING_VECTOR GetPot::true_string_list
private

Definition at line 277 of file GetPot.hpp.

◆ variables

std::vector<variable> GetPot::variables
private

Definition at line 296 of file GetPot.hpp.


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