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