Pol  Rev 533
PropertyList Class Reference

#include <proplist.h>

+ Collaboration diagram for PropertyList:

List of all members.

Public Member Functions

 PropertyList ()
 PropertyList (const PropertyList &)
void clear ()
void copyprops (const PropertyList &proplist)
void eraseprop (const std::string &propname)
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 (std::ostream &os) const
void printProperties (ConfigElem &elem) const
void printPropertiesAsStrings (std::ostream &os) const
void readProperties (ConfigElem &elem)
void readRemainingPropertiesAsStrings (ConfigElem &elem)
void setprop (const std::string &propname, const std::string &propvalue)

Protected Types

typedef std::map< std::string,
std::string > 
Properties

Protected Attributes

Properties properties

Private Member Functions

PropertyListoperator= (const PropertyList &)

Friends

class UObjectHelper

Detailed Description

Definition at line 26 of file proplist.h.


Member Typedef Documentation

typedef std::map<std::string, std::string> PropertyList::Properties [protected]

Definition at line 49 of file proplist.h.


Constructor & Destructor Documentation

Definition at line 33 of file proplist.cpp.

Definition at line 37 of file proplist.cpp.

References copyprops().

+ Here is the call graph for this function:


Member Function Documentation

Definition at line 76 of file proplist.cpp.

References properties.

Referenced by Account::readfrom().

+ Here is the caller graph for this function:

void PropertyList::copyprops ( const PropertyList proplist)

Definition at line 66 of file proplist.cpp.

References properties.

Referenced by UObject::copyprops(), and PropertyList().

+ Here is the caller graph for this function:

void PropertyList::eraseprop ( const std::string &  propname)

Definition at line 61 of file proplist.cpp.

References properties.

Referenced by CallPropertyListMethod_id(), UObject::eraseprop(), UOExecutorModule::mf_EraseGlobalProperty(), operator-(), and operator-=().

+ Here is the caller graph for this function:

bool PropertyList::getprop ( const std::string &  propname,
std::string &  propvalue 
) const
void PropertyList::getpropnames ( std::vector< std::string > &  propnames) const

Definition at line 81 of file proplist.cpp.

References properties.

Referenced by CallPropertyListMethod_id(), UObject::getpropnames(), UOExecutorModule::mf_GetGlobalPropertyNames(), and ItemDesc::PopulateStruct().

+ Here is the caller graph for this function:

PropertyList & PropertyList::operator- ( const std::set< std::string > &  CPropNames)

Definition at line 178 of file proplist.cpp.

References eraseprop().

+ Here is the call graph for this function:

void PropertyList::operator-= ( const std::set< std::string > &  CPropNames)

Definition at line 189 of file proplist.cpp.

References eraseprop().

+ Here is the call graph for this function:

PropertyList& PropertyList::operator= ( const PropertyList ) [private]
bool PropertyList::operator== ( const PropertyList plist) const

Definition at line 173 of file proplist.cpp.

References properties.

void PropertyList::printProperties ( std::ostream &  os) const

Definition at line 90 of file proplist.cpp.

References pf_endl, and properties.

Referenced by Guild::printOn(), Party::printOn(), UObject::printProperties(), write_global_properties(), and Account::writeto().

+ Here is the caller graph for this function:

void PropertyList::printProperties ( ConfigElem elem) const

Definition at line 101 of file proplist.cpp.

References ConfigElem::add_prop(), and properties.

+ Here is the call graph for this function:

void PropertyList::printPropertiesAsStrings ( std::ostream &  os) const

Definition at line 112 of file proplist.cpp.

References pf_endl, and properties.

Referenced by DataFileElement::printOn().

+ Here is the caller graph for this function:

Definition at line 124 of file proplist.cpp.

References ConfigElem::remove_prop(), setprop(), and splitnamevalue().

Referenced by Guild::Guild(), ItemDesc::ItemDesc(), Party::Party(), Account::readfrom(), UObject::readProperties(), and slurp().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Definition at line 147 of file proplist.cpp.

References ConfigElem::remove_first_prop(), and setprop().

Referenced by DataFileElement::DataFileElement(), and Region::read_custom_config().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PropertyList::setprop ( const std::string &  propname,
const std::string &  propvalue 
)

Definition at line 56 of file proplist.cpp.

References properties.

Referenced by CallPropertyListMethod_id(), UOExecutorModule::mf_SetGlobalProperty(), readProperties(), readRemainingPropertiesAsStrings(), UObject::setprop(), and update_gameclock().

+ Here is the caller graph for this function:


Friends And Related Function Documentation

friend class UObjectHelper [friend]

Definition at line 53 of file proplist.h.


Member Data Documentation


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