Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
ECSS Services
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AcubeSat-OBC
ECSS Services
Commits
42ea9268
Commit
42ea9268
authored
6 years ago
by
Grigoris Pavlakis
Committed by
kongr45gpen
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Doxygenate the examples for include() usage
parent
672fd883
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Services/FunctionManagementService.cpp
+29
-30
29 additions, 30 deletions
src/Services/FunctionManagementService.cpp
with
29 additions
and
30 deletions
src/Services/FunctionManagementService.cpp
+
29
−
30
View file @
42ea9268
#include
"Services/FunctionManagementService.hpp"
#include
"Services/FunctionManagementService.hpp"
#ifdef TESTMODE
/**
//void foo(String<MAXARGLENGTH> b) {
* Usage of the include() function:
// std::cout << "SPAAAACE!" << std::endl;
*
//}
* void foo(String<MAXARGLENGTH> b) {
//
* std::cout << "SPAAAACE!" << std::endl;
//void bar(String<MAXARGLENGTH> b) {
* }
// std::cout << "I HAZ A CUBESAT THAT SNAPS PIX!" << std::endl;
*
//}
* void bar(String<MAXARGLENGTH> b) {
//
* std::cout << "I HAZ A CUBESAT THAT SNAPS PIX!" << std::endl;
//void baz(String<MAXARGLENGTH> b) {
* }
// std::cout << "QWERTYUIOP" << std::endl;
*
//}
* void baz(String<MAXARGLENGTH> b) {
//
* std::cout << "QWERTYUIOP" << std::endl;
//void dummy1(const String<MAXARGLENGTH> a) {
* }
// std::cout << a.c_str() << std::endl;
*
//}
* FunctionManagementService::FunctionManagementService() {
//
* include(String<FUNCNAMELENGTH>("foo"), &foo);
//FunctionManagementService::FunctionManagementService() {
* include(String<FUNCNAMELENGTH>("bar"), &bar);
// // Sample inclusion of functions in the pointer map.
* include(String<FUNCNAMELENGTH>("baz"), &baz);
// include(String<FUNCNAMELENGTH>("dummy1"), &dummy1);
* }
// include(String<FUNCNAMELENGTH>("foo"), &foo);
*/
// include(String<FUNCNAMELENGTH>("bar"), &bar);
// include(String<FUNCNAMELENGTH>("baz"), &baz);
/*
// // All the functions that should be included in the pointer map at initialization shall be here.
* FunctionManagementService::FunctionManagementService() {
//}
* All the functions that should be included in the pointer map at initialization shall be here.
#else
* and included as in the examples above.
FunctionManagementService
::
FunctionManagementService
()
{
*
// INSERT YOUR OWN FUNCTIONS HERE AS ABOVE!
* }
}
*/
#endif
int
FunctionManagementService
::
call
(
Message
msg
){
int
FunctionManagementService
::
call
(
Message
msg
){
assert
(
msg
.
messageType
==
1
);
assert
(
msg
.
messageType
==
1
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment