Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Cameo
cameo
Commits
d8cfe178
Commit
d8cfe178
authored
Apr 06, 2021
by
legoc
Committed by
Shervin Nourbakhsh
Apr 23, 2021
Browse files
Removed functions that return non-bound classes and added binding for OutputStreamSocket and Output
parent
d89f5fa3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Application.cpp
View file @
d8cfe178
...
...
@@ -74,12 +74,23 @@ PYBIND11_MODULE(cameopy, m) {
.
def
(
"setResult"
,
&
This
::
setResult
,
py
::
call_guard
<
py
::
gil_scoped_release
>
())
.
def
(
"connectToStarter"
,
&
This
::
connectToStarter
,
py
::
call_guard
<
py
::
gil_scoped_release
>
());
py
::
class_
<
cameo
::
Output
>
(
m
,
"Output"
)
.
def
(
"getId"
,
&
cameo
::
Output
::
getId
)
.
def
(
"getMessage"
,
&
cameo
::
Output
::
getMessage
)
.
def
(
"isEndOfLine"
,
&
cameo
::
Output
::
isEndOfLine
);
py
::
class_
<
cameo
::
OutputStreamSocket
>
(
m
,
"OutputStreamSocket"
)
.
def
(
"receive"
,
&
cameo
::
OutputStreamSocket
::
receive
,
py
::
call_guard
<
py
::
gil_scoped_release
>
())
.
def
(
"cancel"
,
&
cameo
::
OutputStreamSocket
::
cancel
,
py
::
call_guard
<
py
::
gil_scoped_release
>
())
.
def
(
"isEnded"
,
&
cameo
::
OutputStreamSocket
::
isEnded
)
.
def
(
"isCanceled"
,
&
cameo
::
OutputStreamSocket
::
isCanceled
);
py
::
class_
<
Instance
>
(
m
,
"Instance"
)
.
def
(
"getName"
,
&
Instance
::
getName
)
.
def
(
"getId"
,
&
Instance
::
getId
)
.
def
(
"getEndpoint"
,
&
Instance
::
getEndpoint
)
.
def
(
"getNameId"
,
&
Instance
::
getNameId
)
.
def
(
"getCom"
,
&
Instance
::
getCom
)
//
.def("getCom", &Instance::getCom)
.
def
(
"hasResult"
,
&
Instance
::
hasResult
)
.
def
(
"exists"
,
&
Instance
::
exists
)
.
def
(
"getErrorMessage"
,
&
Instance
::
getErrorMessage
)
...
...
@@ -208,6 +219,6 @@ PYBIND11_MODULE(cameopy, m) {
.
def
(
"getApplicationInfos"
,
py
::
overload_cast
<
const
std
::
string
&>
(
&
cameo
::
Server
::
getApplicationInfos
,
py
::
const_
),
py
::
call_guard
<
py
::
gil_scoped_release
>
())
.
def
(
"getPorts"
,
&
cameo
::
Server
::
getPorts
,
py
::
call_guard
<
py
::
gil_scoped_release
>
())
.
def
(
"getActualState"
,
&
cameo
::
Server
::
getActualState
,
py
::
call_guard
<
py
::
gil_scoped_release
>
())
.
def
(
"getPastStates"
,
&
cameo
::
Server
::
getPastStates
,
py
::
call_guard
<
py
::
gil_scoped_release
>
())
.
def
(
"openEventStream"
,
&
cameo
::
Server
::
openEventStream
,
py
::
call_guard
<
py
::
gil_scoped_release
>
());
.
def
(
"getPastStates"
,
&
cameo
::
Server
::
getPastStates
,
py
::
call_guard
<
py
::
gil_scoped_release
>
())
;
//
.def("openEventStream", &cameo::Server::openEventStream, py::call_guard<py::gil_scoped_release>());
}
Shervin Nourbakhsh
@nourbakhsh
mentioned in commit
d226a3e6
·
Apr 23, 2021
mentioned in commit
d226a3e6
mentioned in commit d226a3e6821cba5a27956a89c54841551ee97fc6
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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