Template specialisation of JDAQFileReader for DAQ compatible data types.  
 More...
#include <JDAQFileReader.hh>
 | 
| static void  | Throw (const bool option) | 
|   | Enable/disable throw option.  More...
  | 
|   | 
| static int  | Throw (const JException &error, const int value=-1) | 
|   | Throw exception or return error.  More...
  | 
|   | 
template<class T>
class JSUPPORT::JDAQFileReader< T, true >
Template specialisation of JDAQFileReader for DAQ compatible data types. 
This class provides for an implementation of the JLANG::JAccessibleObjectIterator interface. It overwrites the method setObject of the JLANG::JAbstractObjectIterator interface so that the desired object is read from the file which may contain also other objects. 
Definition at line 46 of file JDAQFileReader.hh.
 
◆ pointer_type
◆ setObject()
◆ open()
  
  
      
        
          | virtual void JLANG::JAccessibleBinaryInputStream::open  | 
          ( | 
          const char *  | 
          file_name | ) | 
           | 
         
       
   | 
  
inlinevirtualinherited   | 
  
 
 
◆ is_open()
  
  
      
        
          | virtual bool JLANG::JAccessibleInputStream::is_open  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinevirtualinherited   | 
  
 
 
◆ close()
  
  
      
        
          | virtual void JLANG::JAccessibleInputStream::close  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinevirtualinherited   | 
  
 
 
◆ Throw() [1/2]
Enable/disable throw option. 
- Parameters
 - 
  
    | option | true enable; false disable  | 
  
   
Definition at line 37 of file JThrow.hh.
 
 
◆ Throw() [2/2]
Throw exception or return error. 
- Parameters
 - 
  
    | error | exception  | 
    | value | return code  | 
  
   
- Returns
 - return code 
 
Definition at line 50 of file JThrow.hh.
   58       cerr << error.
what() << endl;
 
 
 
 
◆ getStatus()
  
  
      
        
          | virtual bool JIO::JStreamReader::getStatus  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinevirtualinherited   | 
  
 
 
◆ clear()
  
  
      
        
          | virtual void JIO::JStreamReader::clear  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinevirtualinherited   | 
  
 
 
