Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Cameo
cameo
Commits
eef55460
Commit
eef55460
authored
May 07, 2021
by
legoc
Browse files
Renamed some arguments in C++ API
parent
b4736334
Changes
4
Show whitespace changes
Inline
Side-by-side
cameo-api-cpp/include/Application.h
View file @
eef55460
...
...
@@ -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
();
...
...
cameo-api-cpp/include/Server.h
View file @
eef55460
...
...
@@ -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
timeout
Ms
)
const
;
bool
isAvailable
(
int
timeout
)
const
;
/**
* Returns true if is available. Uses the timeout if set or 10000ms.
...
...
cameo-api-cpp/src/Application.cpp
View file @
eef55460
...
...
@@ -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
()
{
...
...
cameo-api-cpp/src/Server.cpp
View file @
eef55460
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment