YARP
Yet Another Robot Platform
Action.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 #ifndef YARP_ROBOTINTERFACE_ACTION_H
10 #define YARP_ROBOTINTERFACE_ACTION_H
11 
13 
14 namespace yarp {
15 namespace robotinterface {
16 namespace experimental {
17 
19 {
20 public:
21  explicit Action();
22  Action(ActionPhase phase, ActionType type, unsigned int level);
23  Action(const std::string& phase, const std::string& type, unsigned int level);
24  Action(const Action& other);
25  Action& operator=(const Action& other);
26 
27  ActionPhase& phase();
28  ActionType& type();
29  unsigned int& level();
30  ParamList& params();
31 
32  ActionPhase phase() const;
33  ActionType type() const;
34  unsigned int level() const;
35  const ParamList& params() const;
36 
37  bool hasParam(const std::string& name) const;
38  std::string findParam(const std::string& name) const;
39 
40  virtual ~Action();
41 
42 private:
43  class Private;
44  Private* const mPriv;
45 }; // class Action
46 
47 } // namespace experimental
48 } // namespace robotinterface
49 } // namespace yarp
50 
51 
52 namespace std {
54 }
56 
57 
58 #endif // YARP_ROBOTINTERFACE_ACTION_H
yarp::os::LogStream operator<<(yarp::os::LogStream dbg, const yarp::robotinterface::experimental::Action &t)
Definition: Action.cpp:47
float t
std::string findParam(const robotinterface::experimental::ParamList &list, const std::string &name)
Definition: Types.cpp:29
bool hasParam(const robotinterface::experimental::ParamList &list, const std::string &name)
Definition: Types.cpp:19
std::vector< robotinterface::experimental::Param > ParamList
Definition: Types.h:32
The main, catch-all namespace for YARP.
Definition: environment.h:18
#define YARP_robotinterface_API
Definition: api.h:19