Image Component Library (ICL)
Public Member Functions | Static Public Member Functions | List of all members
icl::io::pylon::PylonAutoEnv Struct Reference

Utility Structure. More...

#include <PylonUtils.h>

Public Member Functions

ICLIO_API PylonAutoEnv ()
 Initializes Pylon environment if not already done. More...
 
ICLIO_API ~PylonAutoEnv ()
 Terminates Pylon environment when (calls to term) == (calls to init). More...
 

Static Public Member Functions

static ICLIO_API bool initPylonEnv ()
 Initializes the Pylon environment. More...
 
static ICLIO_API bool termPylonEnv ()
 terminates the Pylon environment. More...
 

Detailed Description

Utility Structure.

This struct is used to initialize and terminate the pylon environment. It intializes Pylon on creation and terminates it on destruction. Uses a static counter to ensure initialization only on first and termination on last call.

Constructor & Destructor Documentation

◆ PylonAutoEnv()

ICLIO_API icl::io::pylon::PylonAutoEnv::PylonAutoEnv ( )

Initializes Pylon environment if not already done.

◆ ~PylonAutoEnv()

ICLIO_API icl::io::pylon::PylonAutoEnv::~PylonAutoEnv ( )

Terminates Pylon environment when (calls to term) == (calls to init).

Member Function Documentation

◆ initPylonEnv()

static ICLIO_API bool icl::io::pylon::PylonAutoEnv::initPylonEnv ( )
static

Initializes the Pylon environment.

Returns
whether Pylon::PylonInitialize() actually was called.

◆ termPylonEnv()

static ICLIO_API bool icl::io::pylon::PylonAutoEnv::termPylonEnv ( )
static

terminates the Pylon environment.

Returns
whether Pylon::PylontTerminate() actually was called.

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