SENF Extensible Network Framework
Home
Overview
Examples
HowTos
Glossary
Ext
NetEmu
PPI
Packets
Scheduler
Socket
Utils
Console
Daemon
Logger
Termlib
PacketConsoleSysDir.cc
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
17
#include "
Packets.hh
"
18
#include "
PacketConsoleSysDir.ih
"
19
20
// Custom includes
21
#include <
senf/Utils/Console/ScopedDirectory.hh
>
22
#include <
senf/Utils/Console/Sysdir.hh
>
23
24
//#include "PacketConsoleSysDir.mpp"
25
#define prefix_
26
28
#ifndef SENF_DISABLE_CONSOLE
29
30
prefix_
senf::console::ScopedDirectory<>
&
senf::packetConsoleDir
()
31
{
32
return
detail::packets::ConsoleDirManager::instance().consoleDir();
33
}
34
35
prefix_
senf::console::ScopedDirectory<>
&
36
senf::detail::packets::ConsoleDirManager::consoleDir()
37
{
38
return
consoleDir_();
39
}
40
41
prefix_
senf::detail::packets::ConsoleDirManager::ConsoleDirManager()
42
{
43
console::sysdir().add(
"packets"
, consoleDir_());
44
}
45
46
#endif
47
49
#undef prefix_
50
//#include "PacketConsoleSysDir.mpp"
51
52
53
// Local Variables:
54
// mode: c++
55
// fill-column: 100
56
// comment-column: 40
57
// c-file-style: "senf"
58
// indent-tabs-mode: nil
59
// ispell-local-dictionary: "american"
60
// compile-command: "scons -u test"
61
// End:
ScopedDirectory.hh
Sysdir.hh
PacketConsoleSysDir.ih
Packets.hh
Packets public header.
senf::console::ScopedDirectory
senf::packetConsoleDir
console::ScopedDirectory & packetConsoleDir()
Definition:
PacketConsoleSysDir.cc:30
prefix_
#define prefix_
Definition:
PacketConsoleSysDir.cc:25