split classes into files
This commit is contained in:
22
src/abr.cpp
22
src/abr.cpp
@@ -1,27 +1,7 @@
|
||||
#include "pch.h"
|
||||
#include "abr.h"
|
||||
#include "log.h"
|
||||
|
||||
SerializedStream::Type::Ref SerializedStream::instanciate(const std::string& key)
|
||||
{
|
||||
if (m_ctor_table.find(key) != m_ctor_table.end())
|
||||
return m_ctor_table[key]();
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
std::map<std::string /*key*/, std::function<SerializedStream::Type::Ref()>> SerializedStream::m_ctor_table =
|
||||
{
|
||||
{ "VlLs", []{ return std::make_shared<SerializedStream::List>(); } },
|
||||
{ "TEXT", []{ return std::make_shared<SerializedStream::String>(); } },
|
||||
{ "Objc", []{ return std::make_shared<SerializedStream::Descriptor>(); } },
|
||||
{ "UntF", []{ return std::make_shared<SerializedStream::UnitFloat>(); } },
|
||||
{ "bool", []{ return std::make_shared<SerializedStream::Boolean>(); } },
|
||||
{ "long", []{ return std::make_shared<SerializedStream::Integer>(); } },
|
||||
{ "doub", []{ return std::make_shared<SerializedStream::Double>(); } },
|
||||
{ "enum", []{ return std::make_shared<SerializedStream::Enum>(); } },
|
||||
{ "tdta", []{ return std::make_shared<SerializedStream::RawData>(); } },
|
||||
};
|
||||
|
||||
#include "asset.h"
|
||||
|
||||
bool ABR::section_desc()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user