Skip to content

GenApi::ODevFileStreamBase#

More…

Inherits from std::basic_ostream< CharType, Traits >

Public Types#

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

Public Functions#

Name
ODevFileStreamBase()
ODevFileStreamBase(GenApi::INodeMap * pInterface, const char * pFileName, std::ios_base::openmode mode =std::ios_base::out
filebuf_type * rdbuf() const
bool is_open() const
void open(GenApi::INodeMap * pInterface, const char * pFileName, std::ios_base::openmode mode =std::ios_base::out
void close()
Close the file on device.

Detailed Description#

template <typename CharType ,
typename Traits >
class GenApi::ODevFileStreamBase;

Public Types Documentation#

typedef filebuf_type#

typedef ODevFileStreamBuf<CharType, Traits> GenApi::ODevFileStreamBase< CharType, Traits >::filebuf_type;

typedef ios_type#

typedef std::basic_ios<CharType, Traits> GenApi::ODevFileStreamBase< CharType, Traits >::ios_type;

typedef ostream_type#

typedef std::basic_ostream<CharType, Traits> GenApi::ODevFileStreamBase< CharType, Traits >::ostream_type;

Public Functions Documentation#

ODevFileStreamBase#

inline ODevFileStreamBase()

ODevFileStreamBase#

inline ODevFileStreamBase(
    GenApi::INodeMap * pInterface,
    const char * pFileName,
    std::ios_base::openmode mode =std::ios_base::out|std::ios_base::trunc
)

rdbuf#

inline filebuf_type * rdbuf() const

is_open#

inline bool is_open() const

open#

inline void open(
    GenApi::INodeMap * pInterface,
    const char * pFileName,
    std::ios_base::openmode mode =std::ios_base::out|std::ios_base::trunc
)

Open file on device in write mode.

Parameters:

  • pInterface NodeMap of the device to which the FileProtocolAdapter is attached
  • pFileName Name of the file to open
  • mode open mode

close#

inline void close()

Close the file on device.


Updated on 5 July 2022 at 15:30:00