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

ph::reflect::get_object_with_type_visitor Class Reference

#include <object_visitor.hpp>

Inheritance diagram for ph::reflect::get_object_with_type_visitor:

ph::common::object_name_visitor

Detailed Description

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

Definition at line 67 of file object_visitor.hpp.

Public Member Functions

 get_object_with_type_visitor (const std::string &type, 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_with_type_visitor::get_object_with_type_visitor const std::string &  type,
const std::string &  name,
bool  recurse = false
[inline]
 

Definition at line 74 of file object_visitor.hpp.


Member Function Documentation

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

Definition at line 79 of file object_visitor.hpp.

virtual bool ph::reflect::get_object_with_type_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 82 of file object_visitor.hpp.

bool get_object_with_type_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 251 of file object_visitor.cpp.

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

virtual bool ph::reflect::get_object_with_type_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 84 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