IOLink 1.16.1
Loading...
Searching...
No Matches
PrettyPrintOptions.h
1#pragma once
2
3#include <iolink/IOLinkAPI.h>
4
5#include <cstdint>
6#include <string>
7
8namespace iolink
9{
10
14class IOLINK_API PrettyPrintOptions final
15{
16public:
20
23 PrettyPrintOptions& operator=(const PrettyPrintOptions& other);
24
25 PrettyPrintOptions(PrettyPrintOptions&& other) noexcept;
26 PrettyPrintOptions& operator=(PrettyPrintOptions&& other) noexcept;
27
29
33 uint32_t maxDepth() const;
34
38 bool displayValues() const;
39
43 int32_t maxValueCount() const;
44
48 int32_t maxStringLength() const;
49
53 int32_t maxChildCount() const;
54
58 int32_t indentSize() const;
59
63 bool displayType() const;
64
68 const std::string& floatFormat() const;
69
72 void setMaxDepth(uint32_t maxDepth);
73
76 void setDisplayValues(bool displayValues);
77
80 void setMaxValueCount(int32_t maxValueCount);
81
84 void setMaxStringLength(int32_t maxStringLength);
85
88 void setMaxChildCount(int32_t maxChildCount);
89
92 void setIndentSize(int32_t indentSize);
93
96 void setDisplayType(bool displayType);
97
100 void setFloatFormat(const std::string& floatFormat);
101
102private:
103private:
104 class Private;
105 Private* m_private;
106};
107
108} // namespace iolink