All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members
Pylon::PylonAutoInitTerm Class Reference

Helper class to automagically call PylonInitialize and PylonTerminate in constructor and destructor. More...

#include <pylon/PylonBase.h>

Detailed Description

Helper class to automagically call PylonInitialize and PylonTerminate in constructor and destructor.

// ...
using namespace Pylon;
int main(int argc, char* argv[])
{
PylonAutoInitTerm autoInitTerm;
// Get the transport layer factory
// Get all attached cameras and exit application if no camera is found
if ( 0 == TlFactory.EnumerateDevices( devices ) )
{
cerr << "No camera present!" << endl;
return 1;
}
else
{
// do something with devices ...
//...
}
return 0;
} // When leaving the main function, the destructor of the PylonAutoInitTerm object will be called
// and it will in turn call PylonTerminate.

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

pylon 5.0.5
Copyright © 2006-2016 Basler AG (Thu Aug 11 2016 18:01:28)