Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JROOT::JRootObjectOutput< T, false > Class Template Reference

Implementation of object output using TDirectory::WriteTObject method. More...

#include <JRootFileWriter.hh>

Inheritance diagram for JROOT::JRootObjectOutput< T, false >:
JLANG::JObjectOutput< T >

Public Member Functions

virtual bool put (const T &object) override
 Object output.
 

Protected Member Functions

 JRootObjectOutput ()
 Default constructor.
 
void SetDirectory (TDirectory *dir)
 Set directory.
 

Protected Attributes

TDirectory * directory
 

Detailed Description

template<class T>
class JROOT::JRootObjectOutput< T, false >

Implementation of object output using TDirectory::WriteTObject method.

This class implements the JLANG::JObjectOutput interface.

Definition at line 101 of file JRootFileWriter.hh.

Constructor & Destructor Documentation

◆ JRootObjectOutput()

template<class T >
JROOT::JRootObjectOutput< T, false >::JRootObjectOutput ( )
inlineprotected

Default constructor.

Definition at line 108 of file JRootFileWriter.hh.

108 :
109 directory(NULL)
110 {}

Member Function Documentation

◆ SetDirectory()

template<class T >
void JROOT::JRootObjectOutput< T, false >::SetDirectory ( TDirectory * dir)
inlineprotected

Set directory.

Parameters
dirpointer to directory

Definition at line 118 of file JRootFileWriter.hh.

119 {
120 this->directory = dir;
121 }

◆ put()

template<class T >
virtual bool JROOT::JRootObjectOutput< T, false >::put ( const T & object)
inlineoverridevirtual

Object output.

Parameters
objectobject
Returns
true if OK; else false

Implements JLANG::JObjectOutput< T >.

Definition at line 133 of file JRootFileWriter.hh.

134 {
135 if (directory != NULL)
136 return putObject(directory, object);
137 else
138 return false;
139 }
bool putObject(TDirectory &dir, const TObject &object)
Write object to ROOT directory.

Member Data Documentation

◆ directory

template<class T >
TDirectory* JROOT::JRootObjectOutput< T, false >::directory
protected

Definition at line 124 of file JRootFileWriter.hh.


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