Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
CCF Immersive Sorting Demo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
CeTI
ROS
CeTI Cobotic Framework
CCF Immersive Sorting Demo
Commits
a391c5a2
Commit
a391c5a2
authored
3 years ago
by
Johannes Mey
Browse files
Options
Downloads
Patches
Plain Diff
add ostream operator
parent
01ca3b86
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/action.h
+5
-0
5 additions, 0 deletions
include/action.h
src/action.cpp
+12
-0
12 additions, 0 deletions
src/action.cpp
with
17 additions
and
0 deletions
include/action.h
+
5
−
0
View file @
a391c5a2
...
@@ -119,6 +119,11 @@ public:
...
@@ -119,6 +119,11 @@ public:
return
true
;
return
true
;
}
}
}
}
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
Action
&
action
);
};
};
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
Action
&
action
);
#endif // CCF_IMMERSIVE_SORTING_ACTION_H_
#endif // CCF_IMMERSIVE_SORTING_ACTION_H_
This diff is collapsed.
Click to expand it.
src/action.cpp
+
12
−
0
View file @
a391c5a2
#include
"action.h"
#include
"action.h"
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
Action
&
action
)
{
switch
(
action
.
type_
)
{
case
Action
::
PICK_DROP
:
os
<<
"[pick "
<<
action
.
source_
<<
" and drop it into "
<<
action
.
target_
<<
"]"
;
break
;
default:
os
<<
"[unknown action with source "
<<
action
.
source_
<<
" and target "
<<
action
.
target_
<<
"]"
;
}
return
os
;
}
\ No newline at end of file
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