camcom 1.0.3
 
Loading...
Searching...
No Matches
camcom::genicam::GErrorGuard Struct Reference

RAII guard for GError* — auto-frees on destruction. More...

#include <aravis_raii.hpp>

Public Member Functions

 GErrorGuard ()=default
 
 ~GErrorGuard ()
 
 GErrorGuard (const GErrorGuard &)=delete
 
GErrorGuardoperator= (const GErrorGuard &)=delete
 
GError ** ptr ()
 Pass to Aravis functions expecting GError**.
 
 operator bool () const
 True if an error is set.
 
std::string message () const
 Extract error message (empty if no error)
 

Public Attributes

GErrorerror {nullptr}
 

Detailed Description

RAII guard for GError* — auto-frees on destruction.

Constructor & Destructor Documentation

◆ GErrorGuard() [1/2]

camcom::genicam::GErrorGuard::GErrorGuard ( )
default

◆ ~GErrorGuard()

camcom::genicam::GErrorGuard::~GErrorGuard ( )

◆ GErrorGuard() [2/2]

camcom::genicam::GErrorGuard::GErrorGuard ( const GErrorGuard & )
delete

Member Function Documentation

◆ message()

std::string camcom::genicam::GErrorGuard::message ( ) const

Extract error message (empty if no error)

◆ operator bool()

camcom::genicam::GErrorGuard::operator bool ( ) const
inlineexplicit

True if an error is set.

◆ operator=()

GErrorGuard & camcom::genicam::GErrorGuard::operator= ( const GErrorGuard & )
delete

◆ ptr()

GError ** camcom::genicam::GErrorGuard::ptr ( )
inline

Pass to Aravis functions expecting GError**.

Member Data Documentation

◆ error

GError* camcom::genicam::GErrorGuard::error {nullptr}

The documentation for this struct was generated from the following files: