dmlite
0.6
|
Internal interface for handling pool metadata. More...
#include <poolmanager.h>
Public Member Functions | |
bool | operator== (const Pool &) const |
bool | operator!= (const Pool &) const |
bool | operator< (const Pool &) const |
bool | operator> (const Pool &) const |
![]() | |
bool | hasField (const std::string &key) const |
Returns true if there is a field name "key". More... | |
const boost::any & | operator[] (const std::string &key) const throw (DmException) |
boost::any & | operator[] (const std::string &key) |
bool | operator== (const Extensible &) const |
bool | operator!= (const Extensible &) const |
bool | operator> (const Extensible &) const |
bool | operator< (const Extensible &) const |
unsigned long | size () const |
Number of elements inside this Extensible. More... | |
void | clear () |
Removes all the content. More... | |
void | copy (const Extensible &s) |
Copies the content from another Extensible. More... | |
void | erase (const std::string &) |
Removes an entry. More... | |
std::string | serialize (void) const |
Serializes to JSON. In principle, it only supports POD. More... | |
void | deserialize (const std::string &serial) throw (DmException) |
Deserializes from a JSON string. More... | |
std::vector< std::string > | getKeys (void) const throw (DmException) |
Get all the keys available. More... | |
bool | getBool (const std::string &key, bool defaultValue=false) const throw (DmException) |
Gets a boolean. May be able to perform some conversions. More... | |
long | getLong (const std::string &key, long defaultValue=0) const throw (DmException) |
Gets an integer. May be able to perform some conversions. More... | |
unsigned long | getUnsigned (const std::string &key, unsigned long defaultValue=0) const throw (DmException) |
Gets an unsigned integer. May be able to perform some conversions. More... | |
double | getDouble (const std::string &key, double defaultValue=0) const throw (DmException) |
Gets a float. May be able to perform some conversions. More... | |
std::string | getString (const std::string &key, const std::string &defaultValue="") const throw (DmException) |
Gets a string. May perform some conversions. More... | |
Extensible | getExtensible (const std::string &key, const Extensible &defaultValue=Extensible()) const throw (DmException) |
Gets a nested dictionary. More... | |
std::vector< boost::any > | getVector (const std::string &key, const std::vector< boost::any > &defaultValue=std::vector< boost::any >()) const throw (DmException) |
Gets an array. More... | |
const_iterator | begin () const |
const_iterator | end () const |
Public Attributes | |
std::string | name |
std::string | type |
Additional Inherited Members | |
![]() | |
typedef DictType_::const_iterator | const_iterator |
Iterators. More... | |
![]() | |
static bool | anyToBoolean (const boost::any &any) |
Converts an any to a boolean, casting if needed. More... | |
static unsigned | anyToUnsigned (const boost::any &any) |
Converts an any to an unsigned, casting if needed. More... | |
static long | anyToLong (const boost::any &any) |
Converts an any to a long, casting if needed. More... | |
static double | anyToDouble (const boost::any &any) |
Converts an any to a double, casting if needed. More... | |
static std::string | anyToString (const boost::any &any) |
Converts an any to a string, casting if needed. More... | |
Internal interface for handling pool metadata.
bool dmlite::Pool::operator!= | ( | const Pool & | ) | const |
bool dmlite::Pool::operator< | ( | const Pool & | ) | const |
bool dmlite::Pool::operator== | ( | const Pool & | ) | const |
bool dmlite::Pool::operator> | ( | const Pool & | ) | const |
std::string dmlite::Pool::name |
std::string dmlite::Pool::type |