Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

ph::xmlobj::generic::generic Class Reference

#include <generic.hpp>

Detailed Description

A generic object. This object keeps a list of all composite and other members as strings and allows an unknown DOM to be loaded.

Definition at line 23 of file generic.hpp.

Public Member Functions

 generic (const std::string &type, const std::string &name)
void copy (const generic &obj)
virtual bool accept (ph::common::object_name_visitor *v) const
virtual bool accept (ph::common::member_visitor *v)
virtual bool accept (ph::common::const_member_visitor *v) const
virtual bool accept (ph::common::object_visitor *v)
virtual bool accept (ph::common::const_object_visitor *v) const
virtual ph::common::object_baseclone (const std::string &name, ph::common::cloneable_object_context *context) const
virtual ph::common::object_baseget_composite_object (const std::string &name)
virtual bool has (const std::string &name) const
virtual void set (const std::string &name, const std::string &value)
virtual bool is_any_object ()

Constructor & Destructor Documentation

ph::xmlobj::generic::generic::generic const std::string &  type,
const std::string &  name

Definition at line 30 of file generic.hpp.

Member Function Documentation

void ph::xmlobj::generic::generic::copy const generic obj  )  [inline]

Definition at line 35 of file generic.hpp.

bool generic::accept ph::common::object_name_visitor v  )  const [virtual]

Definition at line 59 of file generic.cpp.

References ph::common::object_name_visitor::visit().

bool generic::accept ph::common::member_visitor v  )  [virtual]

Definition at line 64 of file generic.cpp.

bool generic::accept ph::common::const_member_visitor v  )  const [virtual]

Definition at line 77 of file generic.cpp.

bool generic::accept ph::common::object_visitor v  )  [virtual]

Definition at line 90 of file generic.cpp.

bool generic::accept ph::common::const_object_visitor v  )  const [virtual]

Definition at line 101 of file generic.cpp.

ph::common::object_base * generic::clone const std::string &  name,
ph::common::cloneable_object_context context
const [virtual]

Definition at line 112 of file generic.cpp.

ph::common::object_base * generic::get_composite_object const std::string &  name  )  [virtual]

We create any composite object that is asked for. This is the only way to ensure that all objects are correctly created when parseing.

Definition at line 14 of file generic.cpp.

bool generic::has const std::string &  name  )  const [virtual]

We have all members asked for. This is the way that it must work, otherwise the parser bails on us.

Definition at line 31 of file generic.cpp.

void generic::set const std::string &  name,
const std::string &  value

Remove any composites with this name. They are really members if they are being set. This is because we will tell the parser that everything is a composite (cos we aren't sure), but later on the parser is nice enough to set the member anyway when it get's data through.

Definition at line 40 of file generic.cpp.

virtual bool ph::xmlobj::generic::generic::is_any_object  )  [inline, virtual]

Definition at line 53 of file generic.hpp.

The documentation for this class was generated from the following files:
Generated on Wed Apr 5 22:03:37 2006 for cppxmlobj by  doxygen 1.4.3