Gazebo Fuel_tools

API Reference

10.0.0~pre2
ResultType.hh
Go to the documentation of this file.
1/*
2 * Copyright (C) 2024 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_RESULTTYPE_HH_
19#define GZ_FUEL_TOOLS_RESULTTYPE_HH_
20
21#if defined(_WIN32) && defined(DELETE)
22// Windows defines "DELETE" as part of the Win32 "Standard Access Rights"
23// Since we aren't using that here, go ahead and undefine so that we can
24// use it as part of the ResultType enum class.
25// Ref: https://learn.microsoft.com/en-us/windows/win32/secauthz/standard-access-rights
26#undef DELETE
27#endif
28
29namespace gz::fuel_tools
30{
32 enum class ResultType
33 {
35 UNKNOWN = 0,
36
38 DELETE,
39
42
46
48 FETCH,
49
52
55
59
61 UPLOAD,
62
65
69
72
74 PATCH,
75 };
76} // namespace gz::fuel_tools
77
78#endif // GZ_FUEL_TOOLS_RESULTTYPE_HH_