Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TGo4ExportManager Class Reference

This class manages all export and import conversions of objects to/from different file formats like ascii, radware, etc. More...

#include <TGo4ExportManager.h>

List of all members.

Public Methods

 TGo4ExportManager ()
 TGo4ExportManager (const Text_t *name)
virtual ~TGo4ExportManager ()
void Export (TObject *ob, Go4Export_t format)
 Conversion of object into selected file format in working dir. More...

void Export (TObject *ob)
 Treat all general objects. More...

void Export (TH1 *histo)
 Conversion of histogram into filter format file. More...

void Export (TGraph *graph)
 Conversion of graph into filter file. More...

void Export (TFolder *fold)
 Recursive conversion of all objects in fold specified filter files. More...

void Export (TDirectory *dir)
 Recursive conversion of all objects in directory into filter format. More...

void Export (TCollection *dir)
 Recursive conversion of all objects in collection into ascii files. More...

void SetFilter (Go4Export_t format)
void SetCurrentDir (const Text_t *dir=0)
void SetStartDir (const Text_t *dir=0)
void SetOutFile (const Text_t *filename=0)
void SetOutFileComment (const Text_t *comment=0)

Private Methods

void ExportASCII (TH1 *histo, Bool_t channels=kTRUE)
 Conversion of histogram into ascii file. More...

void ExportASCII (TGraph *graph)
 Conversion of graph into ascii file. More...

void ExportRadware (TH1 *histo)
 Conversion of histogram into radware file. More...

void ExportRadware (TH2 *histo)
 Conversion of 2d histogram into radware file. More...

void ExportRadware (TGraph *graph)
 Conversion of graph into radware file. More...

void ExportRoot (TObject *ob)
 Store object into root file. More...


Private Attributes

TString fxStartDir
 name of the start (top level) directory. More...

TString fxCurrentDir
 name of the current working directory. More...

TString fxOutFile
 Name of the output file. More...

TString fxOutFileComment
 Comment (title) of the output file. More...

Go4Export_t fiFilter
 Active filter format. More...


Detailed Description

This class manages all export and import conversions of objects to/from different file formats like ascii, radware, etc.

Author:
J. Adamczewski
Since:
05-Apr-2004

Definition at line 45 of file TGo4ExportManager.h.


Constructor & Destructor Documentation

TGo4ExportManager::TGo4ExportManager  
 

Definition at line 39 of file TGo4ExportManager.cxx.

References GO4EX_ROOT.

TGo4ExportManager::TGo4ExportManager const Text_t *    name
 

Definition at line 32 of file TGo4ExportManager.cxx.

References fxOutFile, and GO4EX_ROOT.

TGo4ExportManager::~TGo4ExportManager   [virtual]
 

Definition at line 44 of file TGo4ExportManager.cxx.


Member Function Documentation

void TGo4ExportManager::Export TObject *    ob,
Go4Export_t    format
 

Conversion of object into selected file format in working dir.

If object is a collection, folder or root directory, all contents of these are converted recursively. The substructure hierarchy is expressed by means of subdirectories of the file system, or within the output root file, respectively

Definition at line 69 of file TGo4ExportManager.cxx.

References Go4Export_t, and SetFilter().

Referenced by Export(), and TGo4BrowserSlots::ExportSelectedItems().

void TGo4ExportManager::Export TObject *    ob
 

Treat all general objects.

Downcast types for overloaded export methods. Conversion format is to be specified with SetFilter method first.

Definition at line 78 of file TGo4ExportManager.cxx.

References Export(), and TGo4Log::Message().

void TGo4ExportManager::Export TH1 *    histo
 

Conversion of histogram into filter format file.

Definition at line 209 of file TGo4ExportManager.cxx.

References ExportASCII(), ExportRadware(), ExportRoot(), fiFilter, GO4EX_ASCII, GO4EX_ASCII_CHANNELS, GO4EX_RADWARE, GO4EX_ROOT, and TGo4Log::Message().

void TGo4ExportManager::Export TGraph *    graph
 

Conversion of graph into filter file.

Definition at line 232 of file TGo4ExportManager.cxx.

References ExportASCII(), ExportRadware(), ExportRoot(), fiFilter, GO4EX_ASCII, GO4EX_ASCII_CHANNELS, GO4EX_RADWARE, GO4EX_ROOT, and TGo4Log::Message().

void TGo4ExportManager::Export TFolder *    fold
 

Recursive conversion of all objects in fold specified filter files.

folder structure will be represented by subdirs on file system.

Definition at line 114 of file TGo4ExportManager.cxx.

References Export(), ExportRoot(), fiFilter, fxCurrentDir, fxStartDir, GO4EX_ROOT, and TGo4Log::Message().

void TGo4ExportManager::Export TDirectory *    dir
 

Recursive conversion of all objects in directory into filter format.

folder structure will be represented by subdirs on file system.

