SerializerBase Class Reference

CPP API: mio::SerializerBase Class Reference
mio::SerializerBase Class Reference

Base class for implementations of serialization framework concepts. More...

#include <serializer_base.h>

Inheritance diagram for mio::SerializerBase:

Public Member Functions

int flags () const
 Flags that determine the behavior of serialization. More...
 
 SerializerBase (std::shared_ptr< IOStatus > status, int flags)
 Constructor that sets status and flags. More...
 
void set_error (const IOStatus &status)
 Set the current status of serialization. More...
 
void set_flags (int f)
 Set flags that determine the behavior of serialization. More...
 
const IOStatusstatus () const
 The current status of serialization. More...
 

Protected Attributes

int m_flags
 
std::shared_ptr< IOStatusm_status
 

Detailed Description

Base class for implementations of serialization framework concepts.

Stores status and flags. See io.h for documentation of the serialization framework.

Constructor & Destructor Documentation

◆ SerializerBase()

mio::SerializerBase::SerializerBase ( std::shared_ptr< IOStatus status,
int  flags 
)
inline

Constructor that sets status and flags.

Member Function Documentation

◆ flags()

int mio::SerializerBase::flags ( ) const
inline

Flags that determine the behavior of serialization.

See also
mio::IOFlags

◆ set_error()

void mio::SerializerBase::set_error ( const IOStatus status)
inline

Set the current status of serialization.

◆ set_flags()

void mio::SerializerBase::set_flags ( int  f)
inline

Set flags that determine the behavior of serialization.

See also
mio::IOFlags

◆ status()

const IOStatus& mio::SerializerBase::status ( ) const
inline

The current status of serialization.

Contains errors that occurred.

Member Data Documentation

◆ m_flags

int mio::SerializerBase::m_flags
protected

◆ m_status

std::shared_ptr<IOStatus> mio::SerializerBase::m_status
protected