Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
b
c
d
e
f
i
m
n
o
p
s
t
v
w
Functions
Variables
Typedefs
Enumerations
Enumerator
b
c
f
i
m
o
s
t
v
w
Classes
Class List
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
~
Functions
a
c
d
e
f
g
i
n
o
p
r
s
u
v
~
Variables
a
b
c
d
e
f
h
i
m
n
p
r
s
t
v
w
x
y
Typedefs
Enumerations
Enumerator
Files
File List
File Members
All
a
b
c
g
m
s
t
Functions
m
t
Macros
include
create
data.h
Go to the documentation of this file.
1
32
#ifndef CREATE_DATA_H
33
#define CREATE_DATA_H
34
35
#include <map>
36
#include <memory>
37
#include <vector>
38
39
#include "
create/packet.h
"
40
#include "
create/types.h
"
41
42
namespace
create
{
43
class
Data
{
44
private
:
45
std::map<uint8_t, std::shared_ptr<Packet> >
packets
;
46
uint32_t
totalDataBytes
;
47
std::vector<uint8_t>
ids
;
48
49
public
:
50
Data
(
ProtocolVersion
version =
V_3
);
51
~Data
();
52
53
bool
isValidPacketID
(
const
uint8_t
id
)
const
;
54
std::shared_ptr<Packet>
getPacket
(
const
uint8_t
id
);
55
void
validateAll
();
56
uint32_t
getTotalDataBytes
()
const
;
57
uint8_t
getNumPackets
()
const
;
58
std::vector<uint8_t>
getPacketIDs
();
59
};
60
}
// namespace create
61
62
#endif // CREATE_DATA_H
create::Data::ids
std::vector< uint8_t > ids
Definition:
data.h:47
types.h
create::V_3
@ V_3
Definition:
types.h:44
create::Data::isValidPacketID
bool isValidPacketID(const uint8_t id) const
Definition:
data.cpp:58
create::Data::packets
std::map< uint8_t, std::shared_ptr< Packet > > packets
Definition:
data.h:45
create::Data::getPacketIDs
std::vector< uint8_t > getPacketIDs()
Definition:
data.cpp:88
create::Data::Data
Data(ProtocolVersion version=V_3)
Definition:
data.cpp:7
create::Data::getPacket
std::shared_ptr< Packet > getPacket(const uint8_t id)
Definition:
data.cpp:65
create::Data::getTotalDataBytes
uint32_t getTotalDataBytes() const
Definition:
data.cpp:80
packet.h
create::Data
Definition:
data.h:43
create::Data::validateAll
void validateAll()
Definition:
data.cpp:72
create::Data::totalDataBytes
uint32_t totalDataBytes
Definition:
data.h:46
create::Data::~Data
~Data()
Definition:
data.cpp:56
create::Data::getNumPackets
uint8_t getNumPackets() const
Definition:
data.cpp:84
create
Definition:
create.h:48
create::ProtocolVersion
ProtocolVersion
Definition:
types.h:41
libcreate
Author(s): Jacob Perron
autogenerated on Wed May 24 2023 02:24:57