Streaming of output.  
 More...
#include <JFileStream.hh>
Streaming of output. 
Definition at line 46 of file JFileStream.hh.
 
  
  
      
        
          | JLANG::JFileOutputStream::JFileOutputStream  | 
          ( | 
          const JAbstractFile &  | 
          file,  | 
         
        
           | 
           | 
          const std::size_t  | 
          size = 65536  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
    | file | file  | 
    | size | size of internal buffer  | 
  
   
Definition at line 57 of file JFileStream.hh.
JFileOutputStreamBuffer(const JAbstractFile &file, const std::size_t size=65536)
Constructor. 
 
 
 
 
  
  | 
      
   | 
  
inlineoverridevirtualinherited   | 
  
 
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();
 
int flush()
Flush internal buffer. 
 
 
 
 
  
  
      
        
          | virtual int JLANG::JFileOutputStreamBuffer::sync  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineoverridevirtualinherited   | 
  
 
Synchronise buffer. 
Definition at line 173 of file JFileStreamBuffer.hh.
  175       if (
flush() == traits_type::eof())
 
int flush()
Flush internal buffer. 
 
 
 
 
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.
bool out_avail(JTimeval timeout=JTimeval::min())
Check availability of output. 
 
Auxiliary class for method select. 
 
 
 
 
  
  
      
        
          | 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();
 
virtual int write(const char *buffer, const int length)
Write data to file. 
 
 
 
 
  
  
      
        
          | JFile JLANG::JFileOutputStreamBuffer::out | 
         
       
   | 
  
protectedinherited   | 
  
 
 
The documentation for this class was generated from the following file: