GCC Code Coverage Report


Directory: ./
File: include/sot/core/binary-int-to-uint.hh
Date: 2024-12-13 12:22:33
Exec Total Coverage
Lines: 0 2 0.0%
Branches: 0 0 -%

Line Branch Exec Source
1 /*
2 * Copyright 2010,
3 * François Bleibel,
4 * Olivier Stasse,
5 *
6 * CNRS/AIST
7 *
8 */
9
10 #ifndef __SOT_BINARY_INT_TO_UINT_HH__
11 #define __SOT_BINARY_INT_TO_UINT_HH__
12
13 /* --------------------------------------------------------------------- */
14 /* --- INCLUDE --------------------------------------------------------- */
15 /* --------------------------------------------------------------------- */
16
17 /* SOT */
18 #include <dynamic-graph/all-signals.h>
19 #include <dynamic-graph/entity.h>
20
21 #include <sot/core/exception-task.hh>
22
23 /* --------------------------------------------------------------------- */
24 /* --- API ------------------------------------------------------------- */
25 /* --------------------------------------------------------------------- */
26
27 #if defined(WIN32)
28 #if defined(binary_int_to_uint_EXPORTS)
29 #define SOTBINARYINTTOUINT_EXPORT __declspec(dllexport)
30 #else
31 #define SOTBINARYINTTOUINT_EXPORT __declspec(dllimport)
32 #endif
33 #else
34 #define SOTBINARYINTTOUINT_EXPORT
35 #endif
36
37 namespace dynamicgraph {
38 namespace sot {
39
40 class SOTBINARYINTTOUINT_EXPORT BinaryIntToUint : public dynamicgraph::Entity {
41 public:
42 static const std::string CLASS_NAME;
43 virtual const std::string &getClassName(void) const { return CLASS_NAME; }
44
45 /* --- SIGNALS ------------------------------------------------------------ */
46 public:
47 dynamicgraph::SignalPtr<int, int> binaryIntSIN;
48 dynamicgraph::SignalTimeDependent<unsigned, int> binaryUintSOUT;
49
50 public:
51 BinaryIntToUint(const std::string &name);
52 virtual ~BinaryIntToUint() {}
53
54 virtual unsigned &computeOutput(unsigned &res, int time);
55
56 virtual void display(std::ostream &os) const;
57 };
58
59 } /* namespace sot */
60 } /* namespace dynamicgraph */
61
62 #endif
63