2022-08-14 15:32:18 -04:00
|
|
|
#ifndef JMMT_TOOLS_FOURCCOBJECT_H
|
|
|
|
#define JMMT_TOOLS_FOURCCOBJECT_H
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
|
|
namespace jmmt {
|
|
|
|
|
|
|
|
|
|
|
|
template <class TMagic, TMagic ValidMagic>
|
|
|
|
struct BasicStructureWithMagic {
|
2022-08-14 15:46:11 -04:00
|
|
|
using MagicType = TMagic;
|
|
|
|
constexpr static MagicType TypeMagic = ValidMagic;
|
2022-08-14 15:32:18 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
template <uint32_t ValidMagic>
|
|
|
|
using FourCCMagic = BasicStructureWithMagic<uint32_t, ValidMagic>;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // JMMT_TOOLS_FOURCCOBJECT_H
|