basic_pipebuf< CharType, Traits > Class Template Reference

#include <kaldi-pipebuf.h>

Inheritance diagram for basic_pipebuf< CharType, Traits >:
Collaboration diagram for basic_pipebuf< CharType, Traits >:

Public Types

typedef basic_pipebuf< CharType, Traits > ThisType
 

Public Member Functions

 basic_pipebuf (FILE *fptr, std::ios_base::openmode mode)
 

Detailed Description

template<class CharType, class Traits = std::char_traits<CharType>>
class kaldi::basic_pipebuf< CharType, Traits >

Definition at line 62 of file kaldi-pipebuf.h.

Member Typedef Documentation

◆ ThisType

typedef basic_pipebuf<CharType, Traits> ThisType

Definition at line 64 of file kaldi-pipebuf.h.

Constructor & Destructor Documentation

◆ basic_pipebuf()

basic_pipebuf ( FILE *  fptr,
std::ios_base::openmode  mode 
)
inline

Definition at line 67 of file kaldi-pipebuf.h.

References KALDI_WARN.

68  : std::basic_filebuf<CharType, Traits>() {
69  this->_M_file.sys_open(fptr, mode);
70  if (!this->is_open()) {
71  KALDI_WARN << "Error initializing pipebuf"; // probably indicates
72  // code error, if the fptr was good.
73  return;
74  }
75  this->_M_mode = mode;
76  this->_M_buf_size = BUFSIZ;
77  this->_M_allocate_internal_buffer();
78  this->_M_reading = false;
79  this->_M_writing = false;
80  this->_M_set_buffer(-1);
81  }
#define KALDI_WARN
Definition: kaldi-error.h:150

The documentation for this class was generated from the following file: