periodic-call-entity.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_PERIODICCALL_ENTITY_HH__
11 #define __SOT_PERIODICCALL_ENTITY_HH__
12 
13 /* --------------------------------------------------------------------- */
14 /* --- INCLUDE --------------------------------------------------------- */
15 /* --------------------------------------------------------------------- */
16 
17 /* SOT */
19 #include <dynamic-graph/entity.h>
20 
23 /* STD */
24 #include <list>
25 #include <map>
26 #include <string>
27 
28 /* --------------------------------------------------------------------- */
29 /* --- API ------------------------------------------------------------- */
30 /* --------------------------------------------------------------------- */
31 
32 #if defined(WIN32)
33 #if defined(periodic_call_entity_EXPORTS)
34 #define PeriodicCallEntity_EXPORT __declspec(dllexport)
35 #else
36 #define PeriodicCallEntity_EXPORT __declspec(dllimport)
37 #endif
38 #else
39 #define PeriodicCallEntity_EXPORT
40 #endif
41 
42 /* --------------------------------------------------------------------- */
43 /* --- CLASS ----------------------------------------------------------- */
44 /* --------------------------------------------------------------------- */
45 
46 namespace dynamicgraph {
47 namespace sot {
48 
57  : public Entity,
58  protected sot::PeriodicCall {
59  public:
60  static const std::string CLASS_NAME;
61  virtual const std::string &getClassName(void) const { return CLASS_NAME; }
62 
65 
66  int &trigerCall(int &dummy, const int &time);
67  int &trigerOnceCall(int &dummy, const int &time);
68 
69  /* --- FUNCTIONS ------------------------------------------------------------
70  */
71  public:
72  PeriodicCallEntity(const std::string &name);
73  virtual ~PeriodicCallEntity(void) {}
74 
75  virtual void display(std::ostream &os) const;
76 };
77 
78 } // namespace sot
79 } // namespace dynamicgraph
80 
81 #endif // #ifndef __SOT_PERIODICCALL_ENTITY_HH__
82 
83 /*
84  * Local variables:
85  * c-basic-offset: 2
86  * End:
87  */
DummyClass dummy
Definition: test_signal.cpp:31
virtual const std::string & getClassName(void) const
#define PeriodicCallEntity_EXPORT


sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Wed Jun 21 2023 02:51:26