Jpp  15.0.4
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
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. More...
 

Protected Member Functions

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

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

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

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

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: