sot-core  4.11.8
Hierarchical task solver plug-in for dynamic-graph.
binary-int-to-uint.hh
Go to the documentation of this file.
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 
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
#define SOTBINARYINTTOUINT_EXPORT
Definition: binary-int-to-uint.hh:34
Definition: binary-int-to-uint.hh:40
dynamicgraph::SignalTimeDependent< unsigned, int > binaryUintSOUT
Definition: binary-int-to-uint.hh:48
virtual const std::string & getClassName(void) const
Definition: binary-int-to-uint.hh:43
virtual ~BinaryIntToUint()
Definition: binary-int-to-uint.hh:52
BinaryIntToUint(const std::string &name)
virtual unsigned & computeOutput(unsigned &res, int time)
dynamicgraph::SignalPtr< int, int > binaryIntSIN
Definition: binary-int-to-uint.hh:47
static const std::string CLASS_NAME
Definition: binary-int-to-uint.hh:42
virtual void display(std::ostream &os) const
Definition: abstract-sot-external-interface.hh:17