Binary output based on std::ostream.  
 More...
#include <JStreamIO.hh>
Binary output based on std::ostream. 
This class implements the JWriter interface. 
Definition at line 81 of file JStreamIO.hh.
 
◆ JStreamWriter()
  
  
      
        
          | JIO::JStreamWriter::JStreamWriter  | 
          ( | 
          std::ostream &  | 
          __out | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ getStatus()
  
  
      
        
          | virtual bool JIO::JStreamWriter::getStatus  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
◆ write()
  
  
      
        
          | virtual int JIO::JStreamWriter::write  | 
          ( | 
          const char *  | 
          buffer,  | 
         
        
           | 
           | 
          const int  | 
          length  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inlinevirtual   | 
  
 
Write byte array. 
- Parameters
 - 
  
    | buffer | pointer to byte array  | 
    | length | number of bytes  | 
  
   
- Returns
 - number of bytes written 
 
Implements JLANG::JBinaryOutput.
Definition at line 113 of file JStreamIO.hh.
  115       out.write(buffer, length); 
 
 
 
 
◆ operator<<() [1/15]
Write serialisable data object. 
- Parameters
 - 
  
    | object | serialisable data object  | 
  
   
- Returns
 - JWriter 
 
Definition at line 142 of file JSerialisable.hh.
  144       return object.write(*
this); 
 
 
 
 
◆ operator<<() [2/15]
  
  
      
        
          | JWriter& JIO::JWriter::operator<<  | 
          ( | 
          const bool &  | 
          value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ operator<<() [3/15]
  
  
      
        
          | JWriter& JIO::JWriter::operator<<  | 
          ( | 
          const char &  | 
          value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ operator<<() [4/15]
  
  
      
        
          | JWriter& JIO::JWriter::operator<<  | 
          ( | 
          const unsigned char &  | 
          value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Definition at line 150 of file JSerialisable.hh.
  150 { 
write((
const char*) &value, 
sizeof(
unsigned char));          
return *
this; }
 
 
 
 
◆ operator<<() [5/15]
  
  
      
        
          | JWriter& JIO::JWriter::operator<<  | 
          ( | 
          const short &  | 
          value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ operator<<() [6/15]
  
  
      
        
          | JWriter& JIO::JWriter::operator<<  | 
          ( | 
          const unsigned short &  | 
          value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Definition at line 152 of file JSerialisable.hh.
  152 { 
write((
const char*) &value, 
sizeof(
unsigned short));         
return *
this; }
 
 
 
 
◆ operator<<() [7/15]
  
  
      
        
          | JWriter& JIO::JWriter::operator<<  | 
          ( | 
          const int &  | 
          value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ operator<<() [8/15]
  
  
      
        
          | JWriter& JIO::JWriter::operator<<  | 
          ( | 
          const unsigned int &  | 
          value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Definition at line 154 of file JSerialisable.hh.
  154 { 
write((
const char*) &value, 
sizeof(
unsigned int));           
return *
this; }
 
 
 
 
◆ operator<<() [9/15]
  
  
      
        
          | JWriter& JIO::JWriter::operator<<  | 
          ( | 
          const long int &  | 
          value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ operator<<() [10/15]
  
  
      
        
          | JWriter& JIO::JWriter::operator<<  | 
          ( | 
          const unsigned long int &  | 
          value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Definition at line 156 of file JSerialisable.hh.
  156 { 
write((
const char*) &value, 
sizeof(
unsigned long int));      
return *
this; }
 
 
 
 
◆ operator<<() [11/15]
  
  
      
        
          | JWriter& JIO::JWriter::operator<<  | 
          ( | 
          const long long int &  | 
          value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Definition at line 157 of file JSerialisable.hh.
  157 { 
write((
const char*) &value, 
sizeof(
long long int));          
return *
this; }
 
 
 
 
◆ operator<<() [12/15]
  
  
      
        
          | JWriter& JIO::JWriter::operator<<  | 
          ( | 
          const unsigned long long int &  | 
          value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Definition at line 158 of file JSerialisable.hh.
  158 { 
write((
const char*) &value, 
sizeof(
unsigned long long int)); 
return *
this; }
 
 
 
 
◆ operator<<() [13/15]
  
  
      
        
          | JWriter& JIO::JWriter::operator<<  | 
          ( | 
          const float &  | 
          value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ operator<<() [14/15]
  
  
      
        
          | JWriter& JIO::JWriter::operator<<  | 
          ( | 
          const double &  | 
          value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ operator<<() [15/15]
  
  
      
        
          | JWriter& JIO::JWriter::operator<<  | 
          ( | 
          const long double &  | 
          value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Definition at line 161 of file JSerialisable.hh.
  161 { 
write((
const char*) &value, 
sizeof(
long double));            
return *
this; }
 
 
 
 
◆ store() [1/2]
Write object. 
- Parameters
 - 
  
  
 
- Returns
 - this writer 
 
Definition at line 170 of file JSerialisable.hh.
  172       return object.write(*
this);
 
 
 
 
◆ store() [2/2]
template<class T > 
  
  
      
        
          | JWriter& JIO::JWriter::store  | 
          ( | 
          const T &  | 
          object | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Write object. 
- Parameters
 - 
  
  
 
- Returns
 - this writer 
 
Definition at line 183 of file JSerialisable.hh.
  185       return *
this << object;
 
 
 
 
◆ operator bool()
  
  
      
        
          | JLANG::JAbstractObjectStatus::operator bool  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ operator!()
  
  
      
        
          | bool JLANG::JAbstractObjectStatus::operator!  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ out
  
  
      
        
          | std::ostream& JIO::JStreamWriter::out | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following file: