Add OpType for Metal Claw operators

This commit is contained in:
2017-10-15 00:55:25 -05:00
parent 1cf6164358
commit 009cf99225
3 changed files with 28 additions and 0 deletions
+5
View File
@@ -11,6 +11,7 @@
#include <ox/std/byteswap.hpp>
#include <ox/std/string.hpp>
#include "err.hpp"
#include "optype.hpp"
#include "presencemask.hpp"
namespace ox {
@@ -51,6 +52,10 @@ class MetalClawReader {
void setFields(int fields);
OpType opType() {
return OpType::Read;
}
private:
template<typename I>
int readInteger(I *val);
+5
View File
@@ -11,6 +11,7 @@
#include <ox/std/string.hpp>
#include <ox/std/types.hpp>
#include "err.hpp"
#include "optype.hpp"
#include "presencemask.hpp"
namespace ox {
@@ -53,6 +54,10 @@ class MetalClawWriter {
size_t size();
OpType opType() {
return OpType::Write;
}
private:
template<typename I>
int appendInteger(I val);