initial atdna commit

This commit is contained in:
Jack Andersen
2015-06-14 16:49:02 -10:00
parent 1ea07c20fb
commit dde8ac1a1c
5 changed files with 265 additions and 1 deletions

30
include/Athena/DNA.hpp Normal file
View File

@@ -0,0 +1,30 @@
#ifndef DNA_HPP
#define DNA_HPP
#include <vector>
namespace Athena
{
namespace io
{
class IStreamReader;
class IStreamWriter;
template <bool bigEndian=true>
struct DNA
{
virtual bool read(IStreamReader& reader)=0;
virtual bool write(IStreamWriter& writer) const=0;
};
template <typename T, bool bigEndian=true>
using DNAValue = T;
template <typename T, bool bigEndian=true>
using DNAVector = std::vector<T>;
}
}
#endif // DNA_HPP