24 #ifndef LOG4CPLUS_HELPERS_PROPERTY_HEADER_
25 #define LOG4CPLUS_HELPERS_PROPERTY_HEADER_
29 #if defined (LOG4CPLUS_HAVE_PRAGMA_ONCE)
53 , fUnspecEncoding = (0 << fEncodingShift)
54 #
if defined (LOG4CPLUS_HAVE_CODECVT_UTF8_FACET) && defined (UNICODE)
55 , fUTF8 = (1 << fEncodingShift)
57 #
if (defined (LOG4CPLUS_HAVE_CODECVT_UTF16_FACET) || defined (_WIN32)) \
59 , fUTF16 = (2 << fEncodingShift)
61 #
if defined (LOG4CPLUS_HAVE_CODECVT_UTF32_FACET) && defined (UNICODE)
62 , fUTF32 = (3 << fEncodingShift)
140 typedef std::map<log4cplus::tstring, log4cplus::tstring>
StringMap;
150 template <
typename StringType>
152 StringType
const & key)
const;
154 template <
typename ValType>
155 bool get_type_val_worker (ValType & val,
std::map< log4cplus::tstring, log4cplus::tstring > StringMap
bool getLong(long &val, log4cplus::tstring const &key) const
void setProperty(const log4cplus::tstring &key, const log4cplus::tstring &value)
Inserts value into this map indexed by key.
std::vector< log4cplus::tstring > propertyNames() const
Returns all the keys in this property list.
bool getUInt(unsigned &val, log4cplus::tstring const &key) const
std::size_t size() const
Returns the number of entries in this map.
bool getInt(int &val, log4cplus::tstring const &key) const
log4cplus::tstring const & getProperty(tchar const *key) const
bool exists(tchar const *key) const
Properties(log4cplus::tistream &input)
bool getULong(unsigned long &val, log4cplus::tstring const &key) const
bool getString(log4cplus::tstring &val, log4cplus::tstring 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.
void init(log4cplus::tistream &input)
bool exists(const log4cplus::tstring &key) const
Tests to see if key can be found in this map.
log4cplus::tstring const & getProperty(const log4cplus::tstring &key) const
Searches for the property with the specified key in this property list.
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".
bool getBool(bool &val, log4cplus::tstring const &key) const
Properties(const log4cplus::tstring &inputFile, unsigned flags=0)
static const tchar PROPERTIES_COMMENT_CHAR
std::basic_string< tchar > tstring
std::basic_istream< tchar > tistream