29 #ifndef HU_VARADIISTVAN_SCPL_IO_FAILABLE_H
30 #define HU_VARADIISTVAN_SCPL_IO_FAILABLE_H
37 namespace hu {
namespace varadiistvan {
namespace scpl {
namespace io {
91 template <
class Child>
116 errorCode(XPL_NO_ERROR)
151 template <
class Child>
154 return static_cast<const Child*
>(
this)->getFailable().failed();
159 template <
class Child>
162 return static_cast<const Child*
>(
this)->getFailable().getErrorCode();
167 template <
class Child>
170 static_cast<Child*
>(
this)->getFailable().repair();
errorCode_t getErrorCode() const
errorCode_t getErrorCode() const
void setErrorCode(errorCode_t ec)