Scopira 20080306

scopira::tool::property Class Reference

#include <prop.h>

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

List of all members.

Public Types

< scopira::tool::property * > 
< const std::string * > 

Public Member Functions

 property (void)
 default constructor
 property (const std::string &_val)
 initing ctor
 property (object *o)
 initing ctor
virtual ~property ()
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? (default, false)
virtual void add_end (const std::string &name, property *prop)
virtual iterator get (const std::string &name)
 gets a list of properties. if name doesnt exist, a valid, empty iterator will be returned
virtual propertyget_first (const std::string &name)
 gets the first entry. this will crash if the entry doesnt exist!
virtual size_t get_size (const std::string &name) const
virtual bool contains (const std::string &name) const
 does the given key exist, at all
virtual void remove (const std::string &name)
 removes all the entries in the given prop
virtual key_iterator get_key_iterator (void)
 returns an iterator of keys
virtual const std::string * get_string_value (const std::string &name) const
 convinience routine, will always work, might return null
virtual objectget_object_value (const std::string &name) const
 convinience routine, will always work, might return null
void set_value (const std::string &val)
 sets the value string
const std::string & get_value_as_string (void) const
 gets the value string
void set_value (object *obj)
 sets the value, as an object*, will be ref counted
objectget_value_as_object (void) const
 gets the value, as a object

Protected Attributes

std::string dm_val
count_ptr< objectdm_obj

Detailed Description

a string property value with type string

Aleksander Demko

Member Function Documentation

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

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

Reimplemented in scopira::tool::property_node.

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