WB-Toolbox  6.0.0
ASimulinkToolboxforWholeBodyControl
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
wbt::block::YarpClock::terminate
bool terminate(const blockfactory::core::BlockInformation *blockInfo) override
Definition: YarpClock.cpp:104
wbt::block::YarpClock::impl
Definition: YarpClock.cpp:34
wbt::block::YarpClock::~YarpClock
~YarpClock() override
wbt::block::YarpClock::initialize
bool initialize(blockfactory::core::BlockInformation *blockInfo) override
Definition: YarpClock.cpp:85
wbt::block::YarpClock::YarpClock
YarpClock()
Definition: YarpClock.cpp:43
wbt
Definition: Configuration.h:17
wbt::block::YarpClock::configureSizeAndPorts
bool configureSizeAndPorts(blockfactory::core::BlockInformation *blockInfo) override
Definition: YarpClock.cpp:54
wbt::block::YarpClock::numberOfParameters
unsigned numberOfParameters() override
Definition: YarpClock.cpp:49
wbt::block::YarpClock::output
bool output(const blockfactory::core::BlockInformation *blockInfo) override
Definition: YarpClock.cpp:109
blockfactory
Definition: WBBlock.h:16
wbt::block::YarpClock
The wbt::YarpClock class.
Definition: YarpClock.h:31
wbt::block::YarpClock::pImpl
std::unique_ptr< impl > pImpl
Definition: YarpClock.h:34