~comnets/openwns-ip/ip--main--1.0

« back to all changes in this revision

Viewing changes to src/tests/DLLStub.hpp

  • Committer: Maciej Muehleisen
  • Date: 2009-01-12 21:51:19 UTC
  • Revision ID: mue@comnets.rwth-aachen.de-20090112215119-ivapqgbzx580xx5c
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*******************************************************************************
 
2
 * This file is part of openWNS (open Wireless Network Simulator)
 
3
 * _____________________________________________________________________________
 
4
 *
 
5
 * Copyright (C) 2004-2007
 
6
 * Chair of Communication Networks (ComNets)
 
7
 * Kopernikusstr. 5, D-52074 Aachen, Germany
 
8
 * phone: ++49-241-80-27910,
 
9
 * fax: ++49-241-80-22242
 
10
 * email: info@openwns.org
 
11
 * www: http://www.openwns.org
 
12
 * _____________________________________________________________________________
 
13
 *
 
14
 * openWNS is free software; you can redistribute it and/or modify it under the
 
15
 * terms of the GNU Lesser General Public License version 2 as published by the
 
16
 * Free Software Foundation;
 
17
 *
 
18
 * openWNS is distributed in the hope that it will be useful, but WITHOUT ANY
 
19
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 
20
 * A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
 
21
 * details.
 
22
 *
 
23
 * You should have received a copy of the GNU Lesser General Public License
 
24
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
25
 *
 
26
 ******************************************************************************/
 
27
 
 
28
#ifndef IP_TESTS_DLLSTUB_HPP
 
29
#define IP_TESTS_DLLSTUB_HPP
 
30
 
 
31
#include <WNS/service/dll/DataTransmission.hpp>
 
32
#include <WNS/service/dll/Handler.hpp>
 
33
#include <WNS/node/component/Component.hpp>
 
34
 
 
35
namespace ip  { namespace tests  {
 
36
 
 
37
        class DLLStub :
 
38
                public virtual wns::service::dll::UnicastDataTransmission
 
39
        {
 
40
        public:
 
41
 
 
42
                DLLStub() {};
 
43
 
 
44
                virtual
 
45
                ~DLLStub() {};
 
46
 
 
47
                virtual void
 
48
                sendData(
 
49
                        const wns::service::dll::UnicastAddress&,
 
50
                        const wns::osi::PDUPtr&,
 
51
                        wns::service::dll::protocolNumber /*protocol*/) {};
 
52
 
 
53
                virtual wns::service::dll::UnicastAddress
 
54
                getMACAddress() const { return wns::service::dll::UnicastAddress(); }
 
55
        };
 
56
} // tests
 
57
} // ip
 
58
#endif //IP_TESTS_DLLSTUB_HPP