gz/fuel_tools/WorldIdentifier.hh
std::string AsString(const std::string &_prefix="") const
Returns all the world information as a string. Convenient for debugging.
bool operator==(const WorldIdentifier &_rhs) const
Equality operator.
STL class.
std::string UniqueName() const
Returns a unique name for the world.
std::string LocalPath() const
Returns a path to the world on disk if it is already cached.
std::string VersionStr() const
Returns the world's version as a string. Versions are integers counting from 1. The strings "tip" or ...
WorldIdentifier & operator=(const WorldIdentifier &_orig)
Assignment operator.
std::string Owner() const
Returns owner to attribute world to.
bool SetOwner(const std::string &_name)
Set the owner of the world.
bool SetVersion(const unsigned int _version)
Set the world's version. Versions are integers counting from 1.
bool SetName(const std::string &_name)
Set the name of the world.
std::string AsPrettyString(const std::string &_prefix="") const
Returns all the available world information as a string using colors for better human parsing.
Describes options needed for a server.
Definition: gz/fuel_tools/ClientConfig.hh:47
bool SetVersionStr(const std::string &_version)
Set the world's version. Versions are integers counting from 1 or "tip" for the latest version.
bool SetServer(const ServerConfig &_server)
Set the server from which this world comes.
ServerConfig & Server() const
Returns server information to retrieve world from.
unsigned int Version() const
Returns the world's version as a number. Versions are integers counting from 1. Version zero means th...
Defines how to identify a world.
Definition: gz/fuel_tools/WorldIdentifier.hh:42
bool SetLocalPath(const std::string &_path)
Sets the path of the world in the local cache.