Adapter between the std::iostreambuf and the SFNC Features representing the device filesystem. More...
#include <Filestream.h>
Public Member Functions | |
virtual bool | attach (GENAPI_NAMESPACE::INodeMap *pInterface) |
attach file protocol adapter to nodemap More... | |
virtual bool | closeFile (const char *pFileName) |
close a file on the device More... | |
virtual bool | deleteFile (const char *pFileName) |
Delete the content of the file. More... | |
FileProtocolAdapter () | |
Constructor. More... | |
virtual int64_t | getBufSize (const char *pFileName, std::ios_base::openmode mode) |
fetch max FileAccessBuffer length for a file More... | |
virtual bool | openFile (const char *pFileName, std::ios_base::openmode mode) |
open a file on the device More... | |
virtual GenICam_streamsize | read (char *buf, int64_t offs, GenICam_streamsize len, const char *pFileName) |
read data from the device into a buffer More... | |
virtual GenICam_streamsize | write (const char *buf, int64_t offs, int64_t len, const char *pFileName) |
writes data into a file. More... | |
virtual | ~FileProtocolAdapter () |
Private Member Functions | |
FileProtocolAdapter (const FileProtocolAdapter &) | |
FileProtocolAdapter & | operator= (const FileProtocolAdapter &) |
void | WaitUntilFileOperationExecuteDone (bool Validate=true) |
Private Attributes | |
FileProtocolAdapterImpl * | m_pImpl |
Adapter between the std::iostreambuf and the SFNC Features representing the device filesystem.
The adapter assumes, that the features provide stdio fileaccess compatible semantic
Definition at line 105 of file Filestream.h.
GENAPI_NAMESPACE::FileProtocolAdapter::FileProtocolAdapter | ( | ) |
Constructor.
|
virtual |
|
private |
|
virtual |
attach file protocol adapter to nodemap
pInterface | NodeMap of the device to which the FileProtocolAdapter is attached |
|
virtual |
close a file on the device
pFileName | file name of the file to open. The file name must exist in the Enumeration FileSelector |
|
virtual |
Delete the content of the file.
pFileName | file name of the file to open. The file name must exist in the Enumeration FileSelector |
|
virtual |
fetch max FileAccessBuffer length for a file
pFileName | file 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 |
|
virtual |
open a file on the device
pFileName | file 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 |
|
private |
|
virtual |
read data from the device into a buffer
buf | target buffer |
offs | offset in the device file to read from |
len | count of bytes to read |
pFileName | file name of the file to write into The file name must exist in the Enumeration FileSelector |
|
private |
|
virtual |
writes data into a file.
buf | source buffer |
offs | offset into the device file |
len | count of bytes to write |
pFileName | file name of the file to write into The file name must exist in the Enumeration FileSelector |
|
private |
Definition at line 242 of file Filestream.h.