ZDK
Factory.h
1 #ifndef __FACTORY__
2 #define __FACTORY__
3 
4 #include "PublicInterfaces.h"
5 
6 #ifdef ZDK_DLL
7 #ifdef _WINDLL
8 # define ZDK_API __declspec(dllexport)
9 #else
10 # define ZDK_API __declspec(dllimport)
11 #endif
12 #else
13 # define ZDK_API
14 #endif
15 
16 namespace ZDK
17 {
18 
19 //# @abi(all) documentation
24 class Factory
25 {
26  static ZDK::Shared::Context mContextInstance;
27 
28 public:
29 
30  //# @abi(all) documentation
39  //# @abi(jni|obj_c) property
40  static ZDK_API ZDK::Shared::Context ContextInstance();
41 
42  //# @abi(all) documentation
50  static ZDK_API ZDK::Shared::String String(const char * c_str = nullptr, int size = 0);
51 
52  //# @abi(all) documentation
57  template<typename T>
58  static ZDK_API ZDK::Shared::ItemList<T> CreateList();
59 };
60 
61 } //namespace ZDK
62 
63 #endif //__FACTORY__
ZDK&#39;s main object factory.
Definition: Factory.h:24
static ZDK_API ZDK::Shared::Context ContextInstance()
Gets the ZDK&#39;s context - the main entry point.
static ZDK_API ZDK::Shared::String String(const char *c_str=nullptr, int size=0)
Creates a new string.
static ZDK_API ZDK::Shared::ItemList< T > CreateList()
Creates an empty item list of type T.
Definition: IAccountConfig.h:10