Binary input based on std::istream.  
 More...
#include <JStreamIO.hh>
Binary input based on std::istream. 
This class implements the JReader interface. 
Definition at line 24 of file JStreamIO.hh.
 
◆ JStreamReader()
  
  
      
        
          | JIO::JStreamReader::JStreamReader  | 
          ( | 
          std::istream & |           __in | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ getStatus()
  
  
      
        
          | virtual bool JIO::JStreamReader::getStatus  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineoverridevirtual   | 
  
 
 
◆ clear()
  
  
      
        
          | virtual void JIO::JStreamReader::clear  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineoverridevirtual   | 
  
 
 
◆ read()
  
  
      
        
          | virtual int JIO::JStreamReader::read  | 
          ( | 
          char * |           buffer,  | 
         
        
           | 
           | 
          const int |           length ) | 
         
       
   | 
  
inlineoverridevirtual   | 
  
 
Read byte array. 
- Parameters
 - 
  
    | buffer | pointer to byte array  | 
    | length | number of bytes  | 
  
   
- Returns
 - number of bytes read 
 
Implements JLANG::JBinaryInput.
Definition at line 65 of file JStreamIO.hh.
   66    { 
   67      in.read(buffer, length); 
 
   68 
   70    }
 
 
 
◆ operator>>() [1/16]
Read serialisable data object. 
- Parameters
 - 
  
    | object | serialisable data object  | 
  
   
- Returns
 - JReader 
 
Definition at line 81 of file JSerialisable.hh.
   82    { 
   83      return object.read(*this); 
   84    }
 
 
 
◆ operator>>() [2/16]
  
  
      
        
          | JReader & JIO::JReader::operator>>  | 
          ( | 
          bool & |           value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ operator>>() [3/16]
  
  
      
        
          | JReader & JIO::JReader::operator>>  | 
          ( | 
          char & |           value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ operator>>() [4/16]
  
  
      
        
          | JReader & JIO::JReader::operator>>  | 
          ( | 
          unsigned char & |           value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Definition at line 89 of file JSerialisable.hh.
   89{ 
read((
char*) &value, 
sizeof(
unsigned char));          
return *
this; }
 
 
 
 
◆ operator>>() [5/16]
  
  
      
        
          | JReader & JIO::JReader::operator>>  | 
          ( | 
          short & |           value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ operator>>() [6/16]
  
  
      
        
          | JReader & JIO::JReader::operator>>  | 
          ( | 
          unsigned short & |           value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Definition at line 91 of file JSerialisable.hh.
   91{ 
read((
char*) &value, 
sizeof(
unsigned short));         
return *
this; }
 
 
 
 
◆ operator>>() [7/16]
  
  
      
        
          | JReader & JIO::JReader::operator>>  | 
          ( | 
          int & |           value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ operator>>() [8/16]
  
  
      
        
          | JReader & JIO::JReader::operator>>  | 
          ( | 
          unsigned int & |           value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Definition at line 93 of file JSerialisable.hh.
   93{ 
read((
char*) &value, 
sizeof(
unsigned int));           
return *
this; }
 
 
 
 
◆ operator>>() [9/16]
  
  
      
        
          | JReader & JIO::JReader::operator>>  | 
          ( | 
          long int & |           value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ operator>>() [10/16]
  
  
      
        
          | JReader & JIO::JReader::operator>>  | 
          ( | 
          unsigned long int & |           value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Definition at line 95 of file JSerialisable.hh.
   95{ 
read((
char*) &value, 
sizeof(
unsigned long int));      
return *
this; }
 
 
 
 
◆ operator>>() [11/16]
  
  
      
        
          | JReader & JIO::JReader::operator>>  | 
          ( | 
          long long int & |           value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Definition at line 96 of file JSerialisable.hh.
   96{ 
read((
char*) &value, 
sizeof(
long long int));          
return *
this; }
 
 
 
 
◆ operator>>() [12/16]
  
  
      
        
          | JReader & JIO::JReader::operator>>  | 
          ( | 
          unsigned long long int & |           value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Definition at line 97 of file JSerialisable.hh.
   97{ 
read((
char*) &value, 
sizeof(
unsigned long long int)); 
return *
this; }
 
 
 
 
◆ operator>>() [13/16]
  
  
      
        
          | JReader & JIO::JReader::operator>>  | 
          ( | 
          float & |           value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ operator>>() [14/16]
  
  
      
        
          | JReader & JIO::JReader::operator>>  | 
          ( | 
          double & |           value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ operator>>() [15/16]
  
  
      
        
          | JReader & JIO::JReader::operator>>  | 
          ( | 
          long double & |           value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ operator>>() [16/16]
Definition at line 101 of file JSerialisable.hh.
  101{ 
return (*
this) >> value.
getID(); }
 
int getID() const
Get identifier.
 
 
 
 
◆ load() [1/2]
Read object. 
- Parameters
 - 
  
  
 
- Returns
 - this reader 
 
Definition at line 110 of file JSerialisable.hh.
  111    {
  112      return object.read(*this);
  113    }
 
 
 
◆ load() [2/2]
template<class T > 
  
  
      
        
          | JReader & JIO::JReader::load  | 
          ( | 
          T & |           object | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Read object. 
- Parameters
 - 
  
  
 
- Returns
 - this reader 
 
Definition at line 123 of file JSerialisable.hh.
  124    {
  125      return *this >> object;
  126    }
 
 
 
◆ operator bool()
  
  
      
        
          | JLANG::JAbstractObjectStatus::operator bool  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Type conversion operator. 
- Returns
 - status of this object 
 
Definition at line 33 of file JAbstractObjectStatus.hh.
   34    {
   36    }
virtual bool getStatus() const =0
Get status of object.
 
 
 
 
◆ operator!()
  
  
      
        
          | bool JLANG::JAbstractObjectStatus::operator!  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ in
  
  
      
        
          | std::istream& JIO::JStreamReader::in | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following file: