25 #ifndef KALDI_UTIL_KALDI_PIPEBUF_H_ 26 #define KALDI_UTIL_KALDI_PIPEBUF_H_ 29 #if !defined(_LIBCPP_VERSION) // libc++ 43 #elif defined(_LIBCPP_VERSION) // libc++ 44 template<
class CharType,
class Traits = std::
char_traits<CharType> >
45 class basic_pipebuf :
public basic_filebuf<CharType, Traits> {
47 typedef basic_pipebuf<CharType, Traits>
ThisType;
51 : basic_filebuf<CharType, Traits>() {
52 this->open(fptr, mode);
53 if (!this->is_open()) {
61 template<
class CharType,
class Traits = std::
char_traits<CharType> >
69 this->_M_file.sys_open(fptr, mode);
70 if (!this->is_open()) {
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);
87 #endif // KALDI_UTIL_KALDI_PIPEBUF_H_ This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
basic_pipebuf(FILE *fptr, std::ios_base::openmode mode)
basic_pipebuf< CharType, Traits > ThisType