vector-constant.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 DYNAMICGRAPH_SOT_VECTOR_CONSTANT_H
11 #define DYNAMICGRAPH_SOT_VECTOR_CONSTANT_H
12 
13 #include <dynamic-graph/entity.h>
14 
15 #include <dynamic-graph/all-signals.h>
16 
17 /* Matrix */
18 #include <dynamic-graph/linear-algebra.h>
19 namespace dg = dynamicgraph;
20 
21 /* --------------------------------------------------------------------- */
22 /* --- VECTOR ---------------------------------------------------------- */
23 /* --------------------------------------------------------------------- */
24 namespace dynamicgraph {
25 namespace sot {
26 
27 namespace command {
28 namespace vectorConstant {
29 class Resize;
30 }
31 } // namespace command
32 
33 class VectorConstant : public Entity {
34  friend class command::vectorConstant::Resize;
35  static const std::string CLASS_NAME;
36  virtual const std::string &getClassName(void) const { return CLASS_NAME; }
37 
38  int rows;
39 
40 public:
41  VectorConstant(const std::string &name);
42 
43  virtual ~VectorConstant(void) {}
44 
45  SignalTimeDependent<dg::Vector, int> SOUT;
46 
48  void setValue(const dg::Vector &inValue);
49 };
50 
51 } // namespace sot
52 } // namespace dynamicgraph
53 
54 #endif // DYNAMICGRAPH_SOT_VECTOR_CONSTANT_H
SignalTimeDependent< dg::Vector, int > SOUT
Definition: vector-constant.hh:45
virtual ~VectorConstant(void)
Definition: vector-constant.hh:43
Definition: vector-constant.hh:33
Definition: abstract-sot-external-interface.hh:17