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
20 public:
24 
25  void init(int len) {
26  // state that the following data is a list containing 1 blob
28  listLen = 1;
29  blobLen = len;
30  }
31 
32 };
34 
35 } // namespace wire_rep_utils
36 } // namespace yarp
37 
38 #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:30
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_END_PACK
Ends 1 byte packing for structs/classes.
Definition: system.h:191
#define YARP_BEGIN_PACK
Starts 1 byte packing for structs/classes.
Definition: system.h:190