Very Simple Cross-Platform Library
Public Member Functions | List of all members
hu::varadiistvan::scpl::io::FailableReference< Child > Class Template Reference

#include <Failable.h>

Public Member Functions

bool failed () const
 
errorCode_t getErrorCode () const
 
void repair ()
 

Detailed Description

template<class Child>
class hu::varadiistvan::scpl::io::FailableReference< Child >

An object that references another failable object and fails together with that object.

The Child class should contain a function named getFailable() which returns the failable object.

Definition at line 92 of file Failable.h.

Member Function Documentation

◆ failed()

template<class Child >
bool hu::varadiistvan::scpl::io::FailableReference< Child >::failed
inline

Indicate if the referenced object has failed.

Definition at line 152 of file Failable.h.

◆ getErrorCode()

template<class Child >
errorCode_t hu::varadiistvan::scpl::io::FailableReference< Child >::getErrorCode
inline

Get the error code from the referenced object.

Definition at line 160 of file Failable.h.

◆ repair()

template<class Child >
void hu::varadiistvan::scpl::io::FailableReference< Child >::repair
inline

Discard the error code of the referenced object.

Definition at line 168 of file Failable.h.


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