Streaming of input and output.  
 More...
#include <JFileStream.hh>
Streaming of input and output. 
Definition at line 68 of file JFileStream.hh.
 
◆ int_type [1/2]
◆ int_type [2/2]
◆ streamsize
◆ JFileStream()
Constructor. 
- Parameters
 - 
  
    | in | input file  | 
    | out | output file  | 
    | size | size of internal buffer  | 
  
   
Definition at line 80 of file JFileStream.hh.
 
 
◆ underflow()
  
  
      
        
          | virtual int_type JLANG::JFileInputStreamBuffer::underflow  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinevirtualinherited   | 
  
 
Check underflow. 
This method reads as many bytes as possible.
- Returns
 - first character if OK; else EOF 
 
Definition at line 60 of file JFileStreamBuffer.hh.
   62       if (gptr() >= egptr()) {
 
   64         char* __begin = this->data();
 
   66         if (eback() == __begin) { 
 
   75         const size_t len = 
in.
read(__begin, this->size() - (__begin - this->data()));
 
   78           setg(this->data(), __begin, __begin + len);
 
   80           return traits_type::eof();
 
 
 
 
◆ in_avail()
Check availability of input. 
This method returns true if at least one byte can be read without blocking.
- Parameters
 - 
  
  
 
- Returns
 - true if ready to read; else false 
 
Definition at line 94 of file JFileStreamBuffer.hh.
 
 
◆ overflow()
Check overflow. 
This method writes one byte if possible.
- Parameters
 - 
  
  
 
- Returns
 - c if OK; else EOF 
 
Definition at line 153 of file JFileStreamBuffer.hh.
  155       if (c != traits_type::eof()) {
 
  161         if (
flush() == traits_type::eof()) {
 
  162           return traits_type::eof();
 
 
 
 
◆ sync()
  
  
      
        
          | virtual int JLANG::JFileOutputStreamBuffer::sync  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinevirtualinherited   | 
  
 
 
◆ out_avail()
Check availability of output. 
This method returns true if at least one byte can be written without blocking.
- Parameters
 - 
  
  
 
- Returns
 - true if ready to write; else false 
 
Definition at line 189 of file JFileStreamBuffer.hh.
 
 
◆ flush()
  
  
      
        
          | int JLANG::JFileOutputStreamBuffer::flush  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineprotectedinherited   | 
  
 
Flush internal buffer. 
Definition at line 198 of file JFileStreamBuffer.hh.
  200       const int len = pptr() - pbase();
 
  204         if (
out.
write(this->data(), len) != len) {
 
  205           return traits_type::eof();
 
 
 
 
◆ in
  
  
      
        
          | JFile JLANG::JFileInputStreamBuffer::in | 
         
       
   | 
  
protectedinherited   | 
  
 
 
◆ memory
  
  
      
        
          | std::size_t JLANG::JFileInputStreamBuffer::memory | 
         
       
   | 
  
protectedinherited   | 
  
 
 
◆ out
  
  
      
        
          | JFile JLANG::JFileOutputStreamBuffer::out | 
         
       
   | 
  
protectedinherited   | 
  
 
 
The documentation for this class was generated from the following file: