Template Class MetaObject

Inheritance Relationships

Base Type

Class Documentation

template<class C, class B>
class MetaObject : public class_loader::impl::AbstractMetaObject<B>

The actual factory.

@parm C The derived class (the actual plugin) @parm B The base class interface for the plugin

Public Functions

inline MetaObject(const std::string &class_name, const std::string &base_class_name)

Constructor for the class.

inline virtual B *create() const

The factory interface to generate an object. The object has type C in reality, though a pointer of the base class type is returned.

Returns:

A pointer to a newly created plugin with the base class type (type parameter B)