1 #ifndef __JROOTFILEWRITER__ 
    2 #define __JROOTFILEWRITER__ 
   23 namespace JPP { 
using namespace JROOT; }
 
   41   inline bool putObject(TDirectory* dir, 
const T& 
object)
 
   43     return (dir != NULL && dir->WriteTObject(&
object) > 0);
 
   50   template<class T, bool = JTreeParametersAvailable<T>::result>
 
   79       this->directory = dir;
 
   92     virtual bool put(
const T& 
object)
 
   94       if (directory != NULL)
 
  130   template<
class JHead_t, 
class JTail_t>
 
  154   template<
class JHead_t>
 
  186     virtual void open(
const char* file_name)
 
Implementation of object output to ROOT file for single data type. 
 
Template definition of ROOT object output. 
 
void SetDirectory(TDirectory *dir)
Set directory. 
 
JRootFileWriter()
Default constructor. 
 
TFile * getFile() const 
Get file. 
 
Auxiliary class for no type definition. 
 
JTreeWriter object output. 
 
virtual void open(const char *file_name)
Open file. 
 
JRootObjectOutput()
Default constructor. 
 
virtual bool is_open() const =0
Check is device is open. 
 
void SetDirectory(TDirectory *dir)
Set directory. 
 
Forward declarations for definitions of I/O redirect and pipe operators. 
 
virtual void open(const char *file_name)
Open file. 
 
Interface for object output with named access. 
 
virtual bool put(const T &object)
Object output. 
 
bool putObject(TDirectory *dir, const T &object)
Write object to ROOT directory.