TF++, Miscellaneous classes and modules in C++:

◆ extract_next_char()

char tfxx::fortranio::FortranBinInput::extract_next_char ( )
private

return next element from input stream

return next character from buffer

Definition at line 114 of file fortranio.cc.

References Mistream, Mnremain, read_block_size(), and TFXX_assert.

Referenced by extract_chars(), and finish_block().

115  {
116  char result;
117  TFXX_assert((Mistream.good()),
118  "FortranBinInput: stream is not good upon reading next char");
119  if (Mnremain < 1) { read_block_size(); }
120  Mistream.read(&result, 1);
121  Mnremain--;
122  return(result);
123  }
#define TFXX_assert(C, M)
Check an assertion and report by throwing an exception.
Definition: error.h:175
std::istream & Mistream
The input stream to read from.
Definition: fortranio.h:169
long int Mnremain
Number of bytes still to read from current block.
Definition: fortranio.h:175
void read_block_size()
read next block size
Definition: fortranio.cc:66
Here is the call graph for this function:
Here is the caller graph for this function: