Commit 241f957f authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Clipboard: clear should be private, only ModManager is allowed to clear

parent da6f9040
......@@ -34,6 +34,7 @@ namespace corryvreckan {
* information which should outlast a single event. This is dubbed the "persistent storage"
*/
class Clipboard {
friend class ModuleManager;
public:
/**
......@@ -100,11 +101,6 @@ namespace corryvreckan {
*/
bool has_persistent(std::string name) const;
/**
* @brief Clear the event storage of the clipboard
*/
void clear();
/**
* @brief Get a list of currently held collections on the clipboard event storage
* @return Vector of collections names currently stored on the clipboard
......@@ -118,6 +114,11 @@ namespace corryvreckan {
const ClipboardData& get_all() const;
private:
/**
* @brief Clear the event storage of the clipboard
*/
void clear();
// Container for data, list of all data held
ClipboardData m_data;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment