#include <JPhotonPathWriter.hh>
|
static void | Throw (const bool option) |
| Enable/disable throw option. More...
|
|
static int | Throw (const JException_t &error, const int value=-1) |
| Throw exception or return error. More...
|
|
Definition at line 16 of file JPhotonPathWriter.hh.
◆ put()
Object output.
- Parameters
-
- Returns
- true if OK; else false
Implemented in JROOT::JTreeWriterObjectOutput< T >, JROOT::JSonObjectOutput< T >, JROOT::JRootStreamObjectOutput< T >, JROOT::JRootObjectOutput< T, false >, JNET::JControlHostObjectOutput< T >, JLANG::JStreamObjectOutput< T >, JLANG::JNullOutput< T >, JLANG::JAbstractObjectWriter< T >, JIO::JWriterObjectOutput< T >, JNET::JControlHostObjectOutput< JTail_t >, JLANG::JStreamObjectOutput< JTail_t >, JLANG::JNullOutput< JTail_t >, JLANG::JAbstractObjectWriter< JTail_t >, JNET::JControlHostObjectOutput< JHead_t >, JLANG::JStreamObjectOutput< JHead_t >, JLANG::JNullOutput< JHead_t >, JLANG::JAbstractObjectWriter< JHead_t >, JLANG::JObjectDemultiplexer< JBase_t, JTypeList< JHead_t, JTail_t > >, JLANG::JObjectDemultiplexer< JBase_t, JDerived_t >, JLANG::JObjectDemultiplexer< JBase_t, JTail_t >, and JLANG::JObjectDemultiplexer< JBase_t, JHead_t >.
◆ operator<<() [1/16]
Write serialisable data object.
- Parameters
-
object | serialisable data object |
- Returns
- JWriter
Definition at line 144 of file JSerialisable.hh.
146 return object.write(*
this);
◆ operator<<() [2/16]
JWriter& JIO::JWriter::operator<< |
( |
const bool |
value | ) |
|
|
inlineinherited |
Definition at line 150 of file JSerialisable.hh.
150 {
write((
const char*) &value,
sizeof(
bool));
return *
this; }
virtual int write(const char *buffer, const int length)=0
Write byte array.
◆ operator<<() [3/16]
JWriter& JIO::JWriter::operator<< |
( |
const char |
value | ) |
|
|
inlineinherited |
◆ operator<<() [4/16]
JWriter& JIO::JWriter::operator<< |
( |
const unsigned char |
value | ) |
|
|
inlineinherited |
Definition at line 152 of file JSerialisable.hh.
152 {
write((
const char*) &value,
sizeof(
unsigned char));
return *
this; }
◆ operator<<() [5/16]
JWriter& JIO::JWriter::operator<< |
( |
const short |
value | ) |
|
|
inlineinherited |
◆ operator<<() [6/16]
JWriter& JIO::JWriter::operator<< |
( |
const unsigned short |
value | ) |
|
|
inlineinherited |
Definition at line 154 of file JSerialisable.hh.
154 {
write((
const char*) &value,
sizeof(
unsigned short));
return *
this; }
◆ operator<<() [7/16]
JWriter& JIO::JWriter::operator<< |
( |
const int |
value | ) |
|
|
inlineinherited |
◆ operator<<() [8/16]
JWriter& JIO::JWriter::operator<< |
( |
const unsigned int |
value | ) |
|
|
inlineinherited |
Definition at line 156 of file JSerialisable.hh.
156 {
write((
const char*) &value,
sizeof(
unsigned int));
return *
this; }
◆ operator<<() [9/16]
JWriter& JIO::JWriter::operator<< |
( |
const long int |
value | ) |
|
|
inlineinherited |
◆ operator<<() [10/16]
JWriter& JIO::JWriter::operator<< |
( |
const unsigned long int |
value | ) |
|
|
inlineinherited |
Definition at line 158 of file JSerialisable.hh.
158 {
write((
const char*) &value,
sizeof(
unsigned long int));
return *
this; }
◆ operator<<() [11/16]
JWriter& JIO::JWriter::operator<< |
( |
const long long int |
value | ) |
|
|
inlineinherited |
Definition at line 159 of file JSerialisable.hh.
159 {
write((
const char*) &value,
sizeof(
long long int));
return *
this; }
◆ operator<<() [12/16]
JWriter& JIO::JWriter::operator<< |
( |
const unsigned long long int |
value | ) |
|
|
inlineinherited |
Definition at line 160 of file JSerialisable.hh.
160 {
write((
const char*) &value,
sizeof(
unsigned long long int));
return *
this; }
◆ operator<<() [13/16]
JWriter& JIO::JWriter::operator<< |
( |
const float |
value | ) |
|
|
inlineinherited |
◆ operator<<() [14/16]
JWriter& JIO::JWriter::operator<< |
( |
const double |
value | ) |
|
|
inlineinherited |
◆ operator<<() [15/16]
JWriter& JIO::JWriter::operator<< |
( |
const long double |
value | ) |
|
|
inlineinherited |
Definition at line 163 of file JSerialisable.hh.
163 {
write((
const char*) &value,
sizeof(
long double));
return *
this; }
◆ operator<<() [16/16]
Definition at line 164 of file JSerialisable.hh.
164 {
return (*
this) << value.
getID(); }
int getID() const
Get identifier.
◆ is_open() [1/2]
virtual bool JLANG::JAccessible::is_open |
( |
| ) |
const |
|
pure virtualinherited |
◆ 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 JSUPPORT::JTreeRecorder< T >, JSUPPORT::JTreeRecorder< JDAQTimesliceTypes_t >, JSUPPORT::JFileScanner< T >, JSUPPORT::JFileRecorder< T >, JSUPPORT::JAutoTreeWriter< JKey_t >, JSUPPORT::JAutoTreeWriter< JNET::JTag >, JROOT::JTreeReaderAccessibleObjectIterator< T >, JROOT::JRootFileWriter< T >, JROOT::JRootFileReader< T, true >, JROOT::JRootFileReader< T, false >, JROOT::JRootOutputFile, JROOT::JRootInputFile, JLANG::JGZFileWriter< T >, JLANG::JGZFileReader< T >, JLANG::JAccessibleBinaryOutputStream, JLANG::JAccessibleBinaryInputStream, JLANG::JNullAccess, JLANG::JAbstractAccessibleObjectWriter< T >, JLANG::JAbstractAccessibleObjectReader< T >, JLANG::JAccessibleOutputStream, and JLANG::JAccessibleInputStream.
◆ 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 JSUPPORT::JTreeRecorder< T >, JSUPPORT::JTreeRecorder< JDAQTimesliceTypes_t >, JSUPPORT::JAutoTreeWriter< JKey_t >, JSUPPORT::JAutoTreeWriter< JNET::JTag >, JROOT::JTreeReaderAccessibleObjectIterator< T >, JROOT::JRootOutputFile, JROOT::JRootInputFile, JLANG::JGZFileWriter< T >, JLANG::JGZFileReader< T >, JLANG::JNullAccess, JLANG::JAbstractAccessibleObjectWriter< T >, JLANG::JAbstractAccessibleObjectReader< T >, JLANG::JAccessibleOutputStream, and JLANG::JAccessibleInputStream.
◆ 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.
static bool do_throw
throw option
◆ 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.
59 cerr << error.what() << endl;
◆ 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.
115 out.write(buffer, length);
◆ store() [1/2]
Write object.
- Parameters
-
- Returns
- this writer
Definition at line 173 of file JSerialisable.hh.
175 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 186 of file JSerialisable.hh.
188 return *
this << object;
◆ operator bool()
JLANG::JAbstractObjectStatus::operator bool |
( |
| ) |
const |
|
inlineinherited |
Type conversion operator.
- Returns
- status of this object
Definition at line 33 of file JAbstractObjectStatus.hh.
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: