SENF Extensible Network Framework
Home
Overview
Examples
HowTos
Glossary
Ext
NetEmu
PPI
Packets
Scheduler
Socket
Utils
Console
Daemon
Logger
Termlib
DumpFormat.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 "DumpFormat.ih"
19
20
// Custom includes
21
#include <algorithm>
22
#include <senf/config.hh>
23
24
//#include "DumpFormat.mpp"
25
#define prefix_
26
//-/////////////////////////////////////////////////////////////////////////////////////////////////
27
28
prefix_
std::string
senf::fieldName
(std::string
const
& s)
29
{
30
std::string t (std::max(
std::string::size_type
(SENF_PACKET_DUMP_COLON_COLUMN+1), s.size()+5),
' '
);
31
std::copy
(s.begin(), s.end(), t.begin()+2);
32
t[t.size()-2] =
':'
;
33
return
t;
34
}
35
36
//-/////////////////////////////////////////////////////////////////////////////////////////////////
37
#undef prefix_
38
//#include "DumpFormat.mpp"
39
40
41
// Local Variables:
42
// mode: c++
43
// fill-column: 100
44
// comment-column: 40
45
// c-file-style: "senf"
46
// indent-tabs-mode: nil
47
// ispell-local-dictionary: "american"
48
// compile-command: "scons -u test"
49
// End:
senf::copy
void copy(ListParser< ListPolicy > const &listParser, OutputIterator result)
Definition:
algorithms.hh:58
senf::fieldName
std::string fieldName(std::string const &s)
Definition:
DumpFormat.cc:28
Packets.hh
Packets public header.
prefix_
#define prefix_
Definition:
DumpFormat.cc:25
senf::detail::packet::size_type
raw_container::size_type size_type
Definition:
PacketTypes.hh:66