gz/fuel_tools/ClientConfig.hh
High level interface to ignition fuel.
Definition: gz/fuel_tools/ClientConfig.hh:109
std::vector< ServerConfig > & MutableServers() const
List of servers the client will connect to.
std::vector< ServerConfig > Servers() const
List of servers the client will connect to.
STL class.
std::string AsString(const std::string &_prefix="") const
Returns all the client information as a string.
const std::string & UserAgent() const
Get the user agent name.
std::string AsPrettyString(const std::string &_prefix="") const
Returns all the available model information as a string using colors for better human parsing.
bool LoadConfig(const std::string &_file)
Load a YAML configuration file.
STL class.
void SetUrl(const common::URI &_url)
Set the URL of this server.
ClientConfig & operator=(const ClientConfig &_copy)
Assignment operator overload.
void SetUserAgent(const std::string &_agent)
Set the user agent name.
void AddServer(const ServerConfig &_srv)
Add a server to the list.
std::string ConfigPath() const
Get the location of the configuration file.
void SetApiKey(const std::string &_key)
Set the API key to auth with the server.
std::string AsString(const std::string &_prefix="") const
Returns all the server information as a string.
std::string Version() const
Get the protocol version used with this server.
void Clear()
Clear the server config. This will set all values to empty strings, except the version string which w...
Describes options needed for a server.
Definition: gz/fuel_tools/ClientConfig.hh:47
void SetCacheLocation(const std::string &_path)
Set where models and stuff are saved.
std::string ApiKey() const
Get the API key to auth with the server.
void SetVersion(const std::string &_version)
Set the protocol version used with this server.
void Clear()
Clear the client config. This will set all values to empty strings, except the user agent which will ...
ServerConfig & operator=(const ServerConfig &_orig)
Assignment operator overload.
std::string CacheLocation() const
Where are models and stuff stored locally?