|
Pol
Revision:cb584c9
|
#include <proplist.h>
Public Member Functions | |
| PropertyList ()=delete | |
| PropertyList (CPropProfiler::Type type) | |
| PropertyList (CPropProfiler::Type type, bool force) | |
| PropertyList (const PropertyList &) | |
| void | clear () |
| void | copyprops (const PropertyList &proplist) |
| void | eraseprop (const std::string &propname) |
| size_t | estimatedSize () const |
| bool | getprop (const std::string &propname, std::string &propvalue) const |
| void | getpropnames (std::vector< std::string > &propnames) const |
| PropertyList & | operator- (const std::set< std::string > &) |
| void | operator-= (const std::set< std::string > &) |
| bool | operator== (const PropertyList &) const |
| void | printProperties (Clib::StreamWriter &sw) const |
| void | printProperties (Clib::ConfigElem &elem) const |
| void | printPropertiesAsStrings (Clib::StreamWriter &sw) const |
| void | readProperties (Clib::ConfigElem &elem) |
| void | readRemainingPropertiesAsStrings (Clib::ConfigElem &elem) |
| void | setprop (const std::string &propname, const std::string &propvalue) |
Protected Types | |
| typedef std::map< boost_utils::cprop_name_flystring, boost_utils::cprop_value_flystring > | Properties |
Protected Attributes | |
| Properties | properties |
Private Member Functions | |
| PropertyList & | operator= (const PropertyList &)=delete |
Holds an object's CProps
Definition at line 132 of file proplist.h.
|
protected |
Definition at line 159 of file proplist.h.
|
delete |
Referenced by estimatedSize().
| Pol::Core::PropertyList::PropertyList | ( | CPropProfiler::Type | type | ) |
Initialize and register this property list based on a given type register only if the profile_cprops flag is set
Definition at line 335 of file proplist.cpp.
References Pol::Core::CPropProfiler::instance(), Pol::Core::CPropProfiler::registerProplist(), and Pol::Plib::systemstate.
| Pol::Core::PropertyList::PropertyList | ( | CPropProfiler::Type | type, |
| bool | force | ||
| ) |
Initialize and register this property list based on a given type, always register if force flag is is true
Definition at line 345 of file proplist.cpp.
References Pol::Core::CPropProfiler::instance(), Pol::Core::CPropProfiler::registerProplist(), and Pol::Plib::systemstate.
| Pol::Core::PropertyList::PropertyList | ( | const PropertyList & | props | ) |
Initialize by copying content and type from a given one
Definition at line 354 of file proplist.cpp.
References copyprops(), Pol::Core::CPropProfiler::instance(), Pol::Core::CPropProfiler::registerProplist(), and Pol::Plib::systemstate.
| void Pol::Core::PropertyList::clear | ( | ) |
Definition at line 416 of file proplist.cpp.
References properties.
Referenced by Pol::Accounts::Account::readfrom().
| void Pol::Core::PropertyList::copyprops | ( | const PropertyList & | proplist | ) |
Definition at line 403 of file proplist.cpp.
References properties.
Referenced by Pol::Core::UObject::copyprops(), and PropertyList().
| void Pol::Core::PropertyList::eraseprop | ( | const std::string & | propname | ) |
Definition at line 395 of file proplist.cpp.
References Pol::Core::CPropProfiler::cpropErase(), Pol::Core::CPropProfiler::instance(), properties, and Pol::Plib::systemstate.
Referenced by Pol::Core::CallPropertyListMethod_id(), Pol::Core::UObject::eraseprop(), operator-(), and operator-=().
| size_t Pol::Core::PropertyList::estimatedSize | ( | ) | const |
Definition at line 362 of file proplist.cpp.
References properties, and PropertyList().
Referenced by Pol::Accounts::Account::estimatedSize(), Pol::Items::ItemDesc::estimatedSize(), Pol::Core::UObject::estimatedSize(), Pol::Core::Region::estimateSize(), Pol::Core::Guild::estimateSize(), and Pol::Core::Party::estimateSize().
| bool Pol::Core::PropertyList::getprop | ( | const std::string & | propname, |
| std::string & | propvalue | ||
| ) | const |
Definition at line 371 of file proplist.cpp.
References Pol::Core::CPropProfiler::cpropRead(), Pol::Core::CPropProfiler::instance(), properties, and Pol::Plib::systemstate.
Referenced by Pol::Core::CallPropertyListMethod_id(), Pol::Core::Region::get_region_string(), Pol::Core::UObject::getprop(), and Pol::Items::ItemDesc::PopulateStruct().
| void Pol::Core::PropertyList::getpropnames | ( | std::vector< std::string > & | propnames | ) | const |
Definition at line 421 of file proplist.cpp.
References properties.
Referenced by Pol::Core::CallPropertyListMethod_id(), Pol::Core::UObject::getpropnames(), and Pol::Items::ItemDesc::PopulateStruct().
| PropertyList & Pol::Core::PropertyList::operator- | ( | const std::set< std::string > & | CPropNames | ) |
Definition at line 501 of file proplist.cpp.
References eraseprop(), and name.
| void Pol::Core::PropertyList::operator-= | ( | const std::set< std::string > & | CPropNames | ) |
Definition at line 512 of file proplist.cpp.
References eraseprop(), and name.
|
privatedelete |
| bool Pol::Core::PropertyList::operator== | ( | const PropertyList & | plist | ) | const |
Definition at line 496 of file proplist.cpp.
References properties.
| void Pol::Core::PropertyList::printProperties | ( | Clib::StreamWriter & | sw | ) | const |
Definition at line 429 of file proplist.cpp.
References pf_endl, and properties.
Referenced by Pol::Core::Guild::printOn(), Pol::Core::Party::printOn(), Pol::Core::UObject::printProperties(), and Pol::Accounts::Account::writeto().
| void Pol::Core::PropertyList::printProperties | ( | Clib::ConfigElem & | elem | ) | const |
Definition at line 440 of file proplist.cpp.
References Pol::Clib::ConfigElem::add_prop(), and properties.
| void Pol::Core::PropertyList::printPropertiesAsStrings | ( | Clib::StreamWriter & | sw | ) | const |
Definition at line 452 of file proplist.cpp.
References pf_endl, and properties.
Referenced by Pol::Module::DataFileElement::printOn().
| void Pol::Core::PropertyList::readProperties | ( | Clib::ConfigElem & | elem | ) |
Definition at line 464 of file proplist.cpp.
References Pol::Clib::ConfigElem::remove_prop(), setprop(), and Pol::Clib::splitnamevalue().
Referenced by Pol::Core::Guild::Guild(), Pol::Items::ItemDesc::ItemDesc(), Pol::Core::Party::Party(), Pol::Accounts::Account::readfrom(), and Pol::Core::UObject::readProperties().
| void Pol::Core::PropertyList::readRemainingPropertiesAsStrings | ( | Clib::ConfigElem & | elem | ) |
Definition at line 487 of file proplist.cpp.
References Pol::Clib::ConfigElem::remove_first_prop(), and setprop().
Referenced by Pol::Module::DataFileElement::DataFileElement(), and Pol::Core::Region::read_custom_config().
| void Pol::Core::PropertyList::setprop | ( | const std::string & | propname, |
| const std::string & | propvalue | ||
| ) |
Definition at line 387 of file proplist.cpp.
References Pol::Core::CPropProfiler::cpropWrite(), Pol::Core::CPropProfiler::instance(), properties, and Pol::Plib::systemstate.
Referenced by Pol::Core::CallPropertyListMethod_id(), readProperties(), readRemainingPropertiesAsStrings(), and Pol::Core::UObject::setprop().
|
protected |
Definition at line 161 of file proplist.h.
Referenced by clear(), copyprops(), eraseprop(), estimatedSize(), getprop(), getpropnames(), operator==(), printProperties(), printPropertiesAsStrings(), and setprop().