Namespaces | |
| namespace | testutils |
Functions | |
| void | InstallFndLog4cplusBridge (const std::string &logger_name) |
Install the FND->log4cplus bridge as the process-wide ifw-fnd logger. Bridged FND* output goes to the log4cplus logger named logger_name (configure it in log.properties). Idempotent: does nothing if an ifw-fnd logger is already installed. Call once at startup, before anything logs via FND*. | |
| log4cplus::Logger & | Logger () |
| std::string | ResolvePath (const std::string &filename) |
| Resolve the filename if it contains env. variables, "~" and relative paths. | |
| std::string | GenUniqueId (const std::string &prefix="") |
| Generate a unique UUID based ID. A prefix may be prepended, if requested. | |
| template<class TYPE> | |
| void | CleanVector (const std::vector< TYPE > &vect, const TYPE &pattern, std::vector< TYPE > &clean_vect) |
| Remove elements from list, which are equal to "pattern". | |
| template<class TYPE> | |
| void | CheckRange (const std::string &par, TYPE value, TYPE lower_limit, TYPE upper_limit) |
| Check if a value is within a given range. | |
| template<class TYPE> | |
| void | CheckRange (const std::string &par, const TYPE &value, std::vector< TYPE > &valid_values) |
| Check if a value is defined in a set. | |
| template<class TYPE> | |
| int32_t | ElInVector (const std::vector< TYPE > &vect, const TYPE &value) |
| Check for specific element in the list. Return index if found, otherwise -1. | |
| template<class TYPE> | |
| std::string | DumpVector (const std::vector< TYPE > &vector, const std::string &separator="\n") |
| Dump contents of a list into a string buffer. | |
| template<class MAP_TYPE> | |
| bool | ElInMap (const std::string &key, const MAP_TYPE &map) |
| Check if a given key is contained in an STL map. | |
Variables | |
| const std::string | SYSROOT = "SYSROOT" |
| const std::string | INTROOT = "INTROOT" |
| const std::string | DATAROOT = "DATAROOT" |
| const std::string | CFGPATH = "CFGPATH" |
| const std::string | EXT_FITS = "fits" |
| const int64_t | NO_TIMEOUT = -1 |
| const std::string | INVALID = "__INVALID__" |
| const std::string | NOT_IMPLEMENTED = "NotImplemented" |
| const std::string | UNDEFINED = "__UNDEFINED__" |
| const int64_t | FAILURE = 1 |
| const int64_t | SUCCESS = 0 |
| void ifw::core::utils::base::CheckRange | ( | const std::string & | par, |
| const TYPE & | value, | ||
| std::vector< TYPE > & | valid_values ) |
Check if a value is defined in a set.
| void ifw::core::utils::base::CheckRange | ( | const std::string & | par, |
| TYPE | value, | ||
| TYPE | lower_limit, | ||
| TYPE | upper_limit ) |
Check if a value is within a given range.
| void ifw::core::utils::base::CleanVector | ( | const std::vector< TYPE > & | vect, |
| const TYPE & | pattern, | ||
| std::vector< TYPE > & | clean_vect ) |
Remove elements from list, which are equal to "pattern".
| std::string ifw::core::utils::base::DumpVector | ( | const std::vector< TYPE > & | vector, |
| const std::string & | separator = "\n" ) |
Dump contents of a list into a string buffer.
| bool ifw::core::utils::base::ElInMap | ( | const std::string & | key, |
| const MAP_TYPE & | map ) |
Check if a given key is contained in an STL map.
| int32_t ifw::core::utils::base::ElInVector | ( | const std::vector< TYPE > & | vect, |
| const TYPE & | value ) |
Check for specific element in the list. Return index if found, otherwise -1.
| std::string ifw::core::utils::base::GenUniqueId | ( | const std::string & | prefix = "" | ) |
Generate a unique UUID based ID. A prefix may be prepended, if requested.
| void ifw::core::utils::base::InstallFndLog4cplusBridge | ( | const std::string & | logger_name | ) |
Install the FND->log4cplus bridge as the process-wide ifw-fnd logger. Bridged FND* output goes to the log4cplus logger named logger_name (configure it in log.properties). Idempotent: does nothing if an ifw-fnd logger is already installed. Call once at startup, before anything logs via FND*.
| log4cplus::Logger & ifw::core::utils::base::Logger | ( | ) |
| std::string ifw::core::utils::base::ResolvePath | ( | const std::string & | filename | ) |
Resolve the filename if it contains env. variables, "~" and relative paths.
| const std::string ifw::core::utils::base::CFGPATH = "CFGPATH" |
| const std::string ifw::core::utils::base::DATAROOT = "DATAROOT" |
| const std::string ifw::core::utils::base::EXT_FITS = "fits" |
| const int64_t ifw::core::utils::base::FAILURE = 1 |
| const std::string ifw::core::utils::base::INTROOT = "INTROOT" |
| const std::string ifw::core::utils::base::INVALID = "__INVALID__" |
| const int64_t ifw::core::utils::base::NO_TIMEOUT = -1 |
| const std::string ifw::core::utils::base::NOT_IMPLEMENTED = "NotImplemented" |
| const int64_t ifw::core::utils::base::SUCCESS = 0 |
| const std::string ifw::core::utils::base::SYSROOT = "SYSROOT" |
| const std::string ifw::core::utils::base::UNDEFINED = "__UNDEFINED__" |