mirror of
https://github.com/lubosz/overte.git
synced 2025-04-15 18:48:32 +02:00
Convert hfm::Serializer to use hifi-namespaced types
This commit is contained in:
parent
5b6e2aae5a
commit
93c7578f54
2 changed files with 27 additions and 4 deletions
|
@ -12,16 +12,14 @@
|
|||
#ifndef hifi_HFMSerializer_h
|
||||
#define hifi_HFMSerializer_h
|
||||
|
||||
#include <QVarLengthArray>
|
||||
#include <QVariant>
|
||||
#include <QUrl>
|
||||
#include <shared/HifiTypes.h>
|
||||
|
||||
#include "HFM.h"
|
||||
|
||||
namespace hfm {
|
||||
|
||||
class Serializer {
|
||||
virtual Model::Pointer read(const QByteArray& data, const QVariantHash& mapping, const QUrl& url = QUrl()) = 0;
|
||||
virtual Model::Pointer read(const hifi::ByteArray& data, const hifi::VariantHash& mapping, const hifi::URL& url = hifi::URL()) = 0;
|
||||
};
|
||||
|
||||
};
|
||||
|
|
25
libraries/shared/src/shared/HifiTypes.h
Normal file
25
libraries/shared/src/shared/HifiTypes.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
//
|
||||
// HifiTypes.h
|
||||
// libraries/shared/src/shared
|
||||
//
|
||||
// Created by Sabrina Shanman on 2018/11/12.
|
||||
// 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_HifiTypes_h
|
||||
#define hifi_HifiTypes_h
|
||||
|
||||
#include <QVarLengthArray>
|
||||
#include <QVariant>
|
||||
#include <QUrl>
|
||||
|
||||
namespace hifi {
|
||||
using ByteArray = QByteArray;
|
||||
using VariantHash = QVariantHash;
|
||||
using URL = QUrl;
|
||||
};
|
||||
|
||||
#endif // hifi_HifiTypes_h
|
Loading…
Reference in a new issue