fw4spl
fwDataCamp::visitor::GetObject Class Reference

This class is an helper to introspect a data and find an object (contained into this data) from a normalized path. More...

#include <GetObject.hpp>

+ Inheritance diagram for fwDataCamp::visitor::GetObject:
+ Collaboration diagram for fwDataCamp::visitor::GetObject:

Public Member Functions

FWDATACAMP_API GetObject (::fwData::Object::csptr object, const std::string &subObjPath)
 Constructor. More...
 
FWDATACAMP_API::fwData::Object::sptr get ()
 Launches visit process and returns the object designated by m_subObjPath.
 
FWDATACAMP_API bool objectsFound () const
 Returns true if introspection process matched child object path.
 
PathVisitor::sptr getPathVisitor () const
 Returns pointer to associated path visitor.
 
Introspection methods implementation
FWDATACAMP_API void visit (const camp::SimpleProperty &property)
 
FWDATACAMP_API void visit (const camp::EnumProperty &property)
 
FWDATACAMP_API void visit (const camp::UserProperty &property)
 
FWDATACAMP_API void visit (const camp::ArrayProperty &property)
 
FWDATACAMP_API void visit (const camp::Function &function)
 
virtual FWDATACAMP_API void visit (const camp::MapProperty &property)
 
- Public Member Functions inherited from camp::ExtendedClassVisitor
virtual void visit (const Property &property)
 
virtual void visit (const SimpleProperty &property)
 
virtual void visit (const ArrayProperty &property)
 
virtual void visit (const EnumProperty &property)
 
virtual void visit (const UserProperty &property)
 
virtual void visit (const Function &function)
 

Protected Attributes

PathVisitor::sptr m_pathVisitor
 Path visitor.
 

Detailed Description

This class is an helper to introspect a data and find an object (contained into this data) from a normalized path.

Definition at line 80 of file GetObject.hpp.

Constructor & Destructor Documentation

fwDataCamp::visitor::GetObject::GetObject ( ::fwData::Object::csptr  object,
const std::string &  subObjPath 
)

Constructor.

Parameters
objectdata object containing child object to retrieve
subObjPathnormalized path targeting child object to retrieve

Definition at line 104 of file GetObject.cpp.

References m_pathVisitor, OSLM_DEBUG, OSLM_FATAL_IF, SLM_FATAL_IF, and SLM_TRACE_FUNC.


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