LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
|
#include <ConfigFile.h>
Public Member Functions | |
ConfigFile () | |
ConfigFile (const std::string fileName, const std::string delimiter="=", const std::string comment="#", const std::string include="+", const std::string sentry="EndConfigFile") | |
void | load (const std::string fileName) |
void | load (const std::string fileName, const std::string delimiter, const std::string comment="", const std::string include="", const std::string sentry="") |
void | read (std::istream &is) |
void | append (const std::string &s) |
void | write (std::ostream &os) const |
void | writeAsComment (std::ostream &os) const |
ConvertibleString & | getNoCheck (const std::string &key) |
ConvertibleString | get (const std::string &key) const |
ConvertibleString & | operator[] (const std::string &key) |
ConvertibleString | operator[] (const std::string &key) const |
template<typename T > | |
T | read (const std::string &key) const |
template<typename T > | |
T | read (const std::string &key, const T &value) const |
template<typename T > | |
bool | readInto (T &var, const std::string &key) const |
template<typename T > | |
bool | readInto (T &var, const std::string &key, const T &value) const |
std::string | getstr (const std::string key) const throw (const char*) |
std::string | getstr (const std::string key, const std::string defval) |
template<typename T > | |
void | add (std::string key, const T &value) |
void | remove (const std::string &key) |
bool | keyExists (const std::string &key) const |
std::string | getDelimiter () const |
std::string | getComment () const |
std::string | getInclude () const |
std::string | getSentry () const |
std::string | setDelimiter (const std::string &s) |
std::string | setComment (const std::string &s) |
std::string | setInclude (const std::string &s) |
std::string | setSentry (const std::string &s) |
size_t | size () |
Protected Types | |
typedef std::map< std::string, ConvertibleString >::iterator | MapIt |
typedef std::map< std::string, ConvertibleString > ::const_iterator | MapCIt |
Static Protected Member Functions | |
static void | trim (std::string &s) |
Protected Attributes | |
std::string | _delimiter |
std::string | _comment |
std::string | _include |
std::string | _sentry |
std::map< std::string, ConvertibleString > | _contents |
Definition at line 239 of file ConfigFile.h.
|
protected |
Definition at line 338 of file ConfigFile.h.
|
protected |
Definition at line 337 of file ConfigFile.h.
lsst::meas::algorithms::shapelet::ConfigFile::ConfigFile | ( | ) |
Definition at line 9 of file ConfigFile.cc.
lsst::meas::algorithms::shapelet::ConfigFile::ConfigFile | ( | const std::string | fileName, |
const std::string | delimiter = "=" , |
||
const std::string | comment = "#" , |
||
const std::string | include = "+" , |
||
const std::string | sentry = "EndConfigFile" |
||
) |
Definition at line 15 of file ConfigFile.cc.
|
inline |
Definition at line 459 of file ConfigFile.h.
|
inline |
Definition at line 268 of file ConfigFile.h.
ConvertibleString lsst::meas::algorithms::shapelet::ConfigFile::get | ( | const std::string & | key | ) | const |
Definition at line 79 of file ConfigFile.cc.
|
inline |
Definition at line 311 of file ConfigFile.h.
|
inline |
Definition at line 310 of file ConfigFile.h.
|
inline |
Definition at line 312 of file ConfigFile.h.
ConvertibleString & lsst::meas::algorithms::shapelet::ConfigFile::getNoCheck | ( | const std::string & | key | ) |
Definition at line 72 of file ConfigFile.cc.
|
inline |
Definition at line 313 of file ConfigFile.h.
std::string lsst::meas::algorithms::shapelet::ConfigFile::getstr | ( | const std::string | key | ) | const |
throw | ( | const char * | |||
) |
Definition at line 101 of file ConfigFile.cc.
std::string lsst::meas::algorithms::shapelet::ConfigFile::getstr | ( | const std::string | key, |
const std::string | defval | ||
) |
Definition at line 114 of file ConfigFile.cc.
bool lsst::meas::algorithms::shapelet::ConfigFile::keyExists | ( | const std::string & | key | ) | const |
Definition at line 139 of file ConfigFile.cc.
|
inline |
Definition at line 254 of file ConfigFile.h.
void lsst::meas::algorithms::shapelet::ConfigFile::load | ( | const std::string | fileName, |
const std::string | delimiter, | ||
const std::string | comment = "" , |
||
const std::string | include = "" , |
||
const std::string | sentry = "" |
||
) |
Definition at line 36 of file ConfigFile.cc.
|
inline |
Definition at line 279 of file ConfigFile.h.
|
inline |
Definition at line 281 of file ConfigFile.h.
void lsst::meas::algorithms::shapelet::ConfigFile::read | ( | std::istream & | is | ) |
Definition at line 178 of file ConfigFile.cc.
|
inline |
Definition at line 347 of file ConfigFile.h.
|
inline |
Definition at line 378 of file ConfigFile.h.
|
inline |
Definition at line 405 of file ConfigFile.h.
|
inline |
Definition at line 431 of file ConfigFile.h.
void lsst::meas::algorithms::shapelet::ConfigFile::remove | ( | const std::string & | key | ) |
Definition at line 131 of file ConfigFile.cc.
|
inline |
Definition at line 317 of file ConfigFile.h.
|
inline |
Definition at line 315 of file ConfigFile.h.
|
inline |
Definition at line 319 of file ConfigFile.h.
|
inline |
Definition at line 321 of file ConfigFile.h.
|
inline |
Definition at line 324 of file ConfigFile.h.
|
staticprotected |
Definition at line 147 of file ConfigFile.cc.
void lsst::meas::algorithms::shapelet::ConfigFile::write | ( | std::ostream & | os | ) | const |
Definition at line 156 of file ConfigFile.cc.
void lsst::meas::algorithms::shapelet::ConfigFile::writeAsComment | ( | std::ostream & | os | ) | const |
Definition at line 165 of file ConfigFile.cc.
|
protected |
Definition at line 331 of file ConfigFile.h.
|
protected |
Definition at line 334 of file ConfigFile.h.
|
protected |
Definition at line 330 of file ConfigFile.h.
|
protected |
Definition at line 332 of file ConfigFile.h.
|
protected |
Definition at line 333 of file ConfigFile.h.