2015-06-16 02:29:53 +00:00
|
|
|
#include <Athena/DNA.hpp>
|
2015-06-15 02:49:02 +00:00
|
|
|
|
|
|
|
using namespace Athena;
|
2015-06-22 22:52:09 +00:00
|
|
|
typedef io::DNA<BigEndian> BigDNA;
|
2015-06-15 02:49:02 +00:00
|
|
|
|
2015-06-22 22:52:09 +00:00
|
|
|
struct TESTSubFile : public BigDNA
|
2015-06-17 00:25:48 +00:00
|
|
|
{
|
|
|
|
DECL_DNA
|
|
|
|
Value<atUint32> sub1;
|
|
|
|
Value<atUint32> sub2;
|
|
|
|
};
|
|
|
|
|
2015-06-22 22:52:09 +00:00
|
|
|
struct TESTSubClassFile : public TESTSubFile
|
|
|
|
{
|
|
|
|
DECL_DNA
|
|
|
|
Value<atUint32> sub3;
|
|
|
|
Value<atUint32> sub4;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct TESTSubSubClassFile : public TESTSubClassFile
|
|
|
|
{
|
|
|
|
DECL_DNA
|
|
|
|
Value<atUint32> sub5;
|
|
|
|
Value<atUint32> sub6;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct TESTFile : public BigDNA
|
2015-06-15 02:49:02 +00:00
|
|
|
{
|
2015-06-17 00:25:48 +00:00
|
|
|
DECL_DNA
|
2015-06-18 07:32:11 +00:00
|
|
|
Value<bool> varBool;
|
2015-06-16 02:29:53 +00:00
|
|
|
Value<atUint32> var32;
|
2015-06-16 07:11:56 +00:00
|
|
|
Value<atUint16> var16;
|
2015-06-17 00:25:48 +00:00
|
|
|
Value<atVec3f> vec3;
|
|
|
|
Value<atVec4f> vec4;
|
|
|
|
|
2015-06-22 22:52:09 +00:00
|
|
|
struct TESTNestedSubFile : public BigDNA
|
2015-06-17 00:25:48 +00:00
|
|
|
{
|
|
|
|
DECL_DNA
|
|
|
|
Value<atUint32> nestSub1;
|
|
|
|
Value<atUint32> nestSub2;
|
2015-06-22 22:52:09 +00:00
|
|
|
} nestedSubFile;
|
2015-06-17 00:25:48 +00:00
|
|
|
|
2015-06-22 22:52:09 +00:00
|
|
|
TESTSubFile subFile;
|
2015-06-17 00:25:48 +00:00
|
|
|
|
2015-06-19 02:55:05 +00:00
|
|
|
Align<4> align;
|
|
|
|
|
2015-06-22 22:52:09 +00:00
|
|
|
struct TESTExplicitSubFile : public BigDNA
|
|
|
|
{
|
|
|
|
DECL_EXPLICIT_DNA
|
|
|
|
Value<atUint32> explSub1;
|
|
|
|
Value<atUint32> explSub2;
|
|
|
|
} explSubFile;
|
|
|
|
|
2015-06-19 02:55:05 +00:00
|
|
|
Value<atUint32> arrCount[2];
|
2015-06-22 22:52:09 +00:00
|
|
|
Vector<atUint32, DNA_COUNT(arrCount[0])> array;
|
2015-06-19 02:55:05 +00:00
|
|
|
|
|
|
|
Seek<21, Current> seek;
|
2015-06-18 07:32:11 +00:00
|
|
|
|
|
|
|
Value<atUint32> arrCount2;
|
2015-06-22 22:52:09 +00:00
|
|
|
Vector<TESTSubFile, DNA_COUNT(arrCount[1] + arrCount2)> array2;
|
2015-06-19 02:55:05 +00:00
|
|
|
|
|
|
|
Value<atUint32> bufSz;
|
2015-06-22 22:52:09 +00:00
|
|
|
Buffer<DNA_COUNT(bufSz)> buf;
|
2015-06-19 02:55:05 +00:00
|
|
|
|
|
|
|
String<32> str;
|
|
|
|
WString<64> wstr;
|
|
|
|
UTF8<> utf8str[5];
|
2015-06-15 02:49:02 +00:00
|
|
|
};
|
2015-06-16 07:11:56 +00:00
|
|
|
|