Output file stream buffer.  
 More...
#include <JFileStreamBuffer.hh>
Output file stream buffer. 
Definition at line 114 of file JFileStreamBuffer.hh.
 
  
  
      
        
          | JLANG::JFileOutputStreamBuffer::JFileOutputStreamBuffer  | 
          ( | 
          const JAbstractFile &  | 
          file,  | 
         
        
           | 
           | 
          const std::size_t  | 
          size = 65536  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
    | file | file  | 
    | size | size of internal buffer  | 
  
   
Definition at line 131 of file JFileStreamBuffer.hh.
  139       setp(this->data(), this->data() + this->size() - 1);
 
 
 
 
  
  
      
        
          | virtual JLANG::JFileOutputStreamBuffer::~JFileOutputStreamBuffer  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
Check overflow. 
This method writes one byte if possible.
- Parameters
 - 
  
  
 
- Returns
 - c if OK; else EOF 
 
Definition at line 159 of file JFileStreamBuffer.hh.
  161       if (
c != traits_type::eof()) {
 
  167         if (
flush() == traits_type::eof()) {
 
  168           return traits_type::eof();
 
int flush()
Flush internal buffer. 
 
$WORKDIR ev_configure_dqsimulator txt echo process $DQ_SIMULATOR $i $SOURCE_HOST[$index] csh c(setenv ROOTSYS $ROOTSYS &&source $JPP_DIR/setenv.csh $JPP_DIR &&($DQ_SIMULATOR\-u\$NAME\$\-H\$SERVER\$\-M\$LOGGER\$\-d $DEBUG</dev/null > &/dev/null &))'
 
 
 
 
  
  
      
        
          | virtual int JLANG::JFileOutputStreamBuffer::sync  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineoverridevirtual   | 
  
 
Synchronise buffer. 
Definition at line 179 of file JFileStreamBuffer.hh.
  181       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 195 of file JFileStreamBuffer.hh.
bool out_avail(JTimeval timeout=JTimeval::min())
Check availability of output. 
 
Auxiliary class for method select. 
 
 
 
 
  
  
      
        
          | int JLANG::JFileOutputStreamBuffer::flush  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineprotected   | 
  
 
Flush internal buffer. 
Definition at line 204 of file JFileStreamBuffer.hh.
  206       const int len = pptr() - pbase();
 
  211           return traits_type::eof();
 
then usage $script< detector file >< detectorfile > nIf the range of floors is the first detector file is aligned to the second before the comparison nIn this
 
virtual int write(const char *buffer, const int length)
Write data to file. 
 
 
 
 
  
  
      
        
          | JFile JLANG::JFileOutputStreamBuffer::out | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following file: