EasyManua.ls Logo

Balluff MATRIX VISION mvBlueNAOS - Page 199

Balluff MATRIX VISION mvBlueNAOS
292 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
1.18 Use Cases 191
A write access then will look like:
const string fileNameDevice("UserFile");
// uploading a file
mvIMPACT::acquire::GenICam::ODevFileStream file;
file.open( pDev, fileNameDevice.c_str() );
if( !file.fail() )
{
// Handle the successful upload.
}
else
{
// Handle the error.
}
A read access will look like:
const string fileNameDevice("UserFile");
// downloading a file works in a similar way
mvIMPACT::acquire::GenICam::IDevFileStream file;
file.open( pDev, fileNameDevice.c_str() );
if( !file.fail() )
{
// Handle the successful upload.
}
else
{
// Handle the error.
}
You can find a detailed code example in the C++ API manual in the documentation of the classes mvIMPACT←-
::acquire::GenICam::IDevFileStream and mvIMPACT::acquire::GenICam::ODevFileStream
MATRIX VISION GmbH

Table of Contents