source: trunk/ETSI-Testsuites/ETSI_auto_IOT/adapter/src/UpperTestAdapter/TriggerCommandsGUI/Default.cpp @ 48

Last change on this file since 48 was 22, checked in by rings, 14 years ago
  • Property svn:executable set to *
File size: 1015 bytes
Line 
1#include "Default.h"
2#include <sstream>
3#include <iostream>
4
5#include "Logger/Logger.h"
6
7#include "UEUserGuideClient.h"
8
9using namespace std;
10using namespace boost;
11
12namespace UpperTestAdapter {
13 
14namespace Processors {
15 
16namespace TriggerCommandsGUI {
17 
18Default::Default()
19{
20}
21
22Default::Default(boost::shared_ptr<EutIPInterface> eutIface)
23{
24  Default();
25  m_eutIface = eutIface;
26}
27
28Default::~Default()
29{
30  Logger::Instance().LogInfo("Default::~Default");
31}
32
33int Default::Process(const string &trigger, const vector<string> &parameterList)
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.