Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
b
c
d
e
h
i
l
m
n
p
r
s
u
x
Typedefs
b
c
d
e
f
g
i
m
p
r
u
v
Enumerations
Enumerator
a
b
f
g
i
m
n
r
s
u
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
h
i
m
n
p
q
r
s
t
u
v
x
Enumerations
a
c
d
e
f
k
l
m
p
r
s
t
v
w
Enumerator
a
b
d
f
g
h
i
l
m
n
o
p
r
s
u
v
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
v
w
Functions
b
c
d
e
f
g
m
o
p
r
s
t
u
v
w
Variables
a
b
c
d
e
f
i
k
l
m
n
o
p
r
s
t
w
Typedefs
Enumerations
Enumerator
Macros
_
d
f
i
m
n
p
s
t
u
shared
depthai-shared
include
depthai-shared
datatype
RawMessageGroup.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstdint>
4
5
#include "
depthai-shared/datatype/DatatypeEnum.hpp
"
6
#include "
depthai-shared/datatype/RawBuffer.hpp
"
7
8
namespace
dai
{
9
10
struct
RawGroupMessage
{
11
std::shared_ptr<RawBuffer>
buffer
;
12
uint32_t
index
= 0;
13
14
DEPTHAI_SERIALIZE
(
RawGroupMessage
,
index
);
15
};
16
17
}
// namespace dai
18
19
namespace
dai
{
20
21
struct
RawMessageGroup
:
public
RawBuffer
{
22
std::unordered_map<std::string, RawGroupMessage>
group
;
23
24
public
:
25
void
serialize
(std::vector<std::uint8_t>& metadata,
DatatypeEnum
& datatype)
const override
{
26
metadata =
utility::serialize
(*
this
);
27
datatype =
DatatypeEnum::MessageGroup
;
28
};
29
30
DatatypeEnum
getType
()
const override
{
31
return
DatatypeEnum::MessageGroup
;
32
}
33
34
DEPTHAI_SERIALIZE
(
RawMessageGroup
,
group
,
RawBuffer::ts
,
RawBuffer::tsDevice
,
RawBuffer::sequenceNum
);
35
};
36
37
}
// namespace dai
dai::DatatypeEnum
DatatypeEnum
Definition:
DatatypeEnum.hpp:7
dai::utility::serialize
bool serialize(const T &obj, std::vector< std::uint8_t > &data)
Definition:
Serialization.hpp:38
DatatypeEnum.hpp
dai::RawMessageGroup
Definition:
RawMessageGroup.hpp:21
dai::RawBuffer::sequenceNum
int64_t sequenceNum
Definition:
RawBuffer.hpp:16
dai::RawGroupMessage
Definition:
RawMessageGroup.hpp:10
dai::RawBuffer::tsDevice
Timestamp tsDevice
Definition:
RawBuffer.hpp:18
RawBuffer.hpp
dai::DatatypeEnum::MessageGroup
@ MessageGroup
dai::RawMessageGroup::group
std::unordered_map< std::string, RawGroupMessage > group
Definition:
RawMessageGroup.hpp:22
dai::RawMessageGroup::getType
DatatypeEnum getType() const override
Definition:
RawMessageGroup.hpp:30
dai::RawGroupMessage::index
uint32_t index
Definition:
RawMessageGroup.hpp:12
dai::RawGroupMessage::buffer
std::shared_ptr< RawBuffer > buffer
Definition:
RawMessageGroup.hpp:11
dai::RawBuffer
RawBuffer structure.
Definition:
RawBuffer.hpp:12
dai::RawMessageGroup::DEPTHAI_SERIALIZE
DEPTHAI_SERIALIZE(RawMessageGroup, group, RawBuffer::ts, RawBuffer::tsDevice, RawBuffer::sequenceNum)
dai
Definition:
CameraExposureOffset.hpp:6
dai::RawGroupMessage::DEPTHAI_SERIALIZE
DEPTHAI_SERIALIZE(RawGroupMessage, index)
dai::RawMessageGroup::serialize
void serialize(std::vector< std::uint8_t > &metadata, DatatypeEnum &datatype) const override
Definition:
RawMessageGroup.hpp:25
dai::RawBuffer::ts
Timestamp ts
Definition:
RawBuffer.hpp:17
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19