Commit eef55460 authored by legoc's avatar legoc
Browse files

Renamed some arguments in C++ API

parent b4736334
...@@ -145,7 +145,7 @@ public: ...@@ -145,7 +145,7 @@ public:
/// \brief returns the name of the CAMEO application corresponding to this instance /// \brief returns the name of the CAMEO application corresponding to this instance
static const std::string& getName(); static const std::string& getName();
static int getId(); ///< returns the ID number of the instance static int getId(); ///< returns the ID number of the instance
static void setTimeout(int timeout); static void setTimeout(int value);
static int getTimeout(); static int getTimeout();
static const Endpoint& getEndpoint(); ///< returns the TCP address of this instance static const Endpoint& getEndpoint(); ///< returns the TCP address of this instance
static Server& getServer(); static Server& getServer();
......
...@@ -52,12 +52,12 @@ public: ...@@ -52,12 +52,12 @@ public:
Server(const std::string& endpoint, int timeoutMs = 0); Server(const std::string& endpoint, int timeoutMs = 0);
~Server(); ~Server();
void setTimeout(int timeoutMs); void setTimeout(int value);
int getTimeout() const; int getTimeout() const;
const Endpoint& getEndpoint() const; const Endpoint& getEndpoint() const;
std::array<int, 3> getVersion() 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. * Returns true if is available. Uses the timeout if set or 10000ms.
......
...@@ -277,8 +277,8 @@ int This::getId() { ...@@ -277,8 +277,8 @@ int This::getId() {
return m_instance.m_id; return m_instance.m_id;
} }
void This::setTimeout(int timeout) { void This::setTimeout(int value) {
m_instance.Services::setTimeout(timeout); m_instance.Services::setTimeout(value);
} }
int This::getTimeout() { int This::getTimeout() {
......
...@@ -88,8 +88,8 @@ Server::~Server() { ...@@ -88,8 +88,8 @@ Server::~Server() {
} }
} }
void Server::setTimeout(int timeoutMs) { void Server::setTimeout(int value) {
Services::setTimeout(timeoutMs); Services::setTimeout(value);
} }
int Server::getTimeout() const { 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