delete accidentally added "generated" file

This commit is contained in:
Nithin Pranesh 2021-11-22 05:07:42 -05:00
parent 57f9c69e9b
commit 7db19c5ff7
1 changed files with 0 additions and 67 deletions

View File

@ -1,67 +0,0 @@
// This file was generated by generate-gltf-classes.
// DO NOT EDIT THIS FILE!
#include "ImageJsonHandler.h"
#include "CesiumGltf/Image.h"
#include <cassert>
#include <string>
using namespace CesiumGltf;
ImageJsonHandler::ImageJsonHandler(const ReaderContext& context) noexcept
: NamedObjectJsonHandler(context), _uri(), _mimeType(), _bufferView() {}
void ImageJsonHandler::reset(
CesiumJsonReader::IJsonHandler* pParentHandler,
Image* pObject) {
NamedObjectJsonHandler::reset(pParentHandler, pObject);
this->_pObject = pObject;
}
CesiumJsonReader::IJsonHandler*
ImageJsonHandler::readObjectKey(const std::string_view& str) {
assert(this->_pObject);
return this->readObjectKeyImage(Image::TypeName, str, *this->_pObject);
}
CesiumJsonReader::IJsonHandler* ImageJsonHandler::readObjectKeyImage(
const std::string& objectType,
const std::string_view& str,
Image& o) {
using namespace std::string_literals;
if ("uri"s == str)
return property("uri", this->_uri, o.uri);
if ("mimeType"s == str)
return property("mimeType", this->_mimeType, o.mimeType);
if ("bufferView"s == str)
return property("bufferView", this->_bufferView, o.bufferView);
return this->readObjectKeyNamedObject(objectType, str, *this->_pObject);
}
void ImageJsonHandler::MimeTypeJsonHandler::reset(
CesiumJsonReader::IJsonHandler* pParent,
Image::MimeType* pEnum) {
JsonHandler::reset(pParent);
this->_pEnum = pEnum;
}
CesiumJsonReader::IJsonHandler*
ImageJsonHandler::MimeTypeJsonHandler::readString(const std::string_view& str) {
using namespace std::string_literals;
assert(this->_pEnum);
if ("image/jpeg"s == str)
*this->_pEnum = Image::MimeType::image_jpeg;
else if ("image/png"s == str)
*this->_pEnum = Image::MimeType::image_png;
else if ("image/ktx2" == str)
*this->_pEnum = Image::MimeType::image_ktx2;
else
return nullptr;
return this->parent();
}