Commit eef55460 authored by legoc's avatar legoc
Browse files

Renamed some arguments in C++ API

parent b4736334
......@@ -145,7 +145,7 @@ public:
/// \brief returns the name of the CAMEO application corresponding to this instance
static const std::string& getName();
static int getId(); ///< returns the ID number of the instance
static void setTimeout(int timeout);
static void setTimeout(int value);
static int getTimeout();
static const Endpoint& getEndpoint(); ///< returns the TCP address of this instance
static Server& getServer();
......
......@@ -52,12 +52,12 @@ public:
Server(const std::string& endpoint, int timeoutMs = 0);
~Server();
void setTimeout(int timeoutMs);
void setTimeout(int value);
int getTimeout() const;
const Endpoint& getEndpoint() const;
std::array<int, 3> getVersion() const;
bool isAvailable(int timeoutMs) const;
bool isAvailable(int timeout) const;
/**
* Returns true if is available. Uses the timeout if set or 10000ms.
......
......@@ -277,8 +277,8 @@ int This::getId() {
return m_instance.m_id;
}
void This::setTimeout(int timeout) {
m_instance.Services::setTimeout(timeout);
void This::setTimeout(int value) {
m_instance.Services::setTimeout(value);
}
int This::getTimeout() {
......
......@@ -88,8 +88,8 @@ Server::~Server() {
}
}
void Server::setTimeout(int timeoutMs) {
Services::setTimeout(timeoutMs);
void Server::setTimeout(int value) {
Services::setTimeout(value);
}
int Server::getTimeout() const {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment