EmulatedWLANInterface.cci
Go to the documentation of this file.
1 //
2 // Copyright (c) 2020 Fraunhofer Institute for Applied Information Technology (FIT)
3 // Network Research Group (NET)
4 // Schloss Birlinghoven, 53754 Sankt Augustin, GERMANY
5 // Contact: support@wiback.org
6 //
7 // This file is part of the SENF code tree.
8 // It is licensed under the 3-clause BSD License (aka New BSD License).
9 // See LICENSE.txt in the top level directory for details or visit
10 // https://opensource.org/licenses/BSD-3-Clause
11 //
12 
13 
14 /** \file
15  \brief EmulatedWLANInterface inline non-template implementation */
16 
17 // Custom includes
18 
19 #define prefix_ inline
20 //-/////////////////////////////////////////////////////////////////////////////////////////////////
21 
22 //-/////////////////////////////////////////////////////////////////////////////////////////////////
23 // senf::emu::detail::EmulatedWLANInterfaceNet
24 
25 prefix_ senf::emu::EmulatedWLANInterface &
26 senf::emu::detail::EmulatedWLANInterfaceNet::self()
27 {
28  return *static_cast<EmulatedWLANInterface *>(this);
29 }
30 
31 prefix_ senf::emu::EmulatedWLANInterface const &
32 senf::emu::detail::EmulatedWLANInterfaceNet::self()
33  const
34 {
35  return *static_cast<EmulatedWLANInterface const *>(this);
36 }
37 
38 prefix_ senf::ClockService::clock_type
39 senf::emu::detail::EmulatedWLANInterfaceNet::beaconInterval()
40 {
41  return beaconGenerator_.beaconInterval();
42 }
43 
44 prefix_ void senf::emu::detail::EmulatedWLANInterfaceNet::beaconInterval
45 (ClockService::clock_type interval)
46 {
47  beaconGenerator_.beaconInterval(interval);
48 }
49 
50 //-/////////////////////////////////////////////////////////////////////////////////////////////////
51 // senf::emu::EmulatedWLANInterface
52 
53 prefix_ void senf::emu::EmulatedWLANInterface::mode(Mode mode)
54 {
55  mode_= mode;
56 }
57 
58 prefix_ senf::emu::EmulatedWLANInterface::Mode senf::emu::EmulatedWLANInterface::mode()
59 {
60  return mode_;
61 }
62 
63 //-/////////////////////////////////////////////////////////////////////////////////////////////////
64 #undef prefix_
65 
66 
67 // Local Variables:
68 // mode: c++
69 // fill-column: 100
70 // comment-column: 40
71 // c-file-style: "senf"
72 // indent-tabs-mode: nil
73 // ispell-local-dictionary: "american"
74 // compile-command: "scons -u test"
75 // End: