Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
c3867660
Commit
c3867660
authored
Apr 23, 2013
by
Mathias Goldau
Browse files
[MERGE]
parents
a9bf2594
0e67ba34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/modules/template/WMTemplate.cpp
src/modules/template/WMTemplate.cpp
+2
-2
No files found.
src/modules/template/WMTemplate.cpp
View file @
c3867660
...
@@ -162,7 +162,7 @@ void WMTemplate::connectors()
...
@@ -162,7 +162,7 @@ void WMTemplate::connectors()
// the function signature can not be changed during runtime (which, in our case, means after connectors() got called).
// the function signature can not be changed during runtime (which, in our case, means after connectors() got called).
// Here is an example of how to create connectors. This module wants to have an input connector. This connector is defined by the type of
// Here is an example of how to create connectors. This module wants to have an input connector. This connector is defined by the type of
// data that should be transferred, a
n
module-wide unique name and a proper description:
// data that should be transferred, a module-wide unique name and a proper description:
m_input
=
WModuleInputData
<
WDataSetSingle
>::
createAndAdd
(
shared_from_this
(),
"in"
,
"The dataset to display"
);
m_input
=
WModuleInputData
<
WDataSetSingle
>::
createAndAdd
(
shared_from_this
(),
"in"
,
"The dataset to display"
);
// This creates an input connector which can receive WDataSetSingle. It will never be able to connect to output connectors providing just a
// This creates an input connector which can receive WDataSetSingle. It will never be able to connect to output connectors providing just a
...
@@ -397,7 +397,7 @@ void WMTemplate::moduleMain()
...
@@ -397,7 +397,7 @@ void WMTemplate::moduleMain()
debugLog
()
<<
"Doing time consuming operations"
;
debugLog
()
<<
"Doing time consuming operations"
;
sleep
(
2
);
sleep
(
2
);
// Your module can use a
n
moduleState variable to wait for certain events. Most commonly, these events are new data on input connectors or
// Your module can use a moduleState variable to wait for certain events. Most commonly, these events are new data on input connectors or
// changed properties. You can decide which events the moduleState should handle. Therefore, use m_moduleState.add( ... ) to insert every
// changed properties. You can decide which events the moduleState should handle. Therefore, use m_moduleState.add( ... ) to insert every
// condition you want to wait on. As every input connector provides an changeCondition, we now add this condition to the moduleState:
// condition you want to wait on. As every input connector provides an changeCondition, we now add this condition to the moduleState:
m_moduleState
.
setResetable
(
true
,
true
);
m_moduleState
.
setResetable
(
true
,
true
);
...
...
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