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  size_type &trigerCall(size_type &dummy, const sigtime_t &time);
67  size_type &trigerOnceCall(size_type &dummy, const sigtime_t &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  */
dynamicgraph::Signal< size_type, sigtime_t >
PeriodicCallEntity_EXPORT
#define PeriodicCallEntity_EXPORT
Definition: periodic-call-entity.hh:39
periodic-call-entity.hh
dynamicgraph
dynamicgraph::Entity
dynamicgraph::sigtime_t
int64_t sigtime_t
dummy
DummyClass dummy
Definition: test_signal.cpp:31
all-signals.h
dynamicgraph::size_type
Matrix::Index size_type
dynamicgraph::sot::PeriodicCallEntity
Definition: periodic-call-entity.hh:56
display
periodic-call.hh
dynamicgraph::sot::PeriodicCallEntity::CLASS_NAME
static const std::string CLASS_NAME
Definition: periodic-call-entity.hh:60
dynamicgraph::sot::PeriodicCallEntity::~PeriodicCallEntity
virtual ~PeriodicCallEntity(void)
Definition: periodic-call-entity.hh:73
dynamicgraph::sot::PeriodicCall
Definition: periodic-call.hh:37
dynamicgraph::sot::PeriodicCallEntity::triger
Signal< size_type, sigtime_t > triger
Definition: periodic-call-entity.hh:63
dynamicgraph::sot::PeriodicCallEntity::getClassName
virtual const std::string & getClassName(void) const
Definition: periodic-call-entity.hh:61
dynamicgraph::sot::PeriodicCallEntity::trigerOnce
Signal< size_type, sigtime_t > trigerOnce
Definition: periodic-call-entity.hh:64
compile.name
name
Definition: compile.py:23


sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:31