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

Constructor & Destructor Documentation

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

Default constructor.

Definition at line 67 of file JRootFileWriter.hh.

67  :
68  directory(NULL)
69  {}

Member Function Documentation

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

Set directory.

Parameters
dirpointer to directory

Definition at line 77 of file JRootFileWriter.hh.

78  {
79  this->directory = dir;
80  }
template<class T >
virtual bool JROOT::JRootObjectOutput< T, false >::put ( const T &  object)
inlinevirtual

Object output.

Parameters
objectobject
Returns
true if OK; else false

Implements JLANG::JObjectOutput< T >.

Definition at line 92 of file JRootFileWriter.hh.

93  {
94  if (directory != NULL)
95  return putObject(directory, object);
96  else
97  return false;
98  }
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 83 of file JRootFileWriter.hh.


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