Scopira 20080306

scopira::tool::property_node Class Reference

#include <prop.h>

Inheritance diagram for scopira::tool::property_node:
scopira::tool::property scopira::tool::object

List of all members.

Public Types

typedef std::list
< scopira::tool::count_ptr
< scopira::tool::property > > 
sproplist_t
typedef std::map< std::string,
sproplist_t > 
propmap_t

Public Member Functions

 property_node (void)
 default constructor
virtual ~property_node ()
 destructor
virtual oflow_iprint (oflow_i &o) const
 pretty ascii printer
virtual bool load (iobjflow_i &in)
 serialization loader
virtual void save (oobjflow_i &out) const
 serialization saver
virtual bool is_node (void) const
 is this a record prop?
virtual void add_end (const std::string &name, property *prop)
virtual iterator get (const std::string &name)
virtual propertyget_first (const std::string &name)
virtual size_t get_size (const std::string &name) const
virtual bool contains (const std::string &name) const
virtual void remove (const std::string &name)
virtual key_iterator get_key_iterator (void)
virtual const std::string * get_string_value (const std::string &name) const
virtual objectget_object_value (const std::string &name) const

Protected Attributes

propmap_t dm_propmap

Detailed Description

a string-prop_string list "record" of properties

Author:
Aleksander Demko

Member Function Documentation

virtual void scopira::tool::property_node::add_end ( const std::string &  name,
property prop 
) [virtual]

appends to a property. creates a new property if need be

Author:
Aleksander Demko

Reimplemented from scopira::tool::property.

virtual bool scopira::tool::property_node::contains ( const std::string &  name) const [virtual]

does the given key exist, at all

Author:
Aleksander Demko

Reimplemented from scopira::tool::property.

virtual iterator scopira::tool::property_node::get ( const std::string &  name) [virtual]

gets a list of properties. if name doesnt exist, a valid, empty iterator will be returned

Author:
Aleksander Demko

Reimplemented from scopira::tool::property.

virtual property* scopira::tool::property_node::get_first ( const std::string &  name) [virtual]

gets the first entry. returns null if doesnt exit

Author:
Aleksander Demko

Reimplemented from scopira::tool::property.

virtual key_iterator scopira::tool::property_node::get_key_iterator ( void  ) [virtual]

returns an iterator of keys

Returns:
the iterator
Author:
Aleksander Demko

Reimplemented from scopira::tool::property.

virtual object* scopira::tool::property_node::get_object_value ( const std::string &  name) const [virtual]

convinience routine, will always work, might return null

Author:
Aleksander Demko

Reimplemented from scopira::tool::property.

virtual size_t scopira::tool::property_node::get_size ( const std::string &  name) const [virtual]

gets the size of a list, same cost as list<>::size

Author:
Aleksander Demko

Reimplemented from scopira::tool::property.

virtual const std::string* scopira::tool::property_node::get_string_value ( const std::string &  name) const [virtual]

convinience routine, will always work, might return null

Author:
Aleksander Demko

Reimplemented from scopira::tool::property.

virtual void scopira::tool::property_node::remove ( const std::string &  name) [virtual]

removes all the entries in the given prop

Author:
Aleksander Demko

Reimplemented from scopira::tool::property.


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