mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
Remove straggler HFMSimpleFormat.cpp
This commit is contained in:
parent
1c9beed44f
commit
ed1684967f
1 changed files with 0 additions and 35 deletions
|
@ -1,35 +0,0 @@
|
|||
//
|
||||
// HFMSimpleFormat.cpp
|
||||
// libraries/hfm/src/hfm
|
||||
//
|
||||
// Created by Sabrina Shanman on 2018/11/30.
|
||||
// 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
|
||||
//
|
||||
|
||||
#include "HFMSimpleFormat.h"
|
||||
|
||||
namespace hfm {
|
||||
template<typename T>
|
||||
std::shared_ptr<Serializer> SimpleFactory<T>::get() {
|
||||
return std::make_shared<T>();
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
SimpleFormat<T>::SimpleFormat(const MIMEType& mimeType) : Format(),
|
||||
_mimeType(mimeType) {
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
void SimpleFormat<T>::registerFormat(FormatRegistry& registry) {
|
||||
_mimeTypeID = registry.registerMIMEType(_mimeType, std::make_unique<SimpleFactory<T>>());
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
void SimpleFormat<T>::unregisterFormat(FormatRegistry& registry) {
|
||||
registry.unregisterMIMEType(_mimeTypeID);
|
||||
_mimeTypeID = hfm::FormatRegistry::INVALID_MIME_TYPE_ID;
|
||||
}
|
||||
};
|
Loading…
Reference in a new issue