GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
|
#include <TGo4ExportManager.h>
Public Member Functions | |
TGo4ExportManager () | |
TGo4ExportManager (const char *name) | |
virtual | ~TGo4ExportManager () |
void | Export (TObject *ob, Go4Export_t format) |
void | Export (TObject *ob) |
void | Export (TH1 *histo) |
void | Export (TGraph *graph) |
void | Export (TFolder *fold) |
void | Export (TDirectory *dir) |
void | Export (TCollection *dir) |
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) |
void | ExportASCII (TGraph *graph) |
void | ExportRadware (TH1 *histo) |
void | ExportRadware (TH2 *histo) |
void | ExportRadware (TGraph *graph) |
void | ExportRoot (TObject *ob) |
void | ExportXML (TObject *ob) |
Private Attributes | |
TString | fxStartDir |
TString | fxCurrentDir |
TString | fxOutFile |
TString | fxOutFileComment |
Go4Export_t | fiFilter |
This class manages all export and import conversions of objects to/from different file formats like ascii, radware, etc.
Definition at line 44 of file TGo4ExportManager.h.
TGo4ExportManager::TGo4ExportManager | ( | ) |
Definition at line 37 of file TGo4ExportManager.cxx.
TGo4ExportManager::TGo4ExportManager | ( | const char * | name | ) |
Definition at line 31 of file TGo4ExportManager.cxx.
References fxOutFile.
|
virtual |
Definition at line 42 of file TGo4ExportManager.cxx.
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 72 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 81 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 215 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 241 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 124 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 151 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 198 of file TGo4ExportManager.cxx.
References Export(), ExportRoot(), fiFilter, GO4EX_ROOT, and TGo4Log::Message().
|
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 265 of file TGo4ExportManager.cxx.
References fxCurrentDir, fxStartDir, and TGo4Log::Message().
Referenced by Export().
|
private |
Conversion of graph into ascii file
Definition at line 342 of file TGo4ExportManager.cxx.
References fxCurrentDir, fxStartDir, and TGo4Log::Message().
|
private |
Conversion of histogram into radware file
Definition at line 388 of file TGo4ExportManager.cxx.
References fxCurrentDir, fxStartDir, and TGo4Log::Message().
Referenced by Export().
|
private |
Conversion of 2d histogram into radware file
Definition at line 478 of file TGo4ExportManager.cxx.
References TGo4Log::Message().
|
private |
Conversion of graph into radware file
Definition at line 482 of file TGo4ExportManager.cxx.
References TGo4Log::Message().
|
private |
Store object into root file. Filename can be set by SetOutFile()
Definition at line 503 of file TGo4ExportManager.cxx.
References fxOutFile, fxOutFileComment, and TGo4Log::Message().
Referenced by Export().
|
private |
Store object into root xml file. Filename derived from object name
Definition at line 487 of file TGo4ExportManager.cxx.
References TGo4Log::Message().
Referenced by Export().
void TGo4ExportManager::SetCurrentDir | ( | const char * | dir = 0 | ) |
Definition at line 51 of file TGo4ExportManager.cxx.
References fxCurrentDir.
Referenced by TGo4BrowserProxy::ExportItemsTo().
void TGo4ExportManager::SetFilter | ( | Go4Export_t | format | ) |
|
inline |
Definition at line 87 of file TGo4ExportManager.h.
References fxOutFile.
Referenced by TGo4BrowserProxy::ExportItemsTo().
|
inline |
Definition at line 90 of file TGo4ExportManager.h.
References fxOutFileComment.
Referenced by TGo4BrowserProxy::ExportItemsTo().
void TGo4ExportManager::SetStartDir | ( | const char * | dir = 0 | ) |
Definition at line 64 of file TGo4ExportManager.cxx.
References fxStartDir.
Referenced by TGo4BrowserProxy::ExportItemsTo().
|
private |
Active filter format.
Definition at line 135 of file TGo4ExportManager.h.
Referenced by Export(), and SetFilter().
|
private |
name of the current working directory.
Definition at line 124 of file TGo4ExportManager.h.
Referenced by Export(), ExportASCII(), ExportRadware(), and SetCurrentDir().
|
private |
Name of the output file. Optionally, for ascii export the files are named according to object names.
Definition at line 128 of file TGo4ExportManager.h.
Referenced by ExportRoot(), SetOutFile(), and TGo4ExportManager().
|
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 132 of file TGo4ExportManager.h.
Referenced by ExportRoot(), and SetOutFileComment().
|
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 121 of file TGo4ExportManager.h.
Referenced by Export(), ExportASCII(), ExportRadware(), and SetStartDir().