Jpp 20.0.0-27-g39925593c-D
the software that should make you happy
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Attributes | List of all members
JLANG::JAccessible Class Referenceabstract

Interface for named access of a device. More...

#include <JAccessible.hh>

Inheritance diagram for JLANG::JAccessible:
JLANG::JThrow< JAccessible > JLANG::JAccessibleObjectIterator< JHead_t > JLANG::JAccessibleObjectIterator< JTail_t > JLANG::JAccessibleObjectIterator< JDAQSummaryslice > JLANG::JAccessibleObjectIterator< KM3NETDAQ::JDAQEvent > JLANG::JAccessibleObjectOutput< JPhotonPath > JLANG::JAccessibleObjectOutput< JDAQTimesliceTypes_t > JLANG::JAccessibleInputStream JLANG::JAccessibleObjectIterator< T > JLANG::JAccessibleObjectOutput< T > JLANG::JAccessibleOutputStream JLANG::JNullAccess JROOT::JRootFile

Public Member Functions

virtual ~JAccessible ()
 Virtual destructor.
 
virtual bool is_open () const =0
 Check is device is open.
 
virtual void open (const char *file_name)=0
 Open device.
 
virtual void close ()=0
 Close device.
 

Static Public Member Functions

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.
 

Protected Member Functions

 JAccessible ()
 Default constructor.
 

Static Protected Attributes

static bool do_throw
 throw option
 

Detailed Description

Interface for named access of a device.

Definition at line 20 of file JAccessible.hh.

Constructor & Destructor Documentation

◆ JAccessible()

JLANG::JAccessible::JAccessible ( )
inlineprotected

Default constructor.

Definition at line 27 of file JAccessible.hh.

28 {}

◆ ~JAccessible()

virtual JLANG::JAccessible::~JAccessible ( )
inlinevirtual

Virtual destructor.

Definition at line 35 of file JAccessible.hh.

36 {}

Member Function Documentation

◆ is_open()

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

◆ open()

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

◆ close()

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

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

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

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: