herald  2.0.0
payload_data.h
1 // Copyright 2020-2021 Herald Project Contributors
2 // SPDX-License-Identifier: Apache-2.0
3 //
4 
5 #ifndef HERALD_PAYLOAD_DATA_H
6 #define HERALD_PAYLOAD_DATA_H
7 
8 #include "data.h"
9 
10 namespace herald {
11 namespace datatype {
12 
13 class PayloadData : public Data {
14 public:
15  PayloadData();
16  PayloadData(const Data& from);
17  PayloadData(const std::byte* data, std::size_t length);
18  PayloadData(std::byte repeating, std::size_t count);
19  ~PayloadData() = default;
20 
21  std::string shortName() const;
22  std::string toString() const;
23 };
24 
25 } // end namespace
26 } // end namespace
27 
28 #endif
The main data workhorse class of the Herald API.
Definition: data.h:33
Definition: payload_data.h:13
Acts as a non-global memory arena for arbitrary classes.
Definition: aggregates.h:15