Last change
on this file since 40 was
22,
checked in by rings, 14 years ago
|
|
-
Property svn:executable set to
*
|
File size:
1.3 KB
|
Line | |
---|
1 | #include "CheckCallIsAnswered.h"
|
---|
2 | #include <sstream>
|
---|
3 | #include <iostream>
|
---|
4 |
|
---|
5 | #include "Logger/Logger.h"
|
---|
6 |
|
---|
7 | using namespace std;
|
---|
8 | using namespace boost;
|
---|
9 |
|
---|
10 | namespace UpperTestAdapter {
|
---|
11 |
|
---|
12 | namespace Processors {
|
---|
13 |
|
---|
14 | namespace TriggerCommandsOffLine {
|
---|
15 |
|
---|
16 | string CheckCallIsAnswered::CheckCallIsAnsweredId = "UE_CHECK_CALL_IS_ANSWERED";
|
---|
17 |
|
---|
18 | CheckCallIsAnswered::CheckCallIsAnswered()
|
---|
19 | {
|
---|
20 | m_successor.reset();
|
---|
21 | }
|
---|
22 |
|
---|
23 | CheckCallIsAnswered::~CheckCallIsAnswered()
|
---|
24 | {
|
---|
25 | Logger::Instance().LogInfo("CheckCallIsAnswered::~CheckCallIsAnswered");
|
---|
26 | m_successor.reset();
|
---|
27 | }
|
---|
28 |
|
---|
29 | int CheckCallIsAnswered::Process(const string &trigger, const vector<string> ¶meterList)
|
---|
30 | {
|
---|
31 | stringstream ss;
|
---|
32 | // Process the command.
|
---|
33 | if (trigger == CheckCallIsAnswered::CheckCallIsAnsweredId)
|
---|
34 | {
|
---|
35 | ss << "CheckCallIsAnswered::Process: " << trigger;
|
---|
36 | Logger::Instance().LogDebug(ss.str());
|
---|
37 | return 0; // See TTCN-3 FncRetCode
|
---|
38 | }
|
---|
39 | else if (m_successor.get() != NULL)
|
---|
40 | {
|
---|
41 | ss << "CheckCallIsAnswered::Not supported command: " << trigger;
|
---|
42 | Logger::Instance().LogInfo(ss.str());
|
---|
43 | return m_successor.get()->Process(trigger, parameterList);
|
---|
44 | }
|
---|
45 |
|
---|
46 | return 1; // See TTCN-3 FncRetCode
|
---|
47 | }
|
---|
48 |
|
---|
49 | void CheckCallIsAnswered::SetSuccessor(boost::shared_ptr<UpperTestAdapter::Processors::TriggerCommandsImpl> successor)
|
---|
50 | {
|
---|
51 | m_successor = successor;
|
---|
52 | };
|
---|
53 | } } } // namespaces
|
---|
54 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.