Definition at line 141 of file TGo4ExportManager.cxx.

References Export(), ExportRoot(), fiFilter, fxCurrentDir, fxStartDir, GO4EX_ROOT, and TGo4Log::Message().

void TGo4ExportManager::Export TCollection *    dir
 

Recursive conversion of all objects in collection into ascii files.

folder structure will be represented by subdirs on file system.

Definition at line 188 of file TGo4ExportManager.cxx.

References Export(), ExportRoot(), fiFilter, GO4EX_ROOT, and TGo4Log::Message().

void TGo4ExportManager::SetFilter Go4Export_t    format [inline]
 

Definition at line 82 of file TGo4ExportManager.h.

References fiFilter, and Go4Export_t.

Referenced by Export().

void TGo4ExportManager::SetCurrentDir const Text_t *    dir = 0
 

Definition at line 48 of file TGo4ExportManager.cxx.

References fxCurrentDir.

Referenced by TGo4BrowserSlots::ExportSelectedItems().

void TGo4ExportManager::SetStartDir const Text_t *    dir = 0
 

Definition at line 61 of file TGo4ExportManager.cxx.

References fxStartDir.

Referenced by TGo4BrowserSlots::ExportSelectedItems().

void TGo4ExportManager::SetOutFile const Text_t *    filename = 0 [inline]
 

Definition at line 88 of file TGo4ExportManager.h.

References fxOutFile.

Referenced by TGo4BrowserSlots::ExportSelectedItems().

void TGo4ExportManager::SetOutFileComment const Text_t *    comment = 0 [inline]
 

Definition at line 91 of file TGo4ExportManager.h.

References fxOutFileComment.

Referenced by TGo4BrowserSlots::ExportSelectedItems().

void TGo4ExportManager::ExportASCII TH1 *    histo,
Bool_t    channels = kTRUE
[private]
 

Conversion of histogram into ascii file.

If channels is true, x/y/z coordinates are in absolute bin channel numbers. Otherwise, export value of bincenters, with respect to axis scale.

Definition at line 253 of file TGo4ExportManager.cxx.

References fxCurrentDir, fxStartDir, and TGo4Log::Message().

Referenced by Export().

void TGo4ExportManager::ExportASCII TGraph *    graph [private]
 

Conversion of graph into ascii file.

Definition at line 331 of file TGo4ExportManager.cxx.

References fxCurrentDir, fxStartDir, and TGo4Log::Message().

void TGo4ExportManager::ExportRadware TH1 *    histo [private]
 

Conversion of histogram into radware file.

Definition at line 380 of file TGo4ExportManager.cxx.

References fxCurrentDir, fxStartDir, and TGo4Log::Message().

Referenced by Export().

void TGo4ExportManager::ExportRadware TH2 *    histo [private]
 

Conversion of 2d histogram into radware file.

Definition at line 472 of file TGo4ExportManager.cxx.

References TGo4Log::Message().

void TGo4ExportManager::ExportRadware TGraph *    graph [private]
 

Conversion of graph into radware file.

Definition at line 476 of file TGo4ExportManager.cxx.

References TGo4Log::Message().

void TGo4ExportManager::ExportRoot TObject *    ob [private]
 

Store object into root file.

Filename can be set by SetOutFile()

Definition at line 481 of file TGo4ExportManager.cxx.

References fxOutFile, fxOutFileComment, and TGo4Log::Message().

Referenced by Export().


Member Data Documentation

TString TGo4ExportManager::fxStartDir [private]
 

name of the start (top level) directory.

If keys from a directory are read, it is required that this start directory is current dir.

Definition at line 119 of file TGo4ExportManager.h.

Referenced by Export(), ExportASCII(), ExportRadware(), and SetStartDir().

TString TGo4ExportManager::fxCurrentDir [private]
 

name of the current working directory.

Definition at line 122 of file TGo4ExportManager.h.

Referenced by Export(), ExportASCII(), ExportRadware(), and SetCurrentDir().

TString TGo4ExportManager::fxOutFile [private]
 

Name of the output file.

Optionally, for ascii export the files are named according to object names.

Definition at line 126 of file TGo4ExportManager.h.

Referenced by ExportRoot(), SetOutFile(), and TGo4ExportManager().

TString TGo4ExportManager::fxOutFileComment [private]
 

Comment (title) of the output file.

Optionally, for ascii export the files are named according to object names. For root export, this will be TFile t

Definition at line 130 of file TGo4ExportManager.h.

Referenced by ExportRoot(), and SetOutFileComment().

Go4Export_t TGo4ExportManager::fiFilter [private]
 

Active filter format.

Definition at line 133 of file TGo4ExportManager.h.

Referenced by Export(), and SetFilter().


The documentation for this class was generated from the following files:
Generated on Tue Nov 8 10:56:38 2005 for Go4-v2.10-5 by doxygen1.2.15