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
12
14{
15public:
16 explicit Action();
17 Action(ActionPhase phase, ActionType type, unsigned int level);
18 Action(const std::string& phase, const std::string& type, unsigned int level);
19 Action(const Action& other);
20 Action& operator=(const Action& other);
21
22 ActionPhase& phase();
23 ActionType& type();
24 unsigned int& level();
25 ParamList& params();
26
27 ActionPhase phase() const;
28 ActionType type() const;
29 unsigned int level() const;
30 const ParamList& params() const;
31
32 bool hasParam(const std::string& name) const;
33 std::string findParam(const std::string& name) const;
34
35 virtual ~Action();
36
37private:
38 class Private;
39 Private* const mPriv;
40}; // class Action
41
42} // namespace yarp::robotinterface
43
44
46
47
48#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:30
std::string findParam(const robotinterface::ParamList &list, const std::string &name)
Definition: Types.cpp:26
#define YARP_robotinterface_API
Definition: api.h:18