InterpretedCanMessage.cpp
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 // This file is part of FZIs ic_workspace.
5 //
6 // This program is free software licensed under the LGPL
7 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
8 // You can find a copy of this license in LICENSE folder in the top
9 // directory of the source code.
10 //
11 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
12 //
13 // -- END LICENSE BLOCK ------------------------------------------------
14 
15 //----------------------------------------------------------------------
22 //----------------------------------------------------------------------
23 #include "InterpretedCanMessage.h"
24 
25 #include <boost/foreach.hpp>
26 
27 namespace icl_hardware {
28 namespace can {
29 
31  const std::string& description,
32  const std::string& unit)
33  : value(value),
34  description(description),
35  unit(unit)
36 { }
37 
38 std::ostream& operator<<(std::ostream& os, InterpretedCanMessages const& interpreted_can_messages)
39 {
40  os << "Vector of interpreted CAN messages with " << interpreted_can_messages.size() << " messages.";
41 
42  BOOST_FOREACH(InterpretedCanMessage msg, interpreted_can_messages)
43  {
44  os << " -" << msg.description << "-" << msg.value << "-" << msg.unit << "- ";
45  }
46 
47  return os;
48 }
49 
50 }
51 }
std::ostream & operator<<(std::ostream &os, InterpretedCanMessages const &interpreted_can_messages)
InterpretedCanMessage(const double value=0, const std::string &description="", const std::string &unit="")
Constructor.
std::vector< InterpretedCanMessage > InterpretedCanMessages


fzi_icl_can
Author(s):
autogenerated on Mon Jun 10 2019 13:17:02