GPC  v1.0.0-2516
Gorman Print Control
Cfg Class Referencefinal
Inheritance diagram for Cfg:
Collaboration diagram for Cfg:

Public Member Functions

virtual Cfgfirst_time_initialization (void)
 
virtual Cfginsert_if_not_exist (const std::string &key, const std::string &val)
 
virtual Cfginsert_if_not_exist (const std::string &key, const int &val)
 
virtual Cfgset_str (const std::string &key, const std::string &val)
 
virtual std::string get_str (const std::string &key)
 The key must exist, otherwise an exception is thrown. More...
 
virtual std::string get_str (const std::string &key, const std::string &default_value)
 Return the corresponding value, or the default value if the key does not exist. More...
 
virtual int get_int (const std::string &key)
 The key must exist, otherwise an exception is thrown. More...
 
virtual bool get_bool (const std::string &key, const bool default_value=true)
 Return the corresponding value, or the default value if the key does not exist. More...
 

Member Function Documentation

◆ get_str() [1/2]

std::string Cfg::get_str ( const std::string &  key)
virtual

The key must exist, otherwise an exception is thrown.

Referenced by SummaryComponent::buttonClicked(), LoadWnd::directory_handling(), IncJet::IncJet(), SessionRecord::initialize(), and SessionComponentTransfer::run().

Here is the caller graph for this function:

◆ get_str() [2/2]

std::string Cfg::get_str ( const std::string &  key,
const std::string &  default_value 
)
virtual

Return the corresponding value, or the default value if the key does not exist.

◆ get_int()

int Cfg::get_int ( const std::string &  key)
virtual

The key must exist, otherwise an exception is thrown.

Referenced by SessionComponentTransfer::run().

Here is the caller graph for this function:

◆ get_bool()

bool Cfg::get_bool ( const std::string &  key,
const bool  default_value = true 
)
virtual

Return the corresponding value, or the default value if the key does not exist.

Referenced by SessionComponent::buttonClicked(), and SessionComponentTransfer::run().

Here is the caller graph for this function: