YARP
Yet Another Robot Platform
BlobNetworkHeader.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 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
YARP_END_PACK
#define YARP_END_PACK
Ends 1 byte packing for structs/classes.
Definition: system.h:194
BOTTLE_TAG_LIST
#define BOTTLE_TAG_LIST
Definition: Bottle.h:30
NetInt32.h
YARP_BEGIN_PACK
#define YARP_BEGIN_PACK
Starts 1 byte packing for structs/classes.
Definition: system.h:193
yarp::wire_rep_utils::BlobNetworkHeader
Definition: BlobNetworkHeader.h:22
yarp::wire_rep_utils::BlobNetworkHeader::listTag
yarp::os::NetInt32 listTag
Definition: BlobNetworkHeader.h:24
yarp::wire_rep_utils::BlobNetworkHeader::init
void init(int len)
Definition: BlobNetworkHeader.h:28
yarp::wire_rep_utils::BlobNetworkHeader::listLen
yarp::os::NetInt32 listLen
Definition: BlobNetworkHeader.h:25
yarp::wire_rep_utils::BlobNetworkHeader::blobLen
yarp::os::NetInt32 blobLen
Definition: BlobNetworkHeader.h:26
system.h
BOTTLE_TAG_BLOB
#define BOTTLE_TAG_BLOB
Definition: Bottle.h:29
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18
Bottle.h
yarp::os::NetInt32
std::int32_t NetInt32
Definition of the NetInt32 type.
Definition: NetInt32.h:33