mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-21 08:35:43 +00:00
28 lines
597 B
C++
28 lines
597 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <exception>
|
|
|
|
#include "Utils/ClassUtils.h"
|
|
#include "StructuredDataDef/CommonStructuredDataDef.h"
|
|
|
|
namespace sdd
|
|
{
|
|
class SizeCalculationException final : std::exception
|
|
{
|
|
std::string m_message;
|
|
|
|
public:
|
|
explicit SizeCalculationException(std::string message);
|
|
|
|
_NODISCARD const std::string& Message() const;
|
|
_NODISCARD char const* what() const override;
|
|
};
|
|
|
|
class StructuredDataDefSizeCalculator
|
|
{
|
|
public:
|
|
static void CalculateSizesAndOffsetsForDef(CommonStructuredDataDef& def);
|
|
};
|
|
}
|