Balluff MATRIX VISION mvBlueNAOS Technical Manual page 199

Table of Contents

Advertisement

1.18 Use Cases
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
191

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MATRIX VISION mvBlueNAOS and is the answer not in the manual?

Table of Contents