WB-Toolbox  6.0.1
A Simulink Toolbox for Whole Body Control
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
YarpClock.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * GNU Lesser General Public License v2.1 or any later version.
7  */
8 
9 #ifndef WBT_YARPCLOCK_H
10 #define WBT_YARPCLOCK_H
11 
12 #include <BlockFactory/Core/Block.h>
13 
14 #include <string>
15 
16 namespace wbt {
17  namespace block {
18  class YarpClock;
19  } // namespace block
20 } // namespace wbt
21 
22 namespace blockfactory {
23  namespace core {
24  class BlockInformation;
25  } // namespace core
26 } // namespace blockfactory
27 
31 class wbt::block::YarpClock final : public blockfactory::core::Block
32 {
33 private:
34  class impl;
35  std::unique_ptr<impl> pImpl;
36 
37 public:
38  YarpClock();
39  ~YarpClock() override;
40 
41  unsigned numberOfParameters() override;
42  bool configureSizeAndPorts(blockfactory::core::BlockInformation* blockInfo) override;
43  bool initialize(blockfactory::core::BlockInformation* blockInfo) override;
44  bool terminate(const blockfactory::core::BlockInformation* blockInfo) override;
45  bool output(const blockfactory::core::BlockInformation* blockInfo) override;
46 };
47 
48 #endif // WBT_YARPCLOCK_H
Definition: YarpClock.cpp:35
The wbt::YarpClock class.
Definition: YarpClock.h:32
unsigned numberOfParameters() override
Definition: YarpClock.cpp:49
bool initialize(blockfactory::core::BlockInformation *blockInfo) override
Definition: YarpClock.cpp:85
bool terminate(const blockfactory::core::BlockInformation *blockInfo) override
Definition: YarpClock.cpp:104
bool output(const blockfactory::core::BlockInformation *blockInfo) override
Definition: YarpClock.cpp:109
std::unique_ptr< impl > pImpl
Definition: YarpClock.h:34
bool configureSizeAndPorts(blockfactory::core::BlockInformation *blockInfo) override
Definition: YarpClock.cpp:54
YarpClock()
Definition: YarpClock.cpp:43
Definition: WBBlock.h:16
Definition: Configuration.h:17