cppexpose  1.0.0.b785e04f23b8
C++ library for type introspection, reflection, and scripting interface
Public Member Functions | List of all members
cppexpose::AbstractGenericComponent< BaseType > Class Template Referenceabstract

Abstract base class for generic components. More...

#include <cppexpose/include/cppexpose/plugin/AbstractGenericComponent.h>

Inheritance diagram for cppexpose::AbstractGenericComponent< BaseType >:
Inheritance graph
[legend]
Collaboration diagram for cppexpose::AbstractGenericComponent< BaseType >:
Collaboration graph
[legend]

Public Member Functions

 AbstractGenericComponent ()
 Constructor. More...
 
virtual ~AbstractGenericComponent ()
 Destructor. More...
 
virtual std::unique_ptr< BaseType > createInstance () const =0
 Create new instance of the component. More...
 
- Public Member Functions inherited from cppexpose::AbstractComponent
 AbstractComponent ()
 Constructor. More...
 
virtual ~AbstractComponent ()
 Destructor. More...
 
const char * name () const
 Get name. More...
 
const char * description () const
 Get description. More...
 
const char * type () const
 Get type. More...
 
const char * tags () const
 Get sub-type. More...
 
const char * icon () const
 Get icon. More...
 
const char * annotations () const
 Get annotations. More...
 
const char * vendor () const
 Get vendor. More...
 
const char * version () const
 Get version. More...
 

Additional Inherited Members

- Protected Attributes inherited from cppexpose::AbstractComponent
std::string m_name
 Component name. More...
 
std::string m_description
 Component description. More...
 
std::string m_type
 Component type. More...
 
std::string m_tags
 Component tags (user-defined, space-separated) More...
 
std::string m_icon
 Icon name or ID. More...
 
std::string m_annotations
 Component annotations. More...
 
std::string m_vendor
 Vendor name. More...
 
std::string m_version
 Component version. More...
 

Detailed Description

template<typename BaseType>
class cppexpose::AbstractGenericComponent< BaseType >

Abstract base class for generic components.

Remarks
A generic component is used for classes which have not defined their own component specialization via a type definition (AbstractComponentType and ComponentType<Type>). A generic component assumes that the class can be instanciated using a default constructor.

Constructor & Destructor Documentation

template<typename BaseType >
cppexpose::AbstractGenericComponent< BaseType >::AbstractGenericComponent ( )

Constructor.

template<typename BaseType >
cppexpose::AbstractGenericComponent< BaseType >::~AbstractGenericComponent ( )
virtual

Destructor.

Member Function Documentation

template<typename BaseType >
virtual std::unique_ptr<BaseType> cppexpose::AbstractGenericComponent< BaseType >::createInstance ( ) const
pure virtual

Create new instance of the component.

Returns
New instance

Implemented in cppexpose::GenericComponent< Type, BaseType >.


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