Overte C++ Documentation
ModelFormatRegistry.h
1 //
2 // ModelFormatRegistry.h
3 // libraries/hfm/src/hfm
4 //
5 // Created by Sabrina Shanman on 2018/11/30.
6 // Copyright 2018 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_ModelFormatRegistry_h
13 #define hifi_ModelFormatRegistry_h
14 
15 #include "HFMFormatRegistry.h"
16 
17 #include <DependencyManager.h>
18 
19 class ModelFormatRegistry : public Dependency {
20 public:
21  void addFormat(const hfm::Serializer& serializer);
22  std::shared_ptr<hfm::Serializer> getSerializerForMediaType(const hifi::ByteArray& data, const hifi::URL& url, const std::string& webMediaType) const;
23 
24 protected:
25  hfm::FormatRegistry _hfmFormatRegistry;
26 };
27 
28 #endif // hifi_ModelFormatRegistry_h