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