#include <JPhotonPathWriter.hh>
|
| virtual bool | put (const T &object)=0 |
| | Object output.
|
| |
| virtual bool | is_open () const =0 |
| | Check is device is open.
|
| |
| virtual bool | is_open () const |
| | Check is file is open.
|
| |
| virtual void | open (const char *file_name)=0 |
| | Open device.
|
| |
| virtual void | open (const char *file_name) override |
| | Open file.
|
| |
| virtual void | close ()=0 |
| | Close device.
|
| |
| virtual void | close () |
| | Close file.
|
| |
|
| static void | Throw (const bool option) |
| | Enable/disable throw option.
|
| |
| static int | Throw (const JException_t &error, const int value=-1) |
| | Throw exception or return error.
|
| |
Definition at line 16 of file JPhotonPathWriter.hh.
◆ put()
Object output.
- Parameters
-
- Returns
- true if OK; else false
Implemented in JLANG::JObjectDemultiplexer< JBase_t, JDerived_t >, JLANG::JObjectDemultiplexer< JBase_t, JHead_t >, JLANG::JObjectDemultiplexer< JBase_t, JTail_t >, JLANG::JObjectDemultiplexer< JBase_t, JTypeList< JHead_t, JTail_t > >, JIO::JWriterObjectOutput< T >, JLANG::JAbstractObjectWriter< T >, JLANG::JNullOutput< T >, JLANG::JStreamObjectOutput< T >, JNET::JControlHostObjectOutput< T >, JROOT::JRootObjectOutput< T, false >, JROOT::JRootStreamObjectOutput< T >, JROOT::JSonObjectOutput< T >, and JROOT::JTreeWriterObjectOutput< T >.
◆ operator<<() [1/17]
Write serialisable data object.
- Parameters
-
| object | serialisable data object |
- Returns
- JWriter
Definition at line 146 of file JSerialisable.hh.
147 {
148 return object.write(*this);
149 }
◆ operator<<() [2/17]
| JWriter & JIO::JWriter::operator<< |
( |
const bool | value | ) |
|
|
inlineinherited |
Definition at line 152 of file JSerialisable.hh.
152{
write((
const char*) &value,
sizeof(
bool));
return *
this; }
virtual int write(const char *buffer, const int length)=0
Write byte array.
◆ operator<<() [3/17]
| JWriter & JIO::JWriter::operator<< |
( |
const char | value | ) |
|
|
inlineinherited |
◆ operator<<() [4/17]
| JWriter & JIO::JWriter::operator<< |
( |
const unsigned char | value | ) |
|
|
inlineinherited |
Definition at line 154 of file JSerialisable.hh.
154{
write((
const char*) &value,
sizeof(
unsigned char));
return *
this; }
◆ operator<<() [5/17]
| JWriter & JIO::JWriter::operator<< |
( |
const short | value | ) |
|
|
inlineinherited |
◆ operator<<() [6/17]
| JWriter & JIO::JWriter::operator<< |
( |
const unsigned short | value | ) |
|
|
inlineinherited |
Definition at line 156 of file JSerialisable.hh.
156{
write((
const char*) &value,
sizeof(
unsigned short));
return *
this; }
◆ operator<<() [7/17]
| JWriter & JIO::JWriter::operator<< |
( |
const int | value | ) |
|
|
inlineinherited |
◆ operator<<() [8/17]
| JWriter & JIO::JWriter::operator<< |
( |
const unsigned int | value | ) |
|
|
inlineinherited |
Definition at line 158 of file JSerialisable.hh.
158{
write((
const char*) &value,
sizeof(
unsigned int));
return *
this; }
◆ operator<<() [9/17]
| JWriter & JIO::JWriter::operator<< |
( |
const long int | value | ) |
|
|
inlineinherited |
◆ operator<<() [10/17]
| JWriter & JIO::JWriter::operator<< |
( |
const unsigned long int | value | ) |
|
|
inlineinherited |
Definition at line 160 of file JSerialisable.hh.
160{
write((
const char*) &value,
sizeof(
unsigned long int));
return *
this; }
◆ operator<<() [11/17]
| JWriter & JIO::JWriter::operator<< |
( |
const long long int | value | ) |
|
|
inlineinherited |
Definition at line 161 of file JSerialisable.hh.
161{
write((
const char*) &value,
sizeof(
long long int));
return *
this; }
◆ operator<<() [12/17]
| JWriter & JIO::JWriter::operator<< |
( |
const unsigned long long int | value | ) |
|
|
inlineinherited |
Definition at line 162 of file JSerialisable.hh.
162{
write((
const char*) &value,
sizeof(
unsigned long long int));
return *
this; }
◆ operator<<() [13/17]
| JWriter & JIO::JWriter::operator<< |
( |
const float | value | ) |
|
|
inlineinherited |
◆ operator<<() [14/17]
| JWriter & JIO::JWriter::operator<< |
( |
const double | value | ) |
|
|
inlineinherited |
◆ operator<<() [15/17]
| JWriter & JIO::JWriter::operator<< |
( |
const long double | value | ) |
|
|
inlineinherited |
◆ operator<<() [16/17]
Definition at line 166 of file JSerialisable.hh.
166{
return (*
this) << value.
getID(); }
int getID() const
Get identifier.
◆ operator<<() [17/17]
Definition at line 167 of file JSerialisable.hh.
Template definition of a multi-dimensional oscillation probability interpolation table.
status_type getStatus(const JType< status_type > &type) const
Get status.
◆ is_open() [1/2]
| virtual bool JLANG::JAccessible::is_open |
( |
| ) |
const |
|
pure virtualinherited |
Check is device is open.
- Returns
- true if open; else false
Implemented in JLANG::JAccessibleInputStream, JLANG::JAccessibleOutputStream, JLANG::JAbstractAccessibleObjectReader< T >, JLANG::JAbstractAccessibleObjectReader< JDAQSummaryslice >, JLANG::JAbstractAccessibleObjectReader< JHead_t >, JLANG::JAbstractAccessibleObjectReader< JTail_t >, JLANG::JAbstractAccessibleObjectReader< KM3NETDAQ::JDAQEvent >, JLANG::JAbstractAccessibleObjectWriter< T >, JLANG::JNullAccess, JLANG::JGZFileReader< T >, JLANG::JGZFileWriter< T >, JROOT::JRootFile, and JROOT::JTreeReaderAccessibleObjectIterator< T >.
◆ is_open() [2/2]
| virtual bool JLANG::JAccessibleOutputStream::is_open |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ open() [1/2]
| virtual void JLANG::JAccessible::open |
( |
const char * | file_name | ) |
|
|
pure virtualinherited |
Open device.
- Parameters
-
Implemented in JLANG::JAccessibleInputStream, JLANG::JAccessibleOutputStream, JLANG::JAbstractAccessibleObjectReader< T >, JLANG::JAbstractAccessibleObjectReader< JDAQSummaryslice >, JLANG::JAbstractAccessibleObjectReader< JHead_t >, JLANG::JAbstractAccessibleObjectReader< JTail_t >, JLANG::JAbstractAccessibleObjectReader< KM3NETDAQ::JDAQEvent >, JLANG::JAbstractAccessibleObjectWriter< T >, JLANG::JNullAccess, JLANG::JAccessibleBinaryInputStream, JLANG::JAccessibleBinaryOutputStream, JLANG::JGZFileReader< T >, JLANG::JGZFileWriter< T >, JROOT::JRootInputFile, JROOT::JRootOutputFile, JROOT::JRootFileReader< T, false >, JROOT::JRootFileReader< T, true >, JROOT::JRootFileWriter< T >, JROOT::JTreeReaderAccessibleObjectIterator< T >, JSUPPORT::JAutoTreeWriter< JKey_t >, JSUPPORT::JAutoTreeWriter< JNET::JTag >, JSUPPORT::JFileRecorder< T >, JSUPPORT::JFileScanner< T >, JSUPPORT::JFileScanner< JDAQSummaryslice >, JSUPPORT::JFileScanner< JHead_t >, JSUPPORT::JFileScanner< JTail_t >, JSUPPORT::JFileScanner< KM3NETDAQ::JDAQEvent >, JSUPPORT::JTreeRecorder< T >, and JSUPPORT::JTreeRecorder< JDAQTimesliceTypes_t >.
◆ open() [2/2]
| virtual void JLANG::JAccessibleBinaryOutputStream::open |
( |
const char * | file_name | ) |
|
|
inlineoverridevirtualinherited |
◆ close() [1/2]
| virtual void JLANG::JAccessible::close |
( |
| ) |
|
|
pure virtualinherited |
Close device.
Implemented in JLANG::JAccessibleInputStream, JLANG::JAccessibleOutputStream, JLANG::JAbstractAccessibleObjectReader< T >, JLANG::JAbstractAccessibleObjectReader< JDAQSummaryslice >, JLANG::JAbstractAccessibleObjectReader< JHead_t >, JLANG::JAbstractAccessibleObjectReader< JTail_t >, JLANG::JAbstractAccessibleObjectReader< KM3NETDAQ::JDAQEvent >, JLANG::JAbstractAccessibleObjectWriter< T >, JLANG::JNullAccess, JLANG::JGZFileReader< T >, JLANG::JGZFileWriter< T >, JROOT::JRootInputFile, JROOT::JRootOutputFile, JROOT::JTreeReaderAccessibleObjectIterator< T >, JSUPPORT::JAutoTreeWriter< JKey_t >, JSUPPORT::JAutoTreeWriter< JNET::JTag >, JSUPPORT::JFileScanner< T >, JSUPPORT::JFileScanner< JDAQSummaryslice >, JSUPPORT::JFileScanner< JHead_t >, JSUPPORT::JFileScanner< JTail_t >, JSUPPORT::JFileScanner< KM3NETDAQ::JDAQEvent >, JSUPPORT::JTreeRecorder< T >, and JSUPPORT::JTreeRecorder< JDAQTimesliceTypes_t >.
◆ close() [2/2]
| virtual void JLANG::JAccessibleOutputStream::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 51 of file JThrow.hh.
◆ getStatus()
| virtual bool JIO::JStreamWriter::getStatus |
( |
| ) |
const |
|
inlineoverridevirtualinherited |
◆ write()
| virtual int JIO::JStreamWriter::write |
( |
const char * | buffer, |
|
|
const int | length ) |
|
inlineoverridevirtualinherited |
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.
114 {
115 out.write(buffer, length);
116
117 return length;
118 }
◆ store() [1/2]
Write object.
- Parameters
-
- Returns
- this writer
Definition at line 176 of file JSerialisable.hh.
177 {
178 return object.write(*this);
179 }
◆ store() [2/2]
template<class T >
| JWriter & JIO::JWriter::store |
( |
const T & | object | ) |
|
|
inlineinherited |
Write object.
- Parameters
-
- Returns
- this writer
Definition at line 189 of file JSerialisable.hh.
190 {
191 return *this << object;
192 }
◆ 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 |
◆ do_throw
throw option
Set default throw option to true.
Definition at line 28 of file JThrow.hh.
◆ out
| std::ostream& JIO::JStreamWriter::out |
|
protectedinherited |
The documentation for this class was generated from the following file: