Main Page Namespace List Class Hierarchy Alphabetical List Compound List Namespace Members Compound Members Related Pages

# PluginClass::FactoryC Class Reference

Plugin class factory class. More...

`#include <FactoryC.h>`

List of all members.

## Public Methods

- FactoryC ()
- virtual ~FactoryC ()
- virtual void load_plugins ( const char* szDir )
- virtual void register_class ( ClassDescC* pClass )
- virtual void* create ( const ClassIdC& rClassId )
- virtual PajaTypes::uint32 get_classdesc_count ()
- virtual ClassDescC* get_classdesc ( PajaTypes::uint32 )
- virtual const char* get_classdesc_dll_name ( PajaTypes::uint32 )

## Detailed Description

Plugin class factory class.

The class factory is used to create plugin classes. Different plugin classes are created based on their class IDs. Each plugin class has unique class ID.

See also:
  ClassIdC

## Constructor & Destructor Documentation

FactoryC ( | )

| Default constructor.

~FactoryC ( | )`[virtual]`

| Default destructor.

## Member Function Documentation

void * create ( | const ClassIdC & rClassId )`[virtual]`

| Creates new instance of class specified by class ID and returns the class.

ClassDescC * get_classdesc ( | PajaTypes::uint32 )`[virtual]`

| Returns pointer to a class descriptor of specified index.

PajaTypes::uint32 get_classdesc_count ( | )`[virtual]`

| Returns number of class descriptors.

const char * get_classdesc_dll_name ( | PajaTypes::uint32 )`[virtual]`

| Returns file name of the DLL where the class descriptor of specified index has loaded.

void load_plugins ( | const char * szDir )`[virtual]`

| Loads plugins from specified directory (used internally).

void register_class ( | ClassDescC * pClass )`[virtual]`

| Registers a plugins class.

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

- FactoryC.h