Lodestone.Conversion
Loading...
Searching...
No Matches
lodestone::conversion::io::AbstractObjectIO< I, R, W, RO, WO, WR > Struct Template Reference

Basic Object IO class. More...

#include <AbstractObjectIo.h>

Inheritance diagram for lodestone::conversion::io::AbstractObjectIO< I, R, W, RO, WO, WR >:
Collaboration diagram for lodestone::conversion::io::AbstractObjectIO< I, R, W, RO, WO, WR >:

Public Member Functions

 AbstractObjectIO ()=default
pro::proxy< ReallyAny > baseRead (void *options) const override
void baseWrite (void *obj, void *options) const override
Public Member Functions inherited from lodestone::conversion::io::IObjectIO
constexpr IObjectIO ()=default
 ~IObjectIO () override=default
Public Member Functions inherited from lodestone::conversion::io::types::ReadableAdapter
virtual ~ReadableAdapter ()=default
Public Member Functions inherited from lodestone::conversion::io::types::WritableAdapter
virtual ~WritableAdapter ()=default
Public Member Functions inherited from lodestone::conversion::io::types::Readable< R, RO >
virtual ~Readable ()=default
virtual R read (RO &options) const=0
Public Member Functions inherited from lodestone::conversion::io::types::Writable< W, WO, void >
virtual ~Writable ()=default
virtual void write (W obj, WO &options) const=0

Additional Inherited Members

Static Public Member Functions inherited from lodestone::common::registry::Identifiable< I >
static constexpr const Identifier * getIdentifier ()

Detailed Description

template<const common::registry::Identifier * I, typename R, typename W, typename RO, typename WO, typename WR = void>
requires lodestone::common::util::concepts::void_or_derived_from_v<options::IOptions, RO> && lodestone::common::util::concepts::void_or_derived_from_v<options::IOptions, WO>
struct lodestone::conversion::io::AbstractObjectIO< I, R, W, RO, WO, WR >

Basic Object IO class.

Template Parameters
IThe identifier of the IO class
RThe return type of the Reader
WThe type to be written out when using the Writer
ROOptions provided to the Reader
WOOptions provided to the Writer
WROptional return type from the Writer

Constructor & Destructor Documentation

◆ AbstractObjectIO()

template<const common::registry::Identifier * I, typename R, typename W, typename RO, typename WO, typename WR = void>
lodestone::conversion::io::AbstractObjectIO< I, R, W, RO, WO, WR >::AbstractObjectIO ( )
default

Member Function Documentation

◆ baseRead()

template<const common::registry::Identifier * I, typename R, typename W, typename RO, typename WO, typename WR = void>
pro::proxy< ReallyAny > lodestone::conversion::io::AbstractObjectIO< I, R, W, RO, WO, WR >::baseRead ( void * options) const
inlineoverridevirtual

Implements lodestone::conversion::io::types::ReadableAdapter.

35 {
36 return this->read(*static_cast<const RO *>(options));
37 }
Basic Object IO class.
Definition AbstractObjectIo.h:32

◆ baseWrite()

template<const common::registry::Identifier * I, typename R, typename W, typename RO, typename WO, typename WR = void>
void lodestone::conversion::io::AbstractObjectIO< I, R, W, RO, WO, WR >::baseWrite ( void * obj,
void * options ) const
inlineoverridevirtual

Implements lodestone::conversion::io::types::WritableAdapter.

39 {
40 this->write(static_cast<W>(obj), *static_cast<const WO *>(options));
41 }
virtual void write(W obj, WO &options) const=0

The documentation for this struct was generated from the following file: