Line | |
---|
1 | #include "Default.h"
|
---|
2 | #include <sstream>
|
---|
3 | #include <iostream>
|
---|
4 |
|
---|
5 | #include "Logger/Logger.h"
|
---|
6 |
|
---|
7 | #include "UEUserGuideClient.h"
|
---|
8 |
|
---|
9 | using namespace std;
|
---|
10 | using namespace boost;
|
---|
11 |
|
---|
12 | namespace UpperTestAdapter {
|
---|
13 |
|
---|
14 | namespace Processors {
|
---|
15 |
|
---|
16 | namespace TriggerCommandsGUI {
|
---|
17 |
|
---|
18 | Default::Default()
|
---|
19 | {
|
---|
20 | }
|
---|
21 |
|
---|
22 | Default::Default(boost::shared_ptr<EutIPInterface> eutIface)
|
---|
23 | {
|
---|
24 | Default();
|
---|
25 | m_eutIface = eutIface;
|
---|
26 | }
|
---|
27 |
|
---|
28 | Default::~Default()
|
---|
29 | {
|
---|
30 | Logger::Instance().LogInfo("Default::~Default");
|
---|
31 | }
|
---|
32 |
|
---|
33 | int Default::Process(const string &trigger, const vector<string> ¶meterList)
|
---|
34 | {
|
---|
35 | stringstream ss;
|
---|
36 |
|
---|
37 | // Process the command.
|
---|
38 | int result = UEUserGuideClient::Instance().SendCommand(m_eutIface, trigger, parameterList);
|
---|
39 | ss.str("");
|
---|
40 | ss << "Default::Process: result=" << result;
|
---|
41 | Logger::Instance().LogDebug(ss.str());
|
---|
42 | if (result != 0)
|
---|
43 | {
|
---|
44 | // Processing failed.
|
---|
45 | return 1; // Error - See TTCN-3 FncRetCode
|
---|
46 | }
|
---|
47 |
|
---|
48 | return 0/*result*/; // See TTCN-3 FncRetCode
|
---|
49 | }
|
---|
50 | } } } // namespaces
|
---|
51 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.