Overte C++ Documentation
FBXToJSON.h
1 //
2 // FBXToJSON.h
3 // libraries/model-serializers/src
4 //
5 // Created by Simon Walton on 5/4/2018.
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_FBXToJSON_h
13 #define hifi_FBXToJSON_h
14 
15 #include <sstream>
16 #include <string>
17 
18 // Forward declarations.
19 class FBXNode;
20 template<typename T> class QVector;
21 
22 class FBXToJSON : public std::ostringstream {
23 public:
24  FBXToJSON& operator<<(const FBXNode& fbxNode);
25 
26 private:
27  template<typename T> FBXToJSON& operator<<(const QVector<T>& arrayProp);
28  static std::string stringEscape(const std::string& in);
29  int _indentLevel { 0 };
30 };
31 
32 #endif // hifi_FBXToJSON_h
A node within an FBX document.
Definition: FBX.h:41