|
Cat
|
#include <Application.h>
Public Member Functions | |
| Application () | |
| Standard constructor. More... | |
| virtual | ~Application () |
| Destructor. More... | |
| StatusCode | initialize () |
| StatusCode | run (std::string procName, Element *element=0, int nEvt=1) |
| StatusCode | finalize () |
| Options * | options () |
| Computer * | computer () |
| DLLMgr * | dllMgr () |
| ProcDataBase * | procDb () |
| StatusCode | loadHistoryFile () |
| StatusCode | bookkeeping () |
| void | banner () |
| void | exit () |
| void | setCurrent (Hierarchy *current) |
| Hierarchy * | current () |
| StatusCode | cd (std::string path) |
| std::string | hostname () |
| void | treeRecursive (Hierarchy *, std::string) |
| StatusCode | create (std::string, std::string) |
| StatusCode | makeDir (std::string) |
| State * | state () |
| Config * | config () |
| void | setState (std::string state=std::string("")) |
| void | setConfig () |
| char * | status () |
| void | network (std::string) |
| void | server () |
| void | setProcessus (Processus *processus) |
| Processus * | processus () |
| StatusCode | runSvc () |
| void | setRunSvc (RunSvc svc) |
| StatusCode | plotSvc () |
| void | setPlotSvc (PlotSvc svc) |
| void | setVersion (std::string version) |
| std::string | version () |
| void | setCtrl (std::string control) |
| std::string | ctrl () |
| StatusCode | svcRunning () |
| StatusCode | prepare (std::string procName, Element *element=0, int nEvt=1) |
| StatusCode | loop () |
| StatusCode | terminate () |
| StatusCode | svcPlot () |
Public Member Functions inherited from Object | |
| Object () | |
| Standard constructor. More... | |
| virtual | ~Object () |
| Destructor. More... | |
| std::string | name () const |
| std::string | type () |
| unsigned char | id () |
| std::string | title () |
| void | msgSvc (int level, std::string msg, std::string name) |
| void | msg (std::string mymsg) |
| void | verbose (std::string mymsg) |
| void | debug (std::string mymsg) |
| void | info (std::string mymsg) |
| void | warning (std::string mymsg) |
| void | error (std::string mymsg) |
| void | fatal (std::string mymsg) |
| void | msg (std::string mymsg, std::string name) |
| void | verbose (std::string mymsg, std::string name) |
| void | debug (std::string mymsg, std::string name) |
| void | info (std::string mymsg, std::string name) |
| void | warning (std::string mymsg, std::string name) |
| void | error (std::string mymsg, std::string name) |
| void | fatal (std::string mymsg, std::string name) |
| void | setName (std::string name) |
| void | setType (std::string type) |
| void | setId (unsigned char id) |
| void | setTitle (std::string title) |
| void | setDllName (std::string dllName) |
| std::string | dllName () |
Public Member Functions inherited from Attrib | |
| Attrib () | |
| Standard constructor. More... | |
| virtual | ~Attrib () |
| Destructor. More... | |
| bool | is (int attribut) |
| void | add (int attribut) |
| void | remove (int attribut) |
| std::string | attributs () |
Protected Attributes | |
| std::string | m_accountName |
| std::string | m_hostName |
| std::string | m_osName |
| std::string | m_osVersion |
| std::string | m_prompt |
| std::string | m_version |
| bool | m_isRunning |
| Hierarchy * | m_current |
Protected Attributes inherited from Attrib | |
| std::string | m_attribString [10] |
Private Attributes | |
| Options * | m_options |
| DLLMgr * | m_dllMgr |
| ProcDataBase * | m_procDb |
| Computer * | m_computer |
| Processus * | m_processus |
| State * | m_state |
| Config * | m_config |
| RunSvc | m_runSvc |
| PlotSvc | m_plotSvc |
| Server * | m_server |
| bool | m_network |
| std::string | m_ctrl |
Additional Inherited Members | |
Public Types inherited from Attrib | |
| enum | Attribut { UNDEFINED, PASSIVE, ACTIVE, INTERFACE, IO, IODATA, ELEMENT, HARDWARE, PROCESSUS, SOFTWARE } |
| Application::Application | ( | ) |
Standard constructor.
Definition at line 29 of file Application.cpp.
References System::accountName(), System::hostName(), m_accountName, m_computer, m_config, m_dllMgr, m_hostName, m_options, m_osName, m_osVersion, m_procDb, m_state, System::osName(), System::osVersion(), setApplication(), and setCurrent().
|
virtual |
| void Application::banner | ( | ) |
Banner of the Application
Definition at line 103 of file Application.cpp.
References m_accountName, m_hostName, m_osName, m_osVersion, and Object::msgSvc().
Referenced by initialize().
| StatusCode Application::bookkeeping | ( | ) |
write bookkeeping file
Definition at line 170 of file Application.cpp.
References application(), StatusCode::FAILURE, System::getEnv(), options(), Options::runNumber(), StatusCode::SUCCESS, and Object::warning().
Referenced by prepare().
|
inline |
Definition at line 158 of file Application.h.
References Hierarchy::child(), StatusCode::FAILURE, and StatusCode::SUCCESS.
Referenced by export_obj().
|
inline |
Get accessor to member m_computer
Definition at line 94 of file Application.h.
Referenced by export_obj().
| Config * Application::config | ( | ) |
return current Application State
Definition at line 214 of file Application.cpp.
References m_config.
Referenced by Server::start().
| StatusCode Application::create | ( | std::string | name, |
| std::string | type | ||
| ) |
Definition at line 326 of file Application.cpp.
References Hierarchy::addChild(), DLLMgr::createElement(), StatusCode::FAILURE, m_current, m_dllMgr, shell::obj(), setCurrent(), Object::setName(), Hierarchy::setParent(), StatusCode::SUCCESS, and Object::warning().
Referenced by export_obj().
|
inline |
Definition at line 314 of file Application.h.
Referenced by export_obj(), and svcRunning().
|
inline |
Get accessor to member m_current
Definition at line 149 of file Application.h.
Referenced by export_obj(), and setConfig().
|
inline |
Get accessor to member m_dllMgr
Definition at line 103 of file Application.h.
Referenced by export_obj().
| void Application::exit | ( | ) |
exit the Application
| StatusCode Application::finalize | ( | ) |
Finalize the application
Definition at line 142 of file Application.cpp.
References StatusCode::SUCCESS.
Referenced by export_obj().
|
inline |
get the hostname of the computer
Definition at line 173 of file Application.h.
References shell::create().
Referenced by export_obj(), initialize(), and NI6008::NI6008().
| StatusCode Application::initialize | ( | ) |
Initialize the Application
Definition at line 72 of file Application.cpp.
References Attrib::add(), banner(), hostname(), loadHistoryFile(), m_config, m_ctrl, m_network, m_server, m_state, setConfig(), Object::setName(), setState(), Object::setType(), Attrib::SOFTWARE, and StatusCode::SUCCESS.
Referenced by export_obj().
| StatusCode Application::loadHistoryFile | ( | ) |
Load History file if it exists
Definition at line 149 of file Application.cpp.
References application(), StatusCode::FAILURE, System::getEnv(), Object::info(), itos(), options(), Options::setRunNumber(), and StatusCode::SUCCESS.
Referenced by initialize().
| StatusCode Application::loop | ( | ) |
Definition at line 460 of file Application.cpp.
References Processus::execute(), StatusCode::FAILURE, Options::incNErrors(), Options::incNEvt(), Object::info(), itos(), m_options, m_processus, Options::nErrors(), State::nEvent, Options::nEvt(), Options::printFreq(), state(), Options::stopOnError(), StatusCode::SUCCESS, and Object::warning().
Referenced by export_obj(), and svcRunning().
| StatusCode Application::makeDir | ( | std::string | directory | ) |
Definition at line 189 of file Application.cpp.
References StatusCode::FAILURE, StatusCode::SUCCESS, and Object::warning().
Referenced by prepare().
| void Application::network | ( | std::string | name = std::string("") | ) |
Definition at line 282 of file Application.cpp.
References application(), Object::info(), m_network, m_server, Object::name(), setConfig(), Object::setName(), setState(), and Server::start().
|
inline |
Get accessor to member m_options
Definition at line 86 of file Application.h.
Referenced by bookkeeping(), Acquisition::execute(), ADCMeasurement::execute(), CurrentMeasurement::execute(), export_obj(), Acquisition::initialize(), CurrentMeasurement::initialize(), ADCMeasurement::initialize(), loadHistoryFile(), and MsgSvc::msgSvc().
|
inline |
| StatusCode Application::prepare | ( | std::string | procName, |
| Element * | element = 0, |
||
| int | nEvt = 1 |
||
| ) |
Definition at line 393 of file Application.cpp.
References bookkeeping(), Processus::clean(), Processus::clone(), Options::dataStorage(), StatusCode::FAILURE, Options::logStorage(), m_current, m_options, m_processus, makeDir(), procDb(), shell::process(), ProcDataBase::procList(), Processus::setElement(), Options::setNErrors(), Options::setNEvt(), Options::setNEvtMax(), setState(), Options::setStorageFile(), Options::setStream(), Options::setTimeMax(), Processus::startProcessing(), Processus::storage(), Options::storageFile(), Options::storageFullPath(), StatusCode::SUCCESS, Object::verbose(), and Object::warning().
Referenced by export_obj(), and run().
|
inline |
Get accessor to member m_procDb
Definition at line 111 of file Application.h.
Referenced by Computer::Computer(), export_obj(), DLL::init(), prepare(), DLL::print(), setConfig(), Server::start(), and Computer::~Computer().
|
inline |
Get accessor to member m_processus
Definition at line 248 of file Application.h.
| StatusCode Application::run | ( | std::string | procName, |
| Element * | element = 0, |
||
| int | nEvt = 1 |
||
| ) |
Execute the Application
Definition at line 130 of file Application.cpp.
References StatusCode::FAILURE, prepare(), status(), svcRunning(), and terminate().
Referenced by export_obj().
|
inline |
Execute processing service
Definition at line 256 of file Application.h.
| void Application::server | ( | ) |
Definition at line 308 of file Application.cpp.
References Object::info(), m_server, setConfig(), setState(), and Server::start().
| void Application::setConfig | ( | ) |
Set accessor to member m_config and perform network publication
Definition at line 236 of file Application.cpp.
References Hierarchy::children(), Config::config, current(), m_config, m_current, m_server, Object::name(), procDb(), ProcDataBase::procList(), Object::type(), Server::updateConfig(), and Object::warning().
Referenced by initialize(), network(), and server().
|
inline |
Definition at line 306 of file Application.h.
Referenced by export_obj().
|
inline |
Set accessor to member m_current
| current | the new value for m_current |
Definition at line 141 of file Application.h.
Referenced by Application(), create(), and export_obj().
|
inline |
Set accessor to plot service
| svc | the new value for service |
Definition at line 282 of file Application.h.
|
inline |
Set accessor to member m_processus
| processus | the new value for m_processus |
Definition at line 240 of file Application.h.
|
inline |
Set accessor to processing service instance
| svc | the new value for service |
Definition at line 265 of file Application.h.
| void Application::setState | ( | std::string | state = std::string("") | ) |
Set accessor to member m_state and perform network publication
| status | the new value for m_status |
Definition at line 221 of file Application.cpp.
References m_options, m_server, m_state, State::nErrors, Options::nErrors(), State::nEvent, State::nEventMax, Options::nEvt(), Options::nEvtMax(), State::nRun, Options::runNumber(), State::status, and Server::updateState().
Referenced by initialize(), network(), prepare(), server(), svcRunning(), and terminate().
|
inline |
Set accessor to member m_version
| version | the new value for m_version |
Definition at line 290 of file Application.h.
| State * Application::state | ( | ) |
return current Application State
Definition at line 200 of file Application.cpp.
References m_state.
Referenced by loop(), and Server::start().
|
inline |
Get accessor to member m_status
Definition at line 220 of file Application.h.
References shell::network().
Referenced by run().
| StatusCode Application::svcPlot | ( | ) |
Definition at line 384 of file Application.cpp.
References StatusCode::FAILURE, and Object::warning().
| StatusCode Application::svcRunning | ( | ) |
Definition at line 343 of file Application.cpp.
References ctrl(), StatusCode::FAILURE, Object::info(), StatusCode::isFailure(), loop(), m_options, Options::nEvt(), Options::nEvtMax(), setState(), StatusCode::SUCCESS, and Object::warning().
Referenced by run().
| StatusCode Application::terminate | ( | ) |
Definition at line 485 of file Application.cpp.
References Processus::endProcessing(), Options::incRunNumber(), Object::info(), itos(), Options::logStorage(), m_options, m_processus, Object::name(), Options::nEvt(), Options::runNumberManagement(), Options::setNEvt(), setState(), Options::setStream(), StatusCode::SUCCESS, and Object::title().
Referenced by export_obj(), and run().
| void Application::treeRecursive | ( | Hierarchy * | , |
| std::string | |||
| ) |
|
inline |
Get accessor to member m_version
Definition at line 298 of file Application.h.
|
protected |
Definition at line 351 of file Application.h.
Referenced by Application(), and banner().
|
private |
Definition at line 364 of file Application.h.
Referenced by Application().
|
private |
Definition at line 369 of file Application.h.
Referenced by Application(), config(), initialize(), setConfig(), and ~Application().
|
private |
Definition at line 376 of file Application.h.
Referenced by initialize().
|
protected |
Definition at line 358 of file Application.h.
Referenced by create(), prepare(), and setConfig().
|
private |
Definition at line 362 of file Application.h.
Referenced by Application(), create(), and ~Application().
|
protected |
Definition at line 352 of file Application.h.
Referenced by Application(), and banner().
|
protected |
Definition at line 357 of file Application.h.
|
private |
Definition at line 375 of file Application.h.
Referenced by initialize(), and network().
|
private |
Definition at line 361 of file Application.h.
Referenced by Application(), loop(), prepare(), setState(), svcRunning(), terminate(), and ~Application().
|
protected |
Definition at line 353 of file Application.h.
Referenced by Application(), and banner().
|
protected |
Definition at line 354 of file Application.h.
Referenced by Application(), and banner().
|
private |
Definition at line 372 of file Application.h.
|
private |
Definition at line 363 of file Application.h.
Referenced by Application(), and ~Application().
|
private |
Definition at line 366 of file Application.h.
Referenced by loop(), prepare(), and terminate().
|
protected |
Definition at line 355 of file Application.h.
|
private |
Definition at line 371 of file Application.h.
|
private |
Definition at line 374 of file Application.h.
Referenced by initialize(), network(), server(), setConfig(), setState(), and ~Application().
|
private |
Definition at line 368 of file Application.h.
Referenced by Application(), initialize(), setState(), state(), and ~Application().
|
protected |
Definition at line 356 of file Application.h.
1.8.13