iceoryx2
C++ Bindings
Loading...
Searching...
No Matches
iox2::legacy::er::Violation Class Reference

#include <violation.hpp>

Public Member Functions

 Violation (ViolationErrorCode code)
 Violation (ErrorCode code)
 Violation (ErrorCode code, ModuleId module)
ErrorCode code () const
ModuleId module () const
const char * name () const
bool operator== (const Violation &rhs) const
bool operator!= (const Violation &rhs) const

Static Public Member Functions

static const char * moduleName ()
static Violation createAssertViolation ()
static Violation createEnforceViolation ()

Detailed Description

Definition at line 39 of file violation.hpp.

Constructor & Destructor Documentation

◆ Violation() [1/3]

iox2::legacy::er::Violation::Violation ( ViolationErrorCode code)
inlineexplicit

Definition at line 41 of file violation.hpp.

References code().

Referenced by createAssertViolation(), createEnforceViolation(), operator!=(), and operator==().

◆ Violation() [2/3]

iox2::legacy::er::Violation::Violation ( ErrorCode code)
inlineexplicit

Definition at line 45 of file violation.hpp.

References code().

◆ Violation() [3/3]

iox2::legacy::er::Violation::Violation ( ErrorCode code,
ModuleId module )
inline

Definition at line 49 of file violation.hpp.

References code(), and module().

Member Function Documentation

◆ code()

ErrorCode iox2::legacy::er::Violation::code ( ) const
inline

◆ createAssertViolation()

Violation iox2::legacy::er::Violation::createAssertViolation ( )
inlinestatic

Definition at line 84 of file violation.hpp.

References iox2::legacy::er::ASSERT_VIOLATION, and Violation().

◆ createEnforceViolation()

Violation iox2::legacy::er::Violation::createEnforceViolation ( )
inlinestatic

Definition at line 88 of file violation.hpp.

References iox2::legacy::er::ENFORCE_VIOLATION, and Violation().

◆ module()

ModuleId iox2::legacy::er::Violation::module ( ) const
inline

Definition at line 58 of file violation.hpp.

Referenced by Violation().

◆ moduleName()

const char * iox2::legacy::er::Violation::moduleName ( )
inlinestatic

Definition at line 72 of file violation.hpp.

◆ name()

const char * iox2::legacy::er::Violation::name ( ) const
inline

◆ operator!=()

bool iox2::legacy::er::Violation::operator!= ( const Violation & rhs) const
inline

Definition at line 80 of file violation.hpp.

References Violation().

◆ operator==()

bool iox2::legacy::er::Violation::operator== ( const Violation & rhs) const
inline

Definition at line 76 of file violation.hpp.

References Violation().


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