mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-11-09 09:51:58 +00:00
Split InfoString classes into multiple files depending on loading and writing code
This commit is contained in:
1 parent
9e00ad60e7
commit
abcce11b00
36 files changed
+579
-549
No files matched your search
@@ -0,0 +1,15 @@
|
||||
#include "InfoStringToStructConverterBase.h"
|
||||
|
||||
InfoStringToStructConverterBase::InfoStringToStructConverterBase(const InfoString& infoString, void* structure)
|
||||
: m_info_string(infoString),
|
||||
m_structure(structure)
|
||||
{
|
||||
}
|
||||
|
||||
InfoStringToStructConverterBase::~InfoStringToStructConverterBase()
|
||||
= default;
|
||||
|
||||
void InfoStringToStructConverterBase::Convert()
|
||||
{
|
||||
FillStructure();
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include "InfoString/InfoString.h"
|
||||
|
||||
class InfoStringToStructConverterBase
|
||||
{
|
||||
protected:
|
||||
const InfoString& m_info_string;
|
||||
void* m_structure;
|
||||
|
||||
virtual void FillStructure() = 0;
|
||||
|
||||
public:
|
||||
InfoStringToStructConverterBase(const InfoString& infoString, void* structure);
|
||||
virtual ~InfoStringToStructConverterBase();
|
||||
InfoStringToStructConverterBase(const InfoStringToStructConverterBase& other) = delete;
|
||||
InfoStringToStructConverterBase(InfoStringToStructConverterBase&& other) noexcept = delete;
|
||||
InfoStringToStructConverterBase& operator=(const InfoStringToStructConverterBase& other) = delete;
|
||||
InfoStringToStructConverterBase& operator=(InfoStringToStructConverterBase&& other) noexcept = delete;
|
||||
|
||||
void Convert();
|
||||
};
|
||||
Reference in new issue
Block a user