ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/System8/s8/Controller/src/MonitorTriggerController.cpp
Revision: 1.1
Committed: Fri May 6 14:32:47 2011 UTC (14 years ago) by samvel
Branch: MAIN
CVS Tags: melo-old
Log Message:
Import Controller

File Contents

# User Rev Content
1 samvel 1.1 /**
2     * MonitorTriggerController
3     * s8
4     *
5     * Created by Samvel Khalatian on Feb 25, 2011
6     * Copyright 2011, All rights reserved
7     */
8    
9     #include "Analyzer/interface/MonitorTriggerAnalyzer.h"
10     #include "Option/interface/MonitorOptions.h"
11    
12     #include "Controller/interface/MonitorTriggerController.h"
13    
14     using s8::MonitorTriggerController;
15    
16     MonitorTriggerController::MonitorTriggerController() throw()
17     {
18     }
19    
20     MonitorTriggerController::~MonitorTriggerController() throw()
21     {
22     }
23    
24     // Override parent init()
25     //
26     void MonitorTriggerController::init()
27     {
28     // Let parent to initialize
29     //
30     AppController::init();
31    
32     _analyzer.reset(new MonitorTriggerAnalyzer());
33     _analyzer->init();
34    
35     _options.reset(new MonitorOptions());
36     _options->init();
37     _options->setDelegate(_analyzer.get());
38     }
39    
40     s8::Analyzer *MonitorTriggerController::createAnalyzer()
41     {
42     return _analyzer.get();
43     }
44    
45     core::Options *MonitorTriggerController::createOptions()
46     {
47     return _options.get();
48     }
49    
50     bool MonitorTriggerController::inputFileShouldLoadTriggers()
51     {
52     return true;
53     }