Jpp  master_rocky-43-ge265d140c
the software that should make you happy
Public Member Functions | Static Public Member Functions | Static Protected Attributes | List of all members
JLANG::JAccessibleObjectOutput< T > Class Template Referenceabstract

Interface for object output with named access. More...

#include <JObjectOutput.hh>

Inheritance diagram for JLANG::JAccessibleObjectOutput< T >:
JLANG::JObjectOutput< T > JLANG::JAccessible JLANG::JThrow< JAccessible > JIO::JBinaryFileWriter< JPhotonPath > JSUPPORT::JTreeRecorder< JDAQTimesliceTypes_t > JIO::JBinaryFileWriter< T > JLANG::JASCIIFileWriter< T > JLANG::JAbstractAccessibleObjectWriter< T > JLANG::JAccessibleObjectWriter< T > JLANG::JGZFileWriter< T > JLANG::JNullAccessibleOutput< T > JROOT::JRootFileWriter< T > JSUPPORT::JDAQFileWriter< T > JSUPPORT::JMonteCarloFileWriter< T > JSUPPORT::JTreeRecorder< T >

Public Member Functions

virtual bool put (const T &object)=0
 Object output. More...
 
virtual bool is_open () const =0
 Check is device is open. More...
 
virtual void open (const char *file_name)=0
 Open device. More...
 
virtual void close ()=0
 Close device. More...
 

Static Public Member Functions

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...
 

Static Protected Attributes

static bool do_throw
 throw option More...
 

Detailed Description

template<class T>
class JLANG::JAccessibleObjectOutput< T >

Interface for object output with named access.

Definition at line 133 of file JObjectOutput.hh.

Member Function Documentation

◆ put()

template<class T >
virtual bool JLANG::JObjectOutput< T >::put ( const T &  object)
pure virtualinherited

◆ is_open()

virtual bool JLANG::JAccessible::is_open ( ) const
pure virtualinherited

◆ open()

virtual void JLANG::JAccessible::open ( const char *  file_name)
pure virtualinherited

◆ close()

virtual void JLANG::JAccessible::close ( )
pure virtualinherited

◆ Throw() [1/2]

static void JLANG::JThrow< JAccessible >::Throw ( const bool  option)
inlinestaticinherited

Enable/disable throw option.

Parameters
optiontrue enable; false disable

Definition at line 37 of file JThrow.hh.

38  {
39  do_throw = option;
40  }
static bool do_throw
throw option
Definition: JThrow.hh:28

◆ Throw() [2/2]

static int JLANG::JThrow< JAccessible >::Throw ( const JException_t &  error,
const int  value = -1 
)
inlinestaticinherited

Throw exception or return error.

Parameters
errorexception
valuereturn code
Returns
return code

Definition at line 51 of file JThrow.hh.

52  {
53  using namespace std;
54 
55  if (do_throw) {
56  throw error;
57  }
58 
59  cerr << error.what() << endl;
60 
61  return value;
62  }
Definition: JSTDTypes.hh:14

Member Data Documentation

◆ do_throw

bool JLANG::JThrow< JAccessible >::do_throw
staticprotectedinherited

throw option

Set default throw option to true.

Definition at line 28 of file JThrow.hh.


The documentation for this class was generated from the following file: