Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
25d4a095
Commit
25d4a095
authored
Sep 10, 2019
by
Simon Spannagel
Browse files
Clipboard: make listCollection and getAll more coherent
parent
23cf41a4
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/core/clipboard/Clipboard.cpp
View file @
25d4a095
...
...
@@ -66,7 +66,7 @@ void Clipboard::clear() {
m_event
.
reset
();
}
std
::
vector
<
std
::
string
>
Clipboard
::
list
_c
ollections
()
const
{
std
::
vector
<
std
::
string
>
Clipboard
::
list
C
ollections
()
const
{
std
::
vector
<
std
::
string
>
collections
;
for
(
const
auto
&
block
:
m_data
)
{
...
...
@@ -82,6 +82,6 @@ std::vector<std::string> Clipboard::list_collections() const {
return
collections
;
}
const
ClipboardData
&
Clipboard
::
get
_a
ll
()
const
{
const
ClipboardData
&
Clipboard
::
get
A
ll
()
const
{
return
m_data
;
}
src/core/clipboard/Clipboard.hpp
View file @
25d4a095
...
...
@@ -105,13 +105,13 @@ namespace corryvreckan {
* @brief Get a list of currently held collections on the clipboard event storage
* @return Vector of collections names currently stored on the clipboard
*/
std
::
vector
<
std
::
string
>
list
_c
ollections
()
const
;
std
::
vector
<
std
::
string
>
list
C
ollections
()
const
;
/**
* @brief Retrieve all currently stored clipboard data
* @return All clipboard data
*/
const
ClipboardData
&
get
_a
ll
()
const
;
const
ClipboardData
&
get
A
ll
()
const
;
private:
/**
...
...
src/modules/FileWriter/FileWriter.cpp
View file @
25d4a095
...
...
@@ -71,7 +71,7 @@ StatusCode FileWriter::run(std::shared_ptr<Clipboard> clipboard) {
event_tree_
->
Fill
();
write_cnt_
++
;
auto
data
=
clipboard
->
get
_a
ll
();
auto
data
=
clipboard
->
get
A
ll
();
LOG
(
DEBUG
)
<<
"Clipboard has "
<<
data
.
size
()
<<
" different object types."
;
for
(
auto
&
block
:
data
)
{
...
...
src/modules/TextWriter/TextWriter.cpp
View file @
25d4a095
...
...
@@ -53,7 +53,7 @@ StatusCode TextWriter::run(std::shared_ptr<Clipboard> clipboard) {
*
output_file_
<<
"=== "
<<
m_eventNumber
<<
" ==="
<<
std
::
endl
;
*
output_file_
<<
*
clipboard
->
getEvent
()
<<
std
::
endl
;
auto
data
=
clipboard
->
get
_a
ll
();
auto
data
=
clipboard
->
get
A
ll
();
LOG
(
DEBUG
)
<<
"Clipboard has "
<<
data
.
size
()
<<
" different object types."
;
for
(
auto
&
block
:
data
)
{
...
...
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