#include <IoModule.h>
Public Member Functions | |
| ~IoModule () | |
| io::ReadWriteModule & | IoMod () |
| int | AddFile (const char *file_regexp) |
| int | RemoveFile (const char *file_regexp) |
| int | GoToFile (const char *file) |
| int | AdvanceFile (int n=1) |
| int | RewindFile (int n=1) |
| int | GoTo (int run, int event) |
| int | Advance (int n=1) |
| int | Rewind (int n=1) |
| int | Reload () |
| void | SetOutputFileName (const char *n) |
| edm::EventHandle & | GetEvent () |
| int | WriteEvent () |
| const char * | CurrentFile () const |
| const char * | FileName (int i) const |
| void | StartAutoAdvance () |
| void | StopAutoAdvance () |
| void | NewEvent () |
Static Public Member Functions | |
| IoModule * | Instance () |
Private Member Functions | |
| RQ_OBJECT ("evdb::IoModule") | |
| IoModule () | |
| void | Warn (const char *w) |
Private Attributes | |
| edm::Event * | fEvent |
| io::ReadWriteModule * | fIoMod |
| bool | fAutoAdvanceOption |
Definition at line 22 of file IoModule.h.
|
|
Definition at line 65 of file IoModule.cxx. 00065 { }
|
|
|
Definition at line 58 of file IoModule.cxx. References fIoMod. Referenced by Instance(). 00059 {
00060 fIoMod = new io::ReadWriteModule();
00061 }
|
|
|
Definition at line 69 of file IoModule.cxx. References io::ReadWriteModule::AddFile(), fIoMod, io::ReadWriteModule::Report(), and Warn(). Referenced by evdb::FileMenu::Open(). 00070 {
00071 int n = 0;
00072 if (file_regexp) n = fIoMod->AddFile(file_regexp);
00073 if (n==0) {
00074 std::string s;
00075 s += "Add: No files matching '";
00076 if (file_regexp) s += file_regexp;
00077 else s += "0x0";
00078 s += "' openned.";
00079 this->Warn(s.c_str());
00080 }
00081 fIoMod->Report();
00082
00083 return n;
00084 }
|
|
|
Definition at line 143 of file IoModule.cxx. References io::ReadWriteModule::Advance(), fIoMod, NewEvent(), and evdb::JobInterface::ProcEvent(). Referenced by evdb::AutoAdvance::HandleTimer(), evdb::ScanCat::NextEvt(), and evdb::ButtonBar::NextEvt(). 00144 {
00145 int istat = fIoMod->Advance(n);
00146 JobInterface::ProcEvent(this->GetEvent());
00147 this->NewEvent();
00148 return istat;
00149 }
|
|
|
Definition at line 113 of file IoModule.cxx. References io::ReadWriteModule::AdvanceFile(), fIoMod, NewEvent(), and evdb::JobInterface::ProcEvent(). 00114 {
00115 int istat = fIoMod->AdvanceFile(n);
00116 JobInterface::ProcEvent(this->GetEvent());
00117 this->NewEvent();
00118 return istat;
00119 }
|
|
|
Definition at line 198 of file IoModule.cxx. References io::ReadWriteModule::CurrentFile(), and fIoMod. 00199 {
00200 return fIoMod->CurrentFile();
00201 }
|
|
|
Definition at line 205 of file IoModule.cxx. References io::ReadWriteModule::FileName(), and fIoMod. Referenced by evdb::ButtonBar::FileList().
|
|
|
Definition at line 180 of file IoModule.cxx. References fIoMod, and io::ReadWriteModule::GetEvent(). Referenced by GetEventNumbers(), gsGetEventNumbers(), and evdb::PrintDialog::PrintDialog().
|
|
||||||||||||
|
Definition at line 133 of file IoModule.cxx. References fIoMod, io::ReadWriteModule::GoTo(), NewEvent(), and evdb::JobInterface::ProcEvent(). Referenced by evdb::GoToDialog::DoGo(), and evdb::ButtonBar::GoTo(). 00134 {
00135 int istat = fIoMod->GoTo(run,event);
00136 JobInterface::ProcEvent(this->GetEvent());
00137 this->NewEvent();
00138 return istat;
00139 }
|
|
|
Definition at line 103 of file IoModule.cxx. References fIoMod, io::ReadWriteModule::GoToFile(), NewEvent(), and evdb::JobInterface::ProcEvent(). Referenced by evdb::FileMenu::Open(). 00104 {
00105 int istat = fIoMod->GoToFile(file);
00106 JobInterface::ProcEvent(this->GetEvent());
00107 this->NewEvent();
00108 return istat;
00109 }
|
|
|
Definition at line 49 of file IoModule.cxx. References IoModule(). Referenced by evdb::CfgEdit::Apply(), evdb::ButtonBar::ButtonBar(), evdb::Canvas::Connect(), evd::DetectorView::DetectorView(), evdb::GoToDialog::DoGo(), evd::Display3D::Draw(), evd::DetectorView::Draw(), evd::Display3D::DrawMCHits(), evd::Display3D::DrawProngs(), evd::Display3D::DrawRawData(), evd::DrawingPad::EventHandle(), evdb::ButtonBar::FileList(), GetEventNumbers(), evdb::ButtonBar::GoTo(), gsGetEventNumbers(), evdb::JobMenu::HandleMenu(), evdb::AutoAdvance::HandleTimer(), main(), evdb::ScanCat::NextEvt(), evdb::ButtonBar::NextEvt(), evdb::FileMenu::Open(), evdb::JobMenu::OpenJobXML(), evdb::ButtonBar::PrevEvt(), evdb::PrintDialog::PrintDialog(), evdb::ButtonBar::ReloadEvt(), evdb::ButtonBar::~ButtonBar(), and evdb::Canvas::~Canvas(). 00050 {
00051 static IoModule* iom = 0;
00052 if (iom==0) iom = new IoModule();
00053 return iom;
00054 }
|
|
|
Definition at line 45 of file IoModule.cxx. Referenced by evdb::AutoAdvance::HandleTimer(). 00045 { return *fIoMod; }
|
|
|
Definition at line 220 of file IoModule.cxx. Referenced by Advance(), AdvanceFile(), GoTo(), GoToFile(), Reload(), Rewind(), and RewindFile(). 00221 {
00222 Emit("NewEvent()");
00223 }
|
|
|
Definition at line 163 of file IoModule.cxx. References fIoMod, NewEvent(), evdb::JobInterface::ProcEvent(), and io::ReadWriteModule::Reload(). Referenced by evdb::CfgEdit::Apply(), evdb::AutoAdvance::HandleTimer(), evdb::FileMenu::Open(), evdb::JobMenu::OpenJobXML(), and evdb::ButtonBar::ReloadEvt(). 00164 {
00165 int istat = fIoMod->Reload();
00166 JobInterface::ProcEvent(this->GetEvent());
00167 this->NewEvent();
00168 return istat;
00169 }
|
|
|
Definition at line 88 of file IoModule.cxx. References fIoMod, io::ReadWriteModule::RemoveFile(), and Warn(). 00089 {
00090 int n = fIoMod->RemoveFile(file_regexp);
00091 if (n==0) {
00092 std::string s;
00093 s += "Remove: No files match '";
00094 s += file_regexp;
00095 s += "'.";
00096 this->Warn(s.c_str());
00097 }
00098 return n;
00099 }
|
|
|
Definition at line 153 of file IoModule.cxx. References fIoMod, NewEvent(), evdb::JobInterface::ProcEvent(), and io::ReadWriteModule::Rewind(). Referenced by evdb::ButtonBar::PrevEvt(). 00154 {
00155 int istat = fIoMod->Rewind(n);
00156 JobInterface::ProcEvent(this->GetEvent());
00157 this->NewEvent();
00158 return istat;
00159 }
|
|
|
Definition at line 123 of file IoModule.cxx. References fIoMod, NewEvent(), evdb::JobInterface::ProcEvent(), and io::ReadWriteModule::RewindFile(). 00124 {
00125 int istat = fIoMod->RewindFile(n);
00126 JobInterface::ProcEvent(this->GetEvent());
00127 this->NewEvent();
00128 return istat;
00129 }
|
|
|
|
|
|
Definition at line 173 of file IoModule.cxx. References fIoMod, and io::ReadWriteModule::SetOutputFileName(). 00174 {
00175 fIoMod->SetOutputFileName(n);
00176 }
|
|
|
Definition at line 29 of file IoModule.cxx. References gsAutoAdvance. Referenced by evdb::JobMenu::HandleMenu(). 00030 {
00031 if (gsAutoAdvance==0) gsAutoAdvance = new AutoAdvance();
00032 }
|
|
|
Definition at line 36 of file IoModule.cxx. References gsAutoAdvance. Referenced by evdb::JobMenu::HandleMenu(). 00037 {
00038 if (gsAutoAdvance==0) return;
00039 delete gsAutoAdvance;
00040 gsAutoAdvance = 0;
00041 }
|
|
|
Definition at line 212 of file IoModule.cxx. Referenced by AddFile(), RemoveFile(), and WriteEvent(). 00213 {
00214 new TGMsgBox(evdb::TopWindow(), evdb::TopWindow(),
00215 "Warning", w, kMBIconExclamation);
00216 }
|
|
|
Definition at line 187 of file IoModule.cxx. References fIoMod, Warn(), and io::ReadWriteModule::WriteEvent(). 00188 {
00189 int istat = fIoMod->WriteEvent();
00190 if (istat == 0) {
00191 this->Warn("Write failed.\n");
00192 }
00193 return istat;
00194 }
|
|
|
Definition at line 61 of file IoModule.h. |
|
|
Definition at line 59 of file IoModule.h. |
|
|
Definition at line 60 of file IoModule.h. Referenced by AddFile(), Advance(), AdvanceFile(), CurrentFile(), FileName(), GetEvent(), GoTo(), GoToFile(), IoModule(), Reload(), RemoveFile(), Rewind(), RewindFile(), SetOutputFileName(), and WriteEvent(). |
1.3.9.1