iCub-main
rawValuesDataVectorsMap.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 
6 // Autogenerated by Thrift Compiler (0.14.1-yarped)
7 //
8 // This is an automatically generated file.
9 // It could get re-generated if the ALLOW_IDL_GENERATION flag is on.
10 
11 #ifndef YARP_THRIFT_GENERATOR_STRUCT_RAWVALUESDATAVECTORSMAP_H
12 #define YARP_THRIFT_GENERATOR_STRUCT_RAWVALUESDATAVECTORSMAP_H
13 
14 #include <yarp/os/Wire.h>
15 #include <yarp/os/idl/WireTypes.h>
16 
17 namespace iCub {
18 
24  public yarp::os::idl::WirePortable
25 {
26 public:
27  // Fields
32  std::map<std::string, std::vector<std::int32_t>> vectorsMap{};
33 
34  // Default constructor
36 
37  // Constructor with field values
38  rawValuesDataVectorsMap(const std::map<std::string, std::vector<std::int32_t>>& vectorsMap);
39 
40  // Read structure on a Wire
41  bool read(yarp::os::idl::WireReader& reader) override;
42 
43  // Read structure on a Connection
44  bool read(yarp::os::ConnectionReader& connection) override;
45 
46  // Write structure on a Wire
47  bool write(const yarp::os::idl::WireWriter& writer) const override;
48 
49  // Write structure on a Connection
50  bool write(yarp::os::ConnectionWriter& connection) const override;
51 
52  // Convert to a printable string
53  std::string toString() const;
54 
55  // If you want to serialize this class without nesting, use this helper
56  typedef yarp::os::idl::Unwrapped<rawValuesDataVectorsMap> unwrapped;
57 
58 private:
59  // read/write vectorsMap field
60  bool read_vectorsMap(yarp::os::idl::WireReader& reader);
61  bool write_vectorsMap(const yarp::os::idl::WireWriter& writer) const;
62  bool nested_read_vectorsMap(yarp::os::idl::WireReader& reader);
63  bool nested_write_vectorsMap(const yarp::os::idl::WireWriter& writer) const;
64 };
65 
66 } // namespace iCub
67 
68 #endif // YARP_THRIFT_GENERATOR_STRUCT_RAWVALUESDATAVECTORSMAP_H
rawValuesDataVectorsMap IDL struct of a map of vectors to store the raw value data sent by the device
bool write(const yarp::os::idl::WireWriter &writer) const override
bool read(yarp::os::idl::WireReader &reader) override
std::map< std::string, std::vector< std::int32_t > > vectorsMap
contain a map of vectors of the raw data as <string, vector> the user wanna send from low to higher l...
yarp::os::idl::Unwrapped< rawValuesDataVectorsMap > unwrapped
yarp::sig::Vector & map(yarp::sig::Vector &v, double(op)(double))
Performs a unary operator inplace on each element of a vector.
Definition: Math.cpp:305
This file contains the definition of unique IDs for the body parts and the skin parts of the robot.