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