Gazebo Fuel_tools

API Reference

10.0.0
CollectionIdentifier.hh
Go to the documentation of this file.
1/*
2 * Copyright (C) 2020 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_COLLECTIONIDENTIFIER_HH_
19#define GZ_FUEL_TOOLS_COLLECTIONIDENTIFIER_HH_
20
21#include <memory>
22#include <string>
23
25
26#ifdef _WIN32
27// Disable warning C4251 which is triggered by
28// std::unique_ptr
29#pragma warning(push)
30#pragma warning(disable: 4251)
31#endif
32
33namespace gz::fuel_tools
34{
36 class CollectionIdentifierPrivate;
37 class ServerConfig;
38
40 class GZ_FUEL_TOOLS_VISIBLE CollectionIdentifier
41 {
44
48
51
57
61 public: bool operator==(const CollectionIdentifier &_rhs) const;
62
65 public: std::string Name() const;
66
70 public: bool SetName(const std::string &_name);
71
74 public: std::string Owner() const;
75
79 public: bool SetOwner(const std::string &_name);
80
83 public: ServerConfig &Server() const;
84
88 public: bool SetServer(const ServerConfig &_server);
89
93 public: std::string UniqueName() const;
94
97 public: gz::common::URI Url() const;
98
103 public: std::string AsString(const std::string &_prefix = "") const;
104
109 public: std::string AsPrettyString(const std::string &_prefix = "") const;
110
113 };
114} // namespace gz::fuel_tools
115
116#ifdef _MSC_VER
117#pragma warning(pop)
118#endif
119
120#endif // GZ_FUEL_TOOLS_COLLECTIONIDENTIFIER_HH_