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
Corryvreckan
Corryvreckan
Commits
6cf64bc8
Commit
6cf64bc8
authored
Feb 21, 2019
by
Simon Spannagel
Browse files
Metronome: make use of Event()
parent
3f28757a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/modules/Metronome/Metronome.cpp
View file @
6cf64bc8
#include "Metronome.h"
#include "objects/Event.hpp"
using
namespace
corryvreckan
;
using
namespace
std
;
...
...
@@ -18,6 +19,8 @@ void Metronome::initialise() {
StatusCode
Metronome
::
run
(
std
::
shared_ptr
<
Clipboard
>
clipboard
)
{
clipboard
->
put_event
(
std
::
make_shared
<
Event
>
(
m_eventStart
,
m_eventEnd
));
// Set up the clipboard persistent storage for the current event:
clipboard
->
put_persistent
(
"eventStart"
,
m_eventStart
);
clipboard
->
put_persistent
(
"eventEnd"
,
m_eventEnd
);
...
...
src/objects/Event.hpp
View file @
6cf64bc8
#ifndef CORRYVRECKAN_EVENT_H
#define CORRYVRECKAN_EVENT_H 1
#include "Object.hpp"
namespace
corryvreckan
{
class
Event
:
public
Object
{
...
...
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