NAP
corefactory.h
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4 
5 #pragma once
6 
7 #include <rtti/factory.h>
8 #include <utility/dllexport.h>
9 
10 namespace nap
11 {
12  class Core;
13 
18  class NAPAPI CoreFactory : public rtti::Factory
19  {
20  public:
21  CoreFactory(Core& core);
22 
23  protected:
24  virtual rtti::Object* createDefaultObject(rtti::TypeInfo typeInfo) override;
25 
26  private:
27  Core* mCore = nullptr;
28  };
29 }
nap::CoreFactory
Definition: corefactory.h:18
nap::rtti::Object
Definition: object.h:30
nap::Core
Definition: core.h:82
nap::rtti::Factory
Definition: factory.h:78
nap
Definition: templateapp.h:17
nap::rtti::TypeInfo
rttr::type TypeInfo
Definition: typeinfo.h:140