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