YARP
Yet Another Robot Platform
BlobNetworkHeader.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * Copyright (C) 2006-2010 RobotCub Consortium
4  * All rights reserved.
5  *
6  * This software may be modified and distributed under the terms of the
7  * BSD-3-Clause license. See the accompanying LICENSE file for details.
8  */
9 
10 #ifndef BLOBHEADER_INC
11 #define BLOBHEADER_INC
12 
13 #include <yarp/conf/system.h>
14 #include <yarp/os/Bottle.h>
15 #include <yarp/os/NetInt32.h>
16 
17 namespace yarp {
18 namespace wire_rep_utils {
19 
20 // translate to blobs for now; better translation requires type system
23 public:
27 
28  void init(int len) {
29  // state that the following data is a list containing 1 blob
31  listLen = 1;
32  blobLen = len;
33  }
34 
35 };
37 
38 } // namespace wire_rep_utils
39 } // namespace yarp
40 
41 #endif
#define BOTTLE_TAG_BLOB
Definition: Bottle.h:29
#define BOTTLE_TAG_LIST
Definition: Bottle.h:30
std::int32_t NetInt32
Definition of the NetInt32 type.
Definition: NetInt32.h:33
The main, catch-all namespace for YARP.
Definition: environment.h:25
#define YARP_END_PACK
Ends 1 byte packing for structs/classes.
Definition: system.h:194
#define YARP_BEGIN_PACK
Starts 1 byte packing for structs/classes.
Definition: system.h:193