class_loader  master
The class_loader package is a ROS-independent package for loading plugins during runtime.
Public Member Functions | List of all members
class_loader::impl::AbstractMetaObject< B > Class Template Referenceabstract

Abstract base class for factories where polymorphic type variable indicates base class for plugin interface. More...

#include <meta_object.hpp>

Inheritance diagram for class_loader::impl::AbstractMetaObject< B >:
Inheritance graph
[legend]
Collaboration diagram for class_loader::impl::AbstractMetaObject< B >:
Collaboration graph
[legend]

Public Member Functions

 AbstractMetaObject (const std::string &class_name, const std::string &base_class_name)
 A constructor for this class. More...
 
virtual B * create () const =0
 Defines the factory interface that the MetaObject must implement. More...
 
- Public Member Functions inherited from class_loader::impl::AbstractMetaObjectBase
 AbstractMetaObjectBase (const std::string &class_name, const std::string &base_class_name, const std::string &typeid_base_class_name="UNSET")
 Constructor for the class. More...
 
 ~AbstractMetaObjectBase ()
 Destructor for the class. THIS MUST NOT BE VIRTUAL AND OVERRIDDEN BY TEMPLATE SUBCLASSES, OTHERWISE THEY WILL PULL IN A REDUNDANT METAOBJECT DESTRUCTOR OUTSIDE OF libclass_loader WITHIN THE PLUGIN LIBRARY! T. More...
 
const std::stringclassName () const
 Gets the literal name of the class. More...
 
const std::stringbaseClassName () const
 gets the base class for the class this factory represents More...
 
const std::stringtypeidBaseClassName () const
 Gets the name of the class as typeid(BASE_CLASS).name() would return it. More...
 
const std::stringgetAssociatedLibraryPath () const
 Gets the path to the library associated with this factory. More...
 
void setAssociatedLibraryPath (const std::string &library_path)
 Sets the path to the library associated with this factory. More...
 
void addOwningClassLoader (ClassLoader *loader)
 Associates a ClassLoader owner with this factory,. More...
 
void removeOwningClassLoader (const ClassLoader *loader)
 Removes a ClassLoader that is an owner of this factory. More...
 
bool isOwnedBy (const ClassLoader *loader) const
 Indicates if the factory is within the usable scope of a ClassLoader. More...
 
bool isOwnedByAnybody () const
 Indicates if the factory is within the usable scope of any ClassLoader. More...
 
size_t getAssociatedClassLoadersCount () const
 Get the number of associated class Loaders. More...
 
ClassLoadergetAssociatedClassLoader (size_t index) const
 Get an associated ClassLoader pointer by index. More...
 

Additional Inherited Members

- Protected Member Functions inherited from class_loader::impl::AbstractMetaObjectBase
virtual void dummyMethod ()
 
- Protected Attributes inherited from class_loader::impl::AbstractMetaObjectBase
AbstractMetaObjectBaseImpl * impl_
 

Detailed Description

template<class B>
class class_loader::impl::AbstractMetaObject< B >

Abstract base class for factories where polymorphic type variable indicates base class for plugin interface.

@parm B The base class interface for the plugin

Constructor & Destructor Documentation

◆ AbstractMetaObject()

template<class B >
class_loader::impl::AbstractMetaObject< B >::AbstractMetaObject ( const std::string class_name,
const std::string base_class_name 
)
inline

A constructor for this class.

Parameters
nameThe literal name of the class.

Member Function Documentation

◆ create()

template<class B >
virtual B* class_loader::impl::AbstractMetaObject< B >::create ( ) const
pure virtual

Defines the factory interface that the MetaObject must implement.

Returns
A pointer of parametric type B to a newly created object.

Implemented in class_loader::impl::MetaObject< C, B >.


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