PacketConsoleSysDir.ih
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 PacketConsoleSysDir internal header */
16 
17 #ifndef IH_SENF_senf_Packets_PacketConsoleSysDir_
18 #define IH_SENF_senf_Packets_PacketConsoleSysDir_ 1
19 
20 // Custom includes
21 #include <senf/Utils/singleton.hh>
22 
23 ///////////////////////////////ih.p////////////////////////////////////////
24 
25 namespace senf {
26 namespace detail {
27 namespace packets {
28 
29 #ifndef SENF_DISABLE_CONSOLE
30 
31  class ConsoleDirManager
32  : public singleton<ConsoleDirManager>
33  {
34  public:
35  using singleton<ConsoleDirManager>::instance;
36  using singleton<ConsoleDirManager>::alive;
37 
38  console::ScopedDirectory<> & consoleDir();
39 
40  private:
41  ConsoleDirManager();
42 
43  console::LazyDirectory consoleDir_;
44 
45  friend class singleton<ConsoleDirManager>;
46  };
47 
48 #endif
49 
50 }}}
51 
52 ///////////////////////////////ih.e////////////////////////////////////////
53 #endif
54 
55 
56 // Local Variables:
57 // mode: c++
58 // fill-column: 100
59 // comment-column: 40
60 // c-file-style: "senf"
61 // indent-tabs-mode: nil
62 // ispell-local-dictionary: "american"
63 // compile-command: "scons -u test"
64 // End: