herald
2.0.0
Main Page
Namespaces
Namespace List
Namespace Members
All
Functions
Typedefs
Enumerations
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
u
v
~
Functions
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
u
v
~
Variables
Related Functions
Files
File List
•
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
herald
include
herald
data
payload_data_formatter.h
1
// Copyright 2021 Herald Project Contributors
2
// SPDX-License-Identifier: Apache-2.0
3
//
4
5
#ifndef HERALD_PAYLOAD_DATA_FORMATTER_H
6
#define HERALD_PAYLOAD_DATA_FORMATTER_H
7
8
#include "../datatype/payload_data.h"
9
10
#include <string>
11
12
namespace
herald::data {
13
14
using namespace
herald::datatype
;
15
16
class
PayloadDataFormatter
{
17
public
:
18
PayloadDataFormatter
() =
default
;
19
virtual
~
PayloadDataFormatter
() =
default
;
20
21
virtual
std::string shortFormat(
const
PayloadData
& payloadData)
const
noexcept = 0;
22
};
23
24
class
ConcretePayloadDataFormatter
:
public
PayloadDataFormatter
{
25
public
:
26
ConcretePayloadDataFormatter
() =
default
;
27
~
ConcretePayloadDataFormatter
() =
default
;
28
29
std::string shortFormat(
const
PayloadData
& payloadData)
const
noexcept
override
;
30
};
31
32
}
33
34
#endif
herald::data::ConcretePayloadDataFormatter
Definition:
payload_data_formatter.h:24
herald::data::PayloadDataFormatter
Definition:
payload_data_formatter.h:16
herald::datatype::PayloadData
Definition:
payload_data.h:13
herald::datatype
Contains all low-level Herald datatype implementations.
Definition:
base64_string.h:14
Generated by
1.9.1