Overte C++ Documentation
EntityDynamicFactoryInterface.h
1 //
2 // EntityDynamicFactoryInterface.cpp
3 // libraries/entities/src
4 //
5 // Created by Seth Alves on 2015-6-2
6 // Copyright 2015 High Fidelity, Inc.
7 //
8 // Distributed under the Apache License, Version 2.0.
9 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10 //
11 
12 #ifndef hifi_EntityDynamicFactoryInterface_h
13 #define hifi_EntityDynamicFactoryInterface_h
14 
15 #include <DependencyManager.h>
16 
17 #include "EntityDynamicInterface.h"
18 
19 class EntityDynamicFactoryInterface : public QObject, public Dependency {
20  Q_OBJECT
21  SINGLETON_DEPENDENCY
22 
23  public:
24  EntityDynamicFactoryInterface() { }
25  virtual ~EntityDynamicFactoryInterface() { }
26  virtual EntityDynamicPointer factory(EntityDynamicType type,
27  const QUuid& id,
28  EntityItemPointer ownerEntity,
29  QVariantMap arguments) { assert(false); return nullptr; }
30  virtual EntityDynamicPointer factoryBA(EntityItemPointer ownerEntity,
31  QByteArray data) { assert(false); return nullptr; }
32 };
33 
34 #endif // hifi_EntityDynamicFactoryInterface_h