mvIMPACT Acquire SDK C++
ODevFileStreamBase< CharType, Traits > Class Template Reference

An output stream buffer derived from std::basic_ostream used to write to a file on a device. More...

#include <mvIMPACT_acquire_GenICam_FileStream.h>

Inheritance diagram for ODevFileStreamBase< CharType, Traits >:
[legend]

Public Types

typedef ODevFileStreamBuf< CharType, Traits > filebuf_type
 
typedef std::basic_ios< CharType, Traits > ios_type
 
typedef std::basic_ostream< CharType, Traits > ostream_type
 

Public Member Functions

void close (void)
 Close the file on 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::out|std::ios_base::trunc)
 Open file on device in write mode.
 
filebuf_typerdbuf (void) const
 Returns the address of the stored stream buffer.
 

Detailed Description

template<typename CharType, typename Traits>
class mvIMPACT::acquire::GenICam::ODevFileStreamBase< CharType, Traits >

An output stream buffer derived from std::basic_ostream used to write to a file on a device.

Note
See description of the std::basic_ostream in a STL implementation of your choice to find out more about how to use this object.

Member Typedef Documentation

◆ filebuf_type

typedef ODevFileStreamBuf<CharType, Traits> filebuf_type

◆ ios_type

typedef std::basic_ios<CharType, Traits> ios_type

◆ ostream_type

typedef std::basic_ostream<CharType, Traits> ostream_type

Member Function Documentation

◆ close()

void close ( void  )
inline

Close the file on device.

◆ is_open()

bool is_open ( void  ) const
inline

Determines if a file is open.

Returns
  • true if the file is open
  • false otherwise

◆ open()

void open ( mvIMPACT::acquire::Device pDev,
const char *  pFileName,
std::ios_base::openmode  mode = std::ios_base::out | std::ios_base::trunc 
)
inline

Open file on device in write mode.

Parameters
pDevA pointer to a mvIMPACT::acquire::Device object obtained from a mvIMPACT::acquire::DeviceManager object.
pFileNameName of the file to open
modeFile open mode

◆ rdbuf()

filebuf_type * rdbuf ( void  ) const
inline

Returns the address of the stored stream buffer.

Returns
The address of the stored stream buffer.