|
Impact Acquire SDK C++
|
Adapter between the std::iostreambuf and the SFNC Features representing the device file system. More...
#include <mvIMPACT_acquire_GenICam_FileStream.h>
Public Member Functions | |
| bool | attach (mvIMPACT::acquire::Device *pDev, const std::string &settingName="Base") |
| Attach file protocol adapter to the corresponding properties. | |
| bool | closeFile (const char *pFileName) |
| Close a file on the device. | |
| FileProtocolAdapter () | |
| Constructor. | |
| int64_type | getBufSize (const char *pFileName, std::ios_base::openmode mode) |
| Fetch max FileAccessBuffer length for a file. | |
| bool | openFile (const char *pFileName, std::ios_base::openmode mode) |
| Open a file on the device. | |
| std::streamsize | read (char *pBuf, int64_type offs, std::streamsize len, const char *pFileName) |
| Read data from the device into a buffer. | |
| std::streamsize | size (void) const |
| Fetch the size of the file currently selected on the device. | |
| std::streamsize | write (const char *pBuf, int64_type offs, int64_type len, const char *pFileName) |
| Writes data into a file. | |
Adapter between the std::iostreambuf and the SFNC Features representing the device file system.
The adapter assumes, that the features provide stdio file access compatible semantic
|
inlineexplicit |
Constructor.
|
inline |
Attach file protocol adapter to the corresponding properties.
| pDev | A pointer to a mvIMPACT::acquire::Device object obtained from a mvIMPACT::acquire::DeviceManager object. |
| settingName | The name of the driver internal setting to access with this instance. A list of valid setting names can be obtained by a call to mvIMPACT::acquire::FunctionInterface::getAvailableSettings, new settings can be created with the function mvIMPACT::acquire::FunctionInterface::createSetting |
|
inline |
Close a file on the device.
| pFileName | Name of the file to open. The file name must exist in the Enumeration FileSelector |
|
inline |
Fetch max FileAccessBuffer length for a file.
| pFileName | Name of the file to open. The file name must exist in the Enumeration FileSelector |
| mode | mode to open the file. The mode must exist in the Enumeration FileOpenMode |
|
inline |
Open a file on the device.
| pFileName | Name of the file to open. The file name must exist in the Enumeration FileSelector |
| mode | mode to open the file. The mode must exist in the Enumeration FileOpenMode |
|
inline |
Read data from the device into a buffer.
| pBuf | Target buffer |
| offs | Offset in the device file to read from |
| len | Number of bytes to read |
| pFileName | Name of the file to write into The file name must exist in the Enumeration FileSelector |
|
inline |
Fetch the size of the file currently selected on the device.
|
inline |
Writes data into a file.
| pBuf | Source buffer |
| offs | Offset into the device file |
| len | Number of bytes to write |
| pFileName | Name of the file to write into The file name must exist in the Enumeration FileSelector |