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
15
16// translate to blobs for now; better translation requires type system
19public:
23
24 void init(int len) {
25 // state that the following data is a list containing 1 blob
27 listLen = 1;
28 blobLen = len;
29 }
30
31};
33
34} // namespace yarp::wire_rep_utils
35
36#endif
#define BOTTLE_TAG_BLOB
Definition: Bottle.h:27
#define BOTTLE_TAG_LIST
Definition: Bottle.h:28
std::int32_t NetInt32
Definition of the NetInt32 type.
Definition: NetInt32.h:29
#define YARP_END_PACK
Ends 1 byte packing for structs/classes.
Definition: system.h:193
#define YARP_BEGIN_PACK
Starts 1 byte packing for structs/classes.
Definition: system.h:192