AppCore
Loading...
Searching...
No Matches
Functions | Variables
factory.h File Reference
#include "appcore/cardevent/managed_defines.h"
#include "appcore/cardevent/cardevent.h"
Include dependency graph for factory.h:

Go to the source code of this file.

Functions

void AddClass (CardEvent __EDATAPTR)
 
CardEvent __EDATAPTR Clone (long classID)
 
 ~Factory ()
 

Variables

__ECLASS FactoryPr
 
__EPUBLIC __ECLASS Factory
 (Internal) Implementation of factory design pattern. Keeps instances of all known card events and provides them by classID
 

Function Documentation

◆ AddClass()

void Factory::AddClass ( CardEvent __EDATAPTR  addedClass)

Adds class instance to factory

Parameters
pointerto CardEvent instance

◆ Clone()

CardEvent __EDATAPTR Clone ( long  classID)

Returns instance of CardEvent class by its ID

Parameters
classID: long - ID of class to clone

◆ ~Factory()

Factory::~Factory ( )

Variable Documentation

◆ Factory

Factory
Initial value:
{
private:
__ECLASS FactoryPr
Definition factory.h:4
#define __EDATAPTR
Definition managed_defines.h:14

(Internal) Implementation of factory design pattern. Keeps instances of all known card events and provides them by classID

◆ FactoryPr

FactoryPr::FactoryPr