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 | |
virtual bool | closeFile (const char *pFileName) |
close a file on the device | |
virtual bool | deleteFile (const char *pFileName) |
Delete the content of the file. | |
FileProtocolAdapter () | |
Constructor. | |
virtual int64_t | getBufSize (const char *pFileName, std::ios_base::openmode mode) |
fetch max FileAccessBuffer length for a file | |
virtual bool | openFile (const char *pFileName, std::ios_base::openmode mode) |
open a file on the device | |
virtual GenICam_streamsize | read (char *buf, int64_t offs, GenICam_streamsize len, const char *pFileName) |
read data from the device into a buffer | |
virtual GenICam_streamsize | write (const char *buf, int64_t offs, int64_t len, const char *pFileName) |
writes data into a file. | |
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.
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 104 of file Filestream.h.
Constructor.
virtual GENAPI_NAMESPACE::FileProtocolAdapter::~FileProtocolAdapter | ( | ) | [virtual] |
GENAPI_NAMESPACE::FileProtocolAdapter::FileProtocolAdapter | ( | const FileProtocolAdapter & | ) | [private] |
virtual bool GENAPI_NAMESPACE::FileProtocolAdapter::attach | ( | GENAPI_NAMESPACE::INodeMap * | pInterface | ) | [virtual] |
attach file protocol adapter to nodemap
pInterface | NodeMap of the device to which the FileProtocolAdapter is attached |
virtual bool GENAPI_NAMESPACE::FileProtocolAdapter::closeFile | ( | const char * | pFileName | ) | [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 bool GENAPI_NAMESPACE::FileProtocolAdapter::deleteFile | ( | const char * | pFileName | ) | [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 int64_t GENAPI_NAMESPACE::FileProtocolAdapter::getBufSize | ( | const char * | pFileName, |
std::ios_base::openmode | mode | ||
) | [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 bool GENAPI_NAMESPACE::FileProtocolAdapter::openFile | ( | const char * | pFileName, |
std::ios_base::openmode | mode | ||
) | [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 |
FileProtocolAdapter& GENAPI_NAMESPACE::FileProtocolAdapter::operator= | ( | const FileProtocolAdapter & | ) | [private] |
virtual GenICam_streamsize GENAPI_NAMESPACE::FileProtocolAdapter::read | ( | char * | buf, |
int64_t | offs, | ||
GenICam_streamsize | len, | ||
const char * | pFileName | ||
) | [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 |
void GENAPI_NAMESPACE::FileProtocolAdapter::WaitUntilFileOperationExecuteDone | ( | bool | Validate = true | ) | [private] |
virtual GenICam_streamsize GENAPI_NAMESPACE::FileProtocolAdapter::write | ( | const char * | buf, |
int64_t | offs, | ||
int64_t | len, | ||
const char * | pFileName | ||
) | [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 |
FileProtocolAdapterImpl* GENAPI_NAMESPACE::FileProtocolAdapter::m_pImpl [private] |
Definition at line 241 of file Filestream.h.