YARP
Yet Another Robot Platform
Param.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_PARAM_H
7 #define YARP_ROBOTINTERFACE_PARAM_H
8 
10 
11 namespace yarp {
12 
13 namespace os {
14 class Property;
15 } // namespace os
16 
17 namespace robotinterface {
18 
20 {
21 public:
22  explicit Param(bool isGroup = false);
23  Param(const std::string& name, const std::string& value, bool isGroup = false);
24  Param(const Param& other);
25  Param& operator=(const Param& other);
26 
27  virtual ~Param();
28 
29  std::string& name();
30  std::string& value();
31 
32  const std::string& name() const;
33  const std::string& value() const;
34 
35  bool isGroup() const;
36 
37  yarp::os::Property toProperty() const;
38 
39 private:
40  class Private;
41  Private* const mPriv;
42 }; // class Param
43 
44 } // namespace robotinterface
45 } // namespace yarp
46 
47 namespace std {
48 YARP_robotinterface_API std::ostream& operator<<(std::ostream& oss, const yarp::robotinterface::Param& t);
49 }
51 
52 
53 #endif // YARP_ROBOTINTERFACE_PARAM_H
float t
yarp::os::LogStream operator<<(yarp::os::LogStream dbg, const yarp::robotinterface::Param &t)
Definition: Param.cpp:34
A class for storing options and configuration information.
Definition: Property.h:34
Param(const Param &other)
yarp::robotinterface::Param Param
Definition: Param.h:26
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_robotinterface_API
Definition: api.h:18