YARP
Yet Another Robot Platform
BlobNetworkHeader.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3
* SPDX-FileCopyrightText: 2006-2010 RobotCub Consortium
4
* SPDX-License-Identifier: BSD-3-Clause
5
*/
6
7
#ifndef BLOBHEADER_INC
8
#define BLOBHEADER_INC
9
10
#include <
yarp/conf/system.h
>
11
#include <
yarp/os/Bottle.h
>
12
#include <
yarp/os/NetInt32.h
>
13
14
namespace
yarp
{
15
namespace
wire_rep_utils {
16
17
// translate to blobs for now; better translation requires type system
18
YARP_BEGIN_PACK
19
class
BlobNetworkHeader
{
20
public
:
21
yarp::os::NetInt32
listTag
;
22
yarp::os::NetInt32
listLen
;
23
yarp::os::NetInt32
blobLen
;
24
25
void
init
(
int
len) {
26
// state that the following data is a list containing 1 blob
27
listTag
=
BOTTLE_TAG_LIST
+
BOTTLE_TAG_BLOB
;
28
listLen
= 1;
29
blobLen
= len;
30
}
31
32
};
33
YARP_END_PACK
34
35
}
// namespace wire_rep_utils
36
}
// namespace yarp
37
38
#endif
Bottle.h
BOTTLE_TAG_BLOB
#define BOTTLE_TAG_BLOB
Definition:
Bottle.h:27
BOTTLE_TAG_LIST
#define BOTTLE_TAG_LIST
Definition:
Bottle.h:28
NetInt32.h
yarp::wire_rep_utils::BlobNetworkHeader
Definition:
BlobNetworkHeader.h:19
yarp::wire_rep_utils::BlobNetworkHeader::listLen
yarp::os::NetInt32 listLen
Definition:
BlobNetworkHeader.h:22
yarp::wire_rep_utils::BlobNetworkHeader::blobLen
yarp::os::NetInt32 blobLen
Definition:
BlobNetworkHeader.h:23
yarp::wire_rep_utils::BlobNetworkHeader::init
void init(int len)
Definition:
BlobNetworkHeader.h:25
yarp::wire_rep_utils::BlobNetworkHeader::listTag
yarp::os::NetInt32 listTag
Definition:
BlobNetworkHeader.h:21
yarp::os::NetInt32
std::int32_t NetInt32
Definition of the NetInt32 type.
Definition:
NetInt32.h:30
yarp
The main, catch-all namespace for YARP.
Definition:
dirs.h:16
system.h
YARP_END_PACK
#define YARP_END_PACK
Ends 1 byte packing for structs/classes.
Definition:
system.h:191
YARP_BEGIN_PACK
#define YARP_BEGIN_PACK
Starts 1 byte packing for structs/classes.
Definition:
system.h:190
YARP
3.5.1
src
libYARP_wire_rep_utils
src
yarp
wire_rep_utils
BlobNetworkHeader.h
Generated on Sat Dec 25 2021 02:23:06 for YARP by
1.9.1