YARP
Yet Another Robot Platform
Action.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 
6 #ifndef YARP_ROBOTINTERFACE_ACTION_H
7 #define YARP_ROBOTINTERFACE_ACTION_H
8 
10 
11 namespace yarp {
12 namespace robotinterface {
13 
15 {
16 public:
17  explicit Action();
18  Action(ActionPhase phase, ActionType type, unsigned int level);
19  Action(const std::string& phase, const std::string& type, unsigned int level);
20  Action(const Action& other);
21  Action& operator=(const Action& other);
22 
23  ActionPhase& phase();
24  ActionType& type();
25  unsigned int& level();
26  ParamList& params();
27 
28  ActionPhase phase() const;
29  ActionType type() const;
30  unsigned int level() const;
31  const ParamList& params() const;
32 
33  bool hasParam(const std::string& name) const;
34  std::string findParam(const std::string& name) const;
35 
36  virtual ~Action();
37 
38 private:
39  class Private;
40  Private* const mPriv;
41 }; // class Action
42 
43 } // namespace robotinterface
44 } // namespace yarp
45 
46 
48 
49 
50 #endif // YARP_ROBOTINTERFACE_ACTION_H
yarp::os::LogStream operator<<(yarp::os::LogStream dbg, const yarp::robotinterface::Action &t)
Definition: Action.cpp:31
float t
yarp::robotinterface::Action Action
Definition: Action.h:26
bool hasParam(const robotinterface::ParamList &list, const std::string &name)
Definition: Types.cpp:16
std::vector< robotinterface::Param > ParamList
Definition: Types.h:28
std::string findParam(const robotinterface::ParamList &list, const std::string &name)
Definition: Types.cpp:26
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_robotinterface_API
Definition: api.h:18