jmmt_tools/include/jmmt/FourCCObject.h

21 lines
412 B
C++

#ifndef JMMT_TOOLS_FOURCCOBJECT_H
#define JMMT_TOOLS_FOURCCOBJECT_H
#include <cstdint>
namespace jmmt {
template <class TMagic, TMagic ValidMagic>
struct BasicStructureWithMagic {
using MagicType = TMagic;
constexpr static MagicType TypeMagic = ValidMagic;
};
template <uint32_t ValidMagic>
using FourCCMagic = BasicStructureWithMagic<uint32_t, ValidMagic>;
}
#endif // JMMT_TOOLS_FOURCCOBJECT_H