Impact Acquire SDK C++
|
An output stream buffer derived from std::basic_istream used to read from a file on a device. More...
#include <mvIMPACT_acquire_GenICam_FileStream.h>
Public Types | |
typedef IDevFileStreamBuf< CharType, Traits > | filebuf_type |
typedef std::basic_ios< CharType, Traits > | ios_type |
typedef std::basic_istream< CharType, Traits > | istream_type |
Public Member Functions | |
void | close (void) |
Close the file on the device. | |
bool | is_open (void) const |
Determines if a file is open. | |
void | open (mvIMPACT::acquire::Device *pDev, const char *pFileName, std::ios_base::openmode mode=std::ios_base::in) |
Opens a file on the device. | |
filebuf_type * | rdbuf (void) const |
Returns the address of the stored stream buffer. | |
std::streamsize | size (void) const |
Returns the size of the file on the device. | |
An output stream buffer derived from std::basic_istream used to read from a file on a device.
typedef IDevFileStreamBuf<CharType, Traits> filebuf_type |
typedef std::basic_ios<CharType, Traits> ios_type |
typedef std::basic_istream<CharType, Traits> istream_type |
|
inline |
Close the file on the device.
|
inline |
Determines if a file is open.
|
inline |
Opens a file on the device.
The member function calls rdbuf -> open(_Filename, _Mode | ios_base::in). If open fails, the function calls setstate(failbit), which may throw an ios_base::failure exception.
pDev | A pointer to a mvIMPACT::acquire::Device object obtained from a mvIMPACT::acquire::DeviceManager object. |
pFileName | name of the file to open |
mode | open mode |
|
inline |
Returns the address of the stored stream buffer.
|
inline |
Returns the size of the file on the device.