Gazebo Transport

API Reference

11.4.1
gz/transport/parameters/result.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2022 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 
18 #ifndef GZ_TRANSPORT_PARAMETERS_EXCEPTIONS_HH_
19 #define GZ_TRANSPORT_PARAMETERS_EXCEPTIONS_HH_
20 
21 #include <ostream>
22 #include <string>
23 
24 #include "gz/transport/config.hh"
25 #include "gz/transport/parameters/Export.hh"
26 
28 {
29  // Inline bracket to help doxygen filtering.
30  inline namespace IGNITION_TRANSPORT_VERSION_NAMESPACE {
31  enum class IGNITION_TRANSPORT_PARAMETERS_VISIBLE
33  ParameterResultType {
40  };
41 
46  public: IGNITION_TRANSPORT_PARAMETERS_VISIBLE
47  explicit ParameterResult(ParameterResultType _resultType);
48 
52  public: IGNITION_TRANSPORT_PARAMETERS_VISIBLE
54  ParameterResultType _resultType, const std::string & _paramName);
55 
60  public: IGNITION_TRANSPORT_PARAMETERS_VISIBLE
62  ParameterResultType _resultType,
63  const std::string & _paramName,
64  const std::string & _paramType);
65 
67  public: IGNITION_TRANSPORT_PARAMETERS_VISIBLE
68  ParameterResultType ResultType() const;
69 
71  public: IGNITION_TRANSPORT_PARAMETERS_VISIBLE
72  const std::string & ParamName() const;
73 
75  public: IGNITION_TRANSPORT_PARAMETERS_VISIBLE
76  const std::string & ParamType() const;
77 
80  public: IGNITION_TRANSPORT_PARAMETERS_VISIBLE
81  explicit operator bool() const;
82 
83  private: ParameterResultType resultType;
84  private: std::string paramName;
85  private: std::string paramType;
86  };
87 
89  IGNITION_TRANSPORT_PARAMETERS_VISIBLE
91  }
92 }
93 
94 #endif
STL class.
The return type used in all falible parameters methods.
Definition: gz/transport/parameters/result.hh:43
AlreadyDeclared
Definition: gz/transport/parameters/result.hh:35
IGNITION_TRANSPORT_PARAMETERS_VISIBLE ParameterResult(ParameterResultType _resultType)
Construct.
NotDeclared
Definition: gz/transport/parameters/result.hh:37
ClientTimeout
Definition: gz/transport/parameters/result.hh:38
Unexpected
Definition: gz/transport/parameters/result.hh:39
IGNITION_TRANSPORT_PARAMETERS_VISIBLE ParameterResultType ResultType() const
Return the result type.
STL class.
IGNITION_TRANSPORT_PARAMETERS_VISIBLE std::ostream & operator<<(std::ostream &, const ParameterResult &)
Stream operator, for debug output.
InvalidType
Definition: gz/transport/parameters/result.hh:36
const IGNITION_TRANSPORT_PARAMETERS_VISIBLE std::string & ParamType() const
Return the related parameter type.
const IGNITION_TRANSPORT_PARAMETERS_VISIBLE std::string & ParamName() const
Return the related parameter name.
Definition: gz/transport/parameters/Client.hh:33
Success
Definition: gz/transport/parameters/result.hh:34