Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
clara::detail::ResultBase Class Referenceabstract

#include <clara.hpp>

Inheritance diagram for clara::detail::ResultBase:

Public Types

enum  Type { Ok , LogicError , RuntimeError }
 

Protected Member Functions

 ResultBase (Type type)
 
virtual ~ResultBase ()=default
 
virtual void enforceOk () const =0
 

Protected Attributes

Type m_type
 

Detailed Description

Definition at line 520 of file clara.hpp.

Member Enumeration Documentation

◆ Type

Enumerator
Ok 
LogicError 
RuntimeError 

Definition at line 522 of file clara.hpp.

Constructor & Destructor Documentation

◆ ResultBase()

clara::detail::ResultBase::ResultBase ( Type type)
inlineprotected

Definition at line 527 of file clara.hpp.

527: m_type( type ) {}

◆ ~ResultBase()

virtual clara::detail::ResultBase::~ResultBase ( )
protectedvirtualdefault

Member Function Documentation

◆ enforceOk()

virtual void clara::detail::ResultBase::enforceOk ( ) const
protectedpure virtual

Implemented in clara::detail::BasicResult< T >.

Here is the caller graph for this function:

Member Data Documentation

◆ m_type

Type clara::detail::ResultBase::m_type
protected

Definition at line 532 of file clara.hpp.


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