Fixposition SDK 0.0.0-heads/main-0-g90a51ff
Collection of c++ libraries and apps for use with Fixposition products
Loading...
Searching...
No Matches
common.hpp
Go to the documentation of this file.
1/**
2 * \verbatim
3 * ___ ___
4 * \ \ / /
5 * \ \/ / Copyright (c) Fixposition AG (www.fixposition.com) and contributors
6 * / /\ \ License: see the LICENSE file
7 * /__/ \__\
8 * \endverbatim
9 *
10 * @file
11 * @brief Fixposition SDK: common app utils
12 */
13#ifndef __FPSDK_APPS_PCOMMOM_HPP__
14#define __FPSDK_APPS_PCOMMOM_HPP__
15
16/* LIBC/STL */
17#include <cstdint>
18#include <string>
19#include <vector>
20
21/* EXTERNAL */
22
23/* Fixposition SDK */
26
27/* PACKAGE */
28
29namespace fpsdk {
30namespace apps {
31/**
32 * @brief common apps utils
33 */
34namespace common {
35/* ****************************************************************************************************************** */
36
37/**
38 * @brief Print header for PrintMessageData() to stdout
39 */
41
42/**
43 * @brief Print message summary to stdout
44 *
45 * @param[in] msg The message
46 * @param[in] offs Offset [bytes] of message in data (stream, file)
47 * @param[in] hexdump Print also hexdump
48 */
49void PrintMessageData(const ::fpsdk::common::parser::ParserMsg& msg, const std::size_t offs, const bool hexdump);
50
51/**
52 * @brief Print parser stats to stdout
53 *
54 * @param[in] stats The stats
55 */
56void PrintParserStats(const ::fpsdk::common::parser::ParserStats& stats);
57
58/* ****************************************************************************************************************** */
59} // namespace common
60} // namespace apps
61} // namespace fpsdk
62#endif // __FPSDK_APPS_PCOMMOM_HPP__
Fixposition SDK: Logging.
void PrintMessageData(const ::fpsdk::common::parser::ParserMsg &msg, const std::size_t offs, const bool hexdump)
Print message summary to stdout.
void PrintMessageHeader()
Print header for PrintMessageData() to stdout.
void PrintParserStats(const ::fpsdk::common::parser::ParserStats &stats)
Print parser stats to stdout.
Fixposition SDK.
Fixposition SDK: Parser.