◆ read()
  
  
      
        
          | virtual int JIO::JStreamReader::read  | 
          ( | 
          char *  | 
          buffer,  | 
         
        
           | 
           | 
          const int  | 
          length  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inlinevirtualinherited   | 
  
 
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.
   67       in.read(buffer, length); 
 
 
 
 
◆ operator>>() [1/14]
Read serialisable data object. 
- Parameters
 - 
  
    | object | serialisable data object  | 
  
   
- Returns
 - JReader 
 
Definition at line 80 of file JSerialisable.hh.
   82       return object.read(*
this); 
 
 
 
 
◆ operator>>() [2/14]
  
  
      
        
          | JReader& JIO::JReader::operator>>  | 
          ( | 
          bool &  | 
          value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ operator>>() [3/14]
  
  
      
        
          | JReader& JIO::JReader::operator>>  | 
          ( | 
          char &  | 
          value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ operator>>() [4/14]
  
  
      
        
          | JReader& JIO::JReader::operator>>  | 
          ( | 
          unsigned char &  | 
          value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Definition at line 88 of file JSerialisable.hh.
   88 { 
read((
char*) &value, 
sizeof(
unsigned char));          
return *
this; }
 
 
 
 
◆ operator>>() [5/14]
  
  
      
        
          | JReader& JIO::JReader::operator>>  | 
          ( | 
          short &  | 
          value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ operator>>() [6/14]
  
  
      
        
          | JReader& JIO::JReader::operator>>  | 
          ( | 
          unsigned short &  | 
          value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Definition at line 90 of file JSerialisable.hh.
   90 { 
read((
char*) &value, 
sizeof(
unsigned short));         
return *
this; }
 
 
 
 
◆ operator>>() [7/14]
  
  
      
        
          | JReader& JIO::JReader::operator>>  | 
          ( | 
          int &  | 
          value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ operator>>() [8/14]
  
  
      
        
          | JReader& JIO::JReader::operator>>  | 
          ( | 
          unsigned int &  | 
          value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Definition at line 92 of file JSerialisable.hh.
   92 { 
read((
char*) &value, 
sizeof(
unsigned int));           
return *
this; }
 
 
 
 
◆ operator>>() [9/14]
  
  
      
        
          | JReader& JIO::JReader::operator>>  | 
          ( | 
          long int &  | 
          value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ operator>>() [10/14]
  
  
      
        
          | JReader& JIO::JReader::operator>>  | 
          ( | 
          long long int &  | 
          value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Definition at line 94 of file JSerialisable.hh.
   94 { 
read((
char*) &value, 
sizeof(
long long int));          
return *
this; }
 
 
 
 
◆ operator>>() [11/14]
  
  
      
        
          | JReader& JIO::JReader::operator>>  | 
          ( | 
          unsigned long long int &  | 
          value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Definition at line 95 of file JSerialisable.hh.
   95 { 
read((
char*) &value, 
sizeof(
unsigned long long int)); 
return *
this; }
 
 
 
 
◆ operator>>() [12/14]
  
  
      
        
          | JReader& JIO::JReader::operator>>  | 
          ( | 
          float &  | 
          value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ operator>>() [13/14]
  
  
      
        
          | JReader& JIO::JReader::operator>>  | 
          ( | 
          double &  | 
          value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ operator>>() [14/14]
  
  
      
        
          | JReader& JIO::JReader::operator>>  | 
          ( | 
          long double &  | 
          value | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Definition at line 98 of file JSerialisable.hh.
   98 { 
read((
char*) &value, 
sizeof(
long double));            
return *
this; }
 
 
 
 
◆ load() [1/2]
Read object. 
- Parameters
 - 
  
  
 
- Returns
 - this reader 
 
Definition at line 107 of file JSerialisable.hh.
  109       return object.read(*
this);
 
 
 
 
◆ load() [2/2]
template<class T > 
  
  
      
        
          | JReader& JIO::JReader::load  | 
          ( | 
          T &  | 
          object | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Read object. 
- Parameters
 - 
  
  
 
- Returns
 - this reader 
 
Definition at line 120 of file JSerialisable.hh.
  122       return *
this >> object;
 
 
 
 
◆ operator bool()
  
  
      
        
          | JLANG::JAbstractObjectStatus::operator bool  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ operator!()
  
  
      
        
          | bool JLANG::JAbstractObjectStatus::operator!  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ hasNext()
◆ next()
◆ skip()
Skip items. 
- Parameters
 - 
  
    | ns | number of items to skip  | 
  
   
- Returns
 - number of items skipped 
 
Reimplemented in JLANG::JPipe< T >, JLANG::JPipe< JTail_t >, JLANG::JPipe< JHead_t >, JLANG::JSTDObjectIterator< T >, JLANG::JAbstractObjectReader< T >, JLANG::JAbstractObjectReader< const T >, JLANG::JAbstractObjectReader< JTail_t >, JLANG::JAbstractObjectReader< JHead_t >, JLANG::JAbstractObjectReader< KM3NETDAQ::JDAQEvent >, JLANG::JAbstractObjectReader< JDAQSummaryslice >, and JLANG::JAbstractObjectReader< JTypeList< JDAQEvent, JTypelist_t > >.
Definition at line 88 of file JObjectIterator.hh.
   92       for ( ; i != ns && 
hasNext(); ++i) {
 
 
 
 
◆ preamble
◆ buffer
◆ do_throw
throw option 
Set default throw option to true. 
Definition at line 28 of file JThrow.hh.
 
 
◆ in
  
  
      
        
          | std::istream& JIO::JStreamReader::in | 
         
       
   | 
  
protectedinherited   | 
  
 
 
◆ object
◆ has_next
◆ ps
The documentation for this class was generated from the following file: