Skip to content

GenApi::IFileProtocolAdapter#

Module: GenICam / GenApi Node Reference Classes

Adapter between the std::iostreambuf and the SFNC Features representing the device filesystem.

#include <GenApi/Filestream.h>

Inherited by GenApi::FileProtocolAdapter

Public Functions#

Name
virtual bool attach(GenApi::INodeMap * pInterface) =0
virtual bool openFile(const char * pFileName, std::ios_base::openmode mode) =0
virtual bool closeFile(const char * pFileName) =0
virtual GenICam_streamsize write(const char * buf, int64_t offs, int64_t len, const char * pFileName) =0
virtual GenICam_streamsize read(char * buf, int64_t offs, GenICam_streamsize len, const char * pFileName) =0
virtual int64_t getBufSize(const char * pFileName, std::ios_base::openmode mode) =0
virtual bool deleteFile(const char * pFileName) =0

Public Functions Documentation#

function attach#

virtual bool attach(
    GenApi::INodeMap * pInterface
) =0

Reimplemented by: GenApi::FileProtocolAdapter::attach

function openFile#

virtual bool openFile(
    const char * pFileName,
    std::ios_base::openmode mode
) =0

Reimplemented by: GenApi::FileProtocolAdapter::openFile

function closeFile#

virtual bool closeFile(
    const char * pFileName
) =0

Reimplemented by: GenApi::FileProtocolAdapter::closeFile

function write#

virtual GenICam_streamsize write(
    const char * buf,
    int64_t offs,
    int64_t len,
    const char * pFileName
) =0

Reimplemented by: GenApi::FileProtocolAdapter::write

function read#

virtual GenICam_streamsize read(
    char * buf,
    int64_t offs,
    GenICam_streamsize len,
    const char * pFileName
) =0

Reimplemented by: GenApi::FileProtocolAdapter::read

function getBufSize#

virtual int64_t getBufSize(
    const char * pFileName,
    std::ios_base::openmode mode
) =0

Reimplemented by: GenApi::FileProtocolAdapter::getBufSize

function deleteFile#

virtual bool deleteFile(
    const char * pFileName
) =0

Reimplemented by: GenApi::FileProtocolAdapter::deleteFile