Lodestone.Conversion
Loading...
Searching...
No Matches
AbstractObjectIo.h
Go to the documentation of this file.
1//
2// Created by DexrnZacAttack on 2/14/26 using zPc-i2.
3//
4#ifndef LODESTONE_ABSTRACTOBJECTIO_H
5#define LODESTONE_ABSTRACTOBJECTIO_H
7
10
15
16#include <proxy/proxy.h>
17
19
30 template <const common::registry::Identifier *I, typename R, typename W, typename RO, typename WO, typename WR = void>
33 AbstractObjectIO() = default;
34
35 pro::proxy<ReallyAny> baseRead(void *options) const override {
36 return this->read(*static_cast<const RO *>(options));
37 }
38
39 void baseWrite(void *obj, void *options) const override {
40 this->write(static_cast<W>(obj), *static_cast<const WO *>(options));
41 }
42 };
43}
44
45#endif // LODESTONE_ABSTRACTOBJECTIO_H
virtual void write(W obj, WO &options) const=0
Definition FileReaderOptions.h:10
Definition AbstractObjectIo.h:20
void baseWrite(void *obj, void *options) const override
Definition AbstractObjectIo.h:39
pro::proxy< ReallyAny > baseRead(void *options) const override
Definition AbstractObjectIo.h:35