[ox] Make setTypeInfo functions in model handlers consistent

This commit is contained in:
2022-12-01 00:09:05 -06:00
parent 50e2fadcd1
commit 593a57a0ce
6 changed files with 15 additions and 13 deletions

View File

@@ -58,7 +58,9 @@ class Preloader: public ModelHandlerBase<Preloader<PlatSpec>> {
constexpr static ox::Result<ox::UniquePtr<Preloader>> make(ox::ios_base::seekdir anchor = ox::ios_base::cur,
std::size_t sz = 0) noexcept;
constexpr void setTypeInfo(CRStringView, int, const ox::Vector<String>& = {}, int = 0) noexcept {}
template<typename T>
constexpr void setTypeInfo(const char* = T::TypeName, int = T::TypeVersion,
const Vector<String>& = {}, int = ModelFieldCount_v<T>) noexcept {}
template<typename U, bool force>
constexpr ox::Error field(CRStringView, const ox::UnionView<U, force> val) noexcept;