Gazebo Fuel_tools
API Reference
10.0.0
insert_drive_file
Tutorials
library_books
Classes
toc
Namespaces
insert_drive_file
Files
launch
Gazebo Website
Index
List
Hierarchy
Members: All
Members: Functions
Members: Variables
Members: Typedefs
Members: Enumerations
Members: Enumerator
List
Members
Functions
Typedefs
Variables
Enumerations
Enumerator
src
gz-fuel-tools
include
gz
fuel_tools
Result.hh
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2017 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_FUEL_TOOLS_RESULT_HH_
19
#define GZ_FUEL_TOOLS_RESULT_HH_
20
21
#include <memory>
22
#include <string>
23
24
#include "gz/fuel_tools/Export.hh"
25
#include "
gz/fuel_tools/ResultType.hh
"
26
27
#ifdef _WIN32
28
// Disable warning C4251 which is triggered by
29
// std::unique_ptr
30
#pragma warning(push)
31
#pragma warning(disable: 4251)
32
#endif
33
34
namespace
gz::fuel_tools
35
{
36
// forward declaration
37
class
ResultPrivate;
38
class
Model;
39
41
class
GZ_FUEL_TOOLS_VISIBLE
Result
42
{
44
public
:
Result
();
45
47
public
:
virtual
~Result
();
48
51
public
:
explicit
Result
(
const
ResultType
_type);
52
55
public
:
Result
(
const
Result
&_result);
56
59
public
:
Result
(
Result
&&_result)
noexcept
;
// NOLINT
60
63
public
:
Result
&
operator=
(
const
Result
&_result);
64
68
public
:
Result
&
operator=
(
Result
&&_result)
noexcept
;
// NOLINT
69
72
public
:
ResultType
Type
()
const
;
73
76
public
:
virtual
operator
bool()
const
;
77
80
public
:
virtual
std::string
ReadableResult
()
const
;
81
83
private
:
std::unique_ptr<ResultPrivate>
dataPtr;
84
};
85
}
// namespace gz::fuel_tools
86
87
#ifdef _MSC_VER
88
#pragma warning(pop)
89
#endif
90
91
#endif
// GZ_FUEL_TOOLS_RESULT_HH_