Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class 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 Member Functions

 TGo4ExportManager ()
 TGo4ExportManager (const char *name)
virtual ~TGo4ExportManager ()
void Export (TObject *ob, Go4Export_t format)
 Conversion of object into selected file format in working dir.
void Export (TObject *ob)
 Treat all general objects.
void Export (TH1 *histo)
 Conversion of histogram into filter format file.
void Export (TGraph *graph)
 Conversion of graph into filter file.
void Export (TFolder *fold)
 Recursive conversion of all objects in fold specified filter files.
void Export (TDirectory *dir)
 Recursive conversion of all objects in directory into filter format.
void Export (TCollection *dir)
 Recursive conversion of all objects in collection into ascii files.
void SetFilter (Go4Export_t format)
void SetCurrentDir (const char *dir=0)
void SetStartDir (const char *dir=0)
void SetOutFile (const char *filename=0)
void SetOutFileComment (const char *comment=0)

Private Member Functions

void ExportASCII (TH1 *histo, Bool_t channels=kTRUE)
 Conversion of histogram into ascii file.
void ExportASCII (TGraph *graph)
 Conversion of graph into ascii file.
void ExportRadware (TH1 *histo)
 Conversion of histogram into radware file.
void ExportRadware (TH2 *histo)
 Conversion of 2d histogram into radware file.
void ExportRadware (TGraph *graph)
 Conversion of graph into radware file.
void ExportRoot (TObject *ob)
 Store object into root file.
void ExportXML (TObject *ob)
 Store object into root xml file.

Private Attributes

TString fxStartDir
 name of the start (top level) directory.
TString fxCurrentDir
 name of the current working directory.
TString fxOutFile
 Name of the output file.
TString fxOutFileComment
 Comment (title) of the output file.
Go4Export_t fiFilter
 Active filter format.


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 46 of file TGo4ExportManager.h.


Constructor & Destructor Documentation

TGo4ExportManager::TGo4ExportManager  ) 
 

Definition at line 40 of file TGo4ExportManager.cxx.

TGo4ExportManager::TGo4ExportManager const char *  name  ) 
 

Definition at line 34 of file TGo4ExportManager.cxx.

References fxOutFile.

TGo4ExportManager::~TGo4ExportManager  )  [virtual]
 

Definition at line 45 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 75 of file TGo4ExportManager.cxx.

References SetFilter().

Referenced by Export(), and TGo4BrowserProxy::ExportItemsTo().

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 84 of file TGo4ExportManager.cxx.

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

void TGo4ExportManager::Export TH1 *  histo  ) 
 

Conversion of histogram into filter format file.

Definition at line 218 of file TGo4ExportManager.cxx.

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

void TGo4ExportManager::Export TGraph *  graph  ) 
 

Conversion of graph into filter file.

Definition at line 244 of file TGo4ExportManager.cxx.

References ExportASCII(), ExportRadware(), ExportRoot(), ExportXML(), fiFilter, GO4EX_ASCII, GO4EX_ASCII_CHANNELS, GO4EX_RADWARE, GO4EX_ROOT, GO4EX_XML, 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 127 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 154 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 201 of file TGo4ExportManager.cxx.

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

void TGo4ExportManager::SetFilter Go4Export_t  format  ) 
 

Definition at line 49 of file TGo4ExportManager.cxx.

References fiFilter.

Referenced by Export().

void TGo4ExportManager::SetCurrentDir const char *  dir = 0  ) 
 

Definition at line 54 of file TGo4ExportManager.cxx.

References fxCurrentDir.

Referenced by TGo4BrowserProxy::ExportItemsTo().

void TGo4ExportManager::SetStartDir const char *  dir = 0  ) 
 

Definition at line 67 of file TGo4ExportManager.cxx.

References fxStartDir.

Referenced by TGo4BrowserProxy::ExportItemsTo().

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

Definition at line 89 of file TGo4ExportManager.h.

References fxOutFile.

Referenced by TGo4BrowserProxy::ExportItemsTo().

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

Definition at line 92 of file TGo4ExportManager.h.

References fxOutFileComment.

Referenced by TGo4BrowserProxy::ExportItemsTo().

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 268 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 347 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 395 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 487 of file TGo4ExportManager.cxx.

References TGo4Log::Message().

void TGo4ExportManager::ExportRadware TGraph *  graph  )  [private]
 

Conversion of graph into radware file.

Definition at line 491 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 512 of file TGo4ExportManager.cxx.

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

Referenced by Export().

void TGo4ExportManager::ExportXML TObject *  ob  )  [private]
 

Store object into root xml file.

Filename derived from object name

Definition at line 496 of file TGo4ExportManager.cxx.

References 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 123 of file TGo4ExportManager.h.

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

TString TGo4ExportManager::fxCurrentDir [private]
 

name of the current working directory.

Definition at line 126 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 130 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 134 of file TGo4ExportManager.h.

Referenced by ExportRoot(), and SetOutFileComment().

Go4Export_t TGo4ExportManager::fiFilter [private]
 

Active filter format.

Definition at line 137 of file TGo4ExportManager.h.

Referenced by Export(), and SetFilter().


The documentation for this class was generated from the following files:
Generated on Fri Nov 28 13:00:53 2008 for Go4-v3.04-1 by  doxygen 1.4.2