DCMTK
Version 3.6.1 20131114
OFFIS DICOM Toolkit
|
Public Types | |
enum | PFlags { fEncodingShift = 3, fEncodingMask = 0x3, fUnspecEncoding = (0 << fEncodingShift) } |
Public Member Functions | |
Properties (log4cplus::tistream &input) | |
Properties (const log4cplus::tstring &inputFile, unsigned flags=0) | |
bool | exists (const log4cplus::tstring &key) const |
Tests to see if key can be found in this map. | |
bool | exists (tchar const *key) const |
size_t | size () const |
Returns the number of entries in this map. | |
log4cplus::tstring const & | getProperty (const log4cplus::tstring &key) const |
Searches for the property with the specified key in this property list. More... | |
log4cplus::tstring const & | getProperty (tchar const *key) const |
log4cplus::tstring | getProperty (const log4cplus::tstring &key, const log4cplus::tstring &defaultVal) const |
Searches for the property with the specified key in this property list. More... | |
OFVector< log4cplus::tstring > | propertyNames () const |
Returns all the keys in this property list. | |
void | setProperty (const log4cplus::tstring &key, const log4cplus::tstring &value) |
Inserts value into this map indexed by key . | |
bool | removeProperty (const log4cplus::tstring &key) |
Removed the property index by key from this map. | |
Properties | getPropertySubset (const log4cplus::tstring &prefix) const |
Returns a subset of the "properties" whose keys start with "prefix". More... | |
bool | getInt (int &val, log4cplus::tstring const &key) const |
bool | getUInt (unsigned &val, log4cplus::tstring const &key) const |
bool | getLong (long &val, log4cplus::tstring const &key) const |
bool | getULong (unsigned long &val, log4cplus::tstring const &key) const |
bool | getBool (bool &val, log4cplus::tstring const &key) const |
Static Public Attributes | |
static const tchar | PROPERTIES_COMMENT_CHAR |
Protected Types | |
typedef OFMap < log4cplus::tstring, log4cplus::tstring > | StringMap |
Protected Member Functions | |
void | init (log4cplus::tistream &input) |
Protected Attributes | |
StringMap | data |
Private Member Functions | |
template<typename StringType > | |
log4cplus::tstring const & | get_property_worker (StringType const &key) const |
template<typename ValType > | |
bool | get_type_val_worker (ValType &val, log4cplus::tstring const &key) const |
log4cplus::tstring const& dcmtk::log4cplus::helpers::Properties::getProperty | ( | const log4cplus::tstring & | key | ) | const |
Searches for the property with the specified key in this property list.
If the key is not found in this property list, the default property list, and its defaults, recursively, are then checked. The method returns null
if the property is not found.
log4cplus::tstring dcmtk::log4cplus::helpers::Properties::getProperty | ( | const log4cplus::tstring & | key, |
const log4cplus::tstring & | defaultVal | ||
) | const |
Searches for the property with the specified key in this property list.
If the key is not found in this property list, the default property list, and its defaults, recursively, are then checked. The method returns the default value argument if the property is not found.
Properties dcmtk::log4cplus::helpers::Properties::getPropertySubset | ( | const log4cplus::tstring & | prefix | ) | const |
Returns a subset of the "properties" whose keys start with "prefix".
The returned "properties" have "prefix" trimmed from their keys.