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
2ac5bf30
Commit
2ac5bf30
authored
Apr 06, 2021
by
legoc
Browse files
Removed functions that return non-bound classes and added binding for OutputStreamSocket and Output
parent
792f587c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Application.cpp
View file @
2ac5bf30
...
...
@@ -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
9b370996
·
Apr 23, 2021
mentioned in commit
9b370996
mentioned in commit 9b370996246be099915c71dc8f90d1604a9144c5
Toggle commit list
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