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

ph::reflect::get_object_visitor Class Reference

#include <object_visitor.hpp>

Inheritance diagram for ph::reflect::get_object_visitor:

ph::common::object_name_visitor

Detailed Description

Concrete subclass of object_visitor used to search for an object given the name.

Definition at line 43 of file object_visitor.hpp.

Public Member Functions

 get_object_visitor (const std::string &name, bool recurse=false)
ph::common::object_baseobj ()
virtual bool recurse ()
virtual bool visit (const ph::common::object_base *obj, const ph::common::nameable_object_base *name)
 Visit an object's nameable interface.
virtual bool visit_composite (const ph::common::object_base *obj, const ph::common::nameable_object_base *name)


Constructor & Destructor Documentation

ph::reflect::get_object_visitor::get_object_visitor const std::string &  name,
bool  recurse = false
[inline]
 

Definition at line 49 of file object_visitor.hpp.


Member Function Documentation

ph::common::object_base* ph::reflect::get_object_visitor::obj  )  [inline]
 

Definition at line 53 of file object_visitor.hpp.

virtual bool ph::reflect::get_object_visitor::recurse  )  [inline, virtual]
 

Return true if the visitor should recurse through composite objects. it is up to the individual composite objects to implement this correctly.

Reimplemented from ph::common::object_name_visitor.

Definition at line 56 of file object_visitor.hpp.

bool get_object_visitor::visit const ph::common::object_base obj,
const ph::common::nameable_object_base name
[virtual]
 

Visit an object's nameable interface.

Implements ph::common::object_name_visitor.

Definition at line 232 of file object_visitor.cpp.

References ph::common::nameable_object_base::name(), and ph::common::object_base::pretendable().

virtual bool ph::reflect::get_object_visitor::visit_composite const ph::common::object_base obj,
const ph::common::nameable_object_base name
[inline, virtual]
 

Visit a composite object's nameable interface.

Implements ph::common::object_name_visitor.

Definition at line 58 of file object_visitor.hpp.


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