~openwns-possum/openwns-ofdmaphy/selfReceiveFix

« back to all changes in this revision

Viewing changes to src/Transmitter.hpp

  • Committer: Maciej Muehleisen
  • Date: 2009-01-10 23:21:35 UTC
  • Revision ID: mue@comnets.rwth-aachen.de-20090110232135-qd9xanljqpmqm4ei
Moved files to openWNS for publication

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 OFDMAPHY_TRANSMITTER_HPP
 
29
#define OFDMAPHY_TRANSMITTER_HPP
 
30
 
 
31
#include <RISE/transceiver/transmitter.hpp>
 
32
#include <RISE/antenna/Antenna.hpp>
 
33
 
 
34
#include <WNS/logger/Logger.hpp>
 
35
#include <WNS/pyconfig/View.hpp>
 
36
 
 
37
namespace ofdmaphy {
 
38
        template <typename STATIONTYPE>
 
39
        class Transmitter :
 
40
                public rise::Transmitter
 
41
        {
 
42
        public:
 
43
                Transmitter(const wns::pyconfig::View& config,
 
44
                            STATIONTYPE* s,
 
45
                            rise::antenna::Antenna* a) :
 
46
                        rise::Transmitter(config, s, a),
 
47
                        station(s)
 
48
                {
 
49
                }
 
50
 
 
51
                virtual ~Transmitter()
 
52
                {
 
53
                }
 
54
 
 
55
                virtual STATIONTYPE* getStation()
 
56
                {
 
57
                        return station;
 
58
                }
 
59
        private:
 
60
                STATIONTYPE* station;
 
61
        };
 
62
}
 
63
 
 
64
#endif
 
65
 
 
66
 
 
67