mirror of
https://github.com/overte-org/overte.git
synced 2025-07-24 14:46:47 +02:00
32 lines
767 B
C++
32 lines
767 B
C++
//
|
|
// FBXToJSON.h
|
|
// libraries/model-serializers/src
|
|
//
|
|
// Created by Simon Walton on 5/4/2018.
|
|
// Copyright 2018 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_FBXToJSON_h
|
|
#define hifi_FBXToJSON_h
|
|
|
|
#include <sstream>
|
|
#include <string>
|
|
|
|
// Forward declarations.
|
|
class FBXNode;
|
|
template<typename T> class QVector;
|
|
|
|
class FBXToJSON : public std::ostringstream {
|
|
public:
|
|
FBXToJSON& operator<<(const FBXNode& fbxNode);
|
|
|
|
private:
|
|
template<typename T> FBXToJSON& operator<<(const QVector<T>& arrayProp);
|
|
static std::string stringEscape(const std::string& in);
|
|
int _indentLevel { 0 };
|
|
};
|
|
|
|
#endif // hifi_FBXToJSON_h
|