mirror of
https://github.com/libAthena/athena.git
synced 2025-12-09 05:27:50 +00:00
initial atdna commit
This commit is contained in:
30
include/Athena/DNA.hpp
Normal file
30
include/Athena/DNA.hpp
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user