Samchon Framework for CPP  1.0.0
FTFactory.hpp
1 #pragma once
2 #include <samchon/API.hpp>
3 
4 #include <samchon/Map.hpp>
5 #include <samchon/library/XML.hpp>
6 
7 namespace samchon
8 {
9 namespace library
10 {
11  class FTInstance;
12  class FTFolder;
13  class FTFile;
14 
29  class SAMCHON_FRAMEWORK_API FTFactory
30  {
31  protected:
38 
44  int category;
45 
51  std::string member;
52 
61 
62  public:
66  FTFactory();
67  virtual ~FTFactory() = default;
68 
72  virtual auto createFile(FTFolder*, std::shared_ptr<XML>)->FTFile* = 0;
73 
77  void registerInstance(FTInstance*);
78  };
79 };
80 };
Customized std::map.
Definition: Map.hpp:88
An interface of file-tree.
Definition: FTInstance.hpp:22
int category
A categori id.
Definition: FTFactory.hpp:44
std::string member
Account id of a member.
Definition: FTFactory.hpp:51
A Factory and manager for file-tree.
Definition: FTFactory.hpp:29
Map< int, FTInstance * > instanceMap
Map of files.
Definition: FTFactory.hpp:60
int application
An application id.
Definition: FTFactory.hpp:37
Top level namespace of products built from samchon.
Definition: ByteArray.hpp:7