[ox] Remove need for explicit fields count in model system, add ox::String handler to OC

(synced from 2e9b7fe871)
This commit is contained in:
2021-07-24 20:40:11 -05:00
parent 19316c7c19
commit 31403cd379
6 changed files with 93 additions and 7 deletions
+2 -1
View File
@@ -8,6 +8,7 @@
#pragma once
#include <ox/model/fieldcounter.hpp>
#include <ox/model/optype.hpp>
#include <ox/model/types.hpp>
#include <ox/std/byteswap.hpp>
@@ -87,7 +88,7 @@ class MetalClawReader {
StringLength stringLength(const char *name);
template<typename T = std::nullptr_t>
void setTypeInfo(const char *name = T::TypeName, int fields = T::Fields);
void setTypeInfo(const char *name = T::TypeName, int fields = countFields<T>());
/**
* Returns a MetalClawReader to parse a child object.