Jpp - 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 57 of file JRootFileWriter.hh.

Constructor & Destructor Documentation

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

Default constructor.

Definition at line 64 of file JRootFileWriter.hh.

64  :
65  directory(NULL)
66  {}

Member Function Documentation

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

Set directory.

Parameters
dirpointer to directory

Definition at line 74 of file JRootFileWriter.hh.

75  {
76  this->directory = dir;
77  }
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 89 of file JRootFileWriter.hh.

90  {
91  if (directory != NULL)
92  return putObject(directory, object);
93  else
94  return false;
95  }
bool putObject(TDirectory *dir, const T &object)
Write object to ROOT directory.

Member Data Documentation

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

Definition at line 80 of file JRootFileWriter.hh.


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