Samchon Framework for CPP
1.0.0
|
A Factory and manager for file-tree. More...
#include <FTFactory.hpp>
Public Member Functions | |
FTFactory () | |
Default Constructor. More... | |
virtual auto | createFile (FTFolder *, std::shared_ptr< XML >) -> FTFile *=0 |
Factory method of a file. More... | |
void | registerInstance (FTInstance *) |
Register file instance to map. More... | |
Protected Attributes | |
int | application |
An application id. More... | |
int | category |
A categori id. More... | |
std::string | member |
Account id of a member. More... | |
Map< int, FTInstance * > | instanceMap |
Map of files. More... | |
A Factory and manager for file-tree.
FTFactory is a class taking a role of creating FTFile instances and managing them by having their direct pointers. FTFactory also has a role of archiving and loading from DB.
Definition at line 29 of file FTFactory.hpp.
FTFactory::FTFactory | ( | ) |
Default Constructor.
Definition at line 12 of file FTFactory.cpp.
|
pure virtual |
Factory method of a file.
Referenced by samchon::library::FTFolder::FTFolder().
void FTFactory::registerInstance | ( | FTInstance * | instance | ) |
Register file instance to map.
Definition at line 16 of file FTFactory.cpp.
References samchon::library::FTInstance::getUID().
Referenced by samchon::library::FTFolder::FTFolder().
|
protected |
An application id.
An enumeration code of an application that managed FTInstance(s) are belonged to.
Definition at line 37 of file FTFactory.hpp.
|
protected |
A categori id.
An enumeration code of a category that managed FTInstance(s) are belonged to.
Definition at line 44 of file FTFactory.hpp.
|
protected |
Account id of a member.
Definition at line 51 of file FTFactory.hpp.
|
protected |