Pol  Revision:cb584c9
Pol::Core::PropertyList Class Reference

#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
 
PropertyListoperator- (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_flystringProperties
 

Protected Attributes

Properties properties
 

Private Member Functions

PropertyListoperator= (const PropertyList &)=delete
 

Detailed Description

Holds an object's CProps

Definition at line 132 of file proplist.h.

Member Typedef Documentation

Constructor & Destructor Documentation

Pol::Core::PropertyList::PropertyList ( )
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.

Member Function Documentation

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)
bool Pol::Core::PropertyList::getprop ( const std::string &  propname,
std::string &  propvalue 
) const
void Pol::Core::PropertyList::getpropnames ( std::vector< std::string > &  propnames) const
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.

PropertyList& Pol::Core::PropertyList::operator= ( const PropertyList )
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
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::readRemainingPropertiesAsStrings ( Clib::ConfigElem elem)
void Pol::Core::PropertyList::setprop ( const std::string &  propname,
const std::string &  propvalue 
)

Member Data Documentation

Properties Pol::Core::PropertyList::properties
protected

The documentation for this class was generated from the following files: