Commit afcfaa29 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Clipboard: allow to retrieve all entries

parent 03622684
......@@ -76,3 +76,7 @@ std::vector<std::string> Clipboard::listCollections() const {
}
return collections;
}
const ClipboardData& Clipboard::getAll() const {
return m_data;
}
......@@ -21,6 +21,7 @@
#include "objects/Object.hpp"
namespace corryvreckan {
typedef std::map<std::type_index, std::map<std::string, std::shared_ptr<void>>> ClipboardData;
/**
* @brief Class for temporary data storage for exachange between modules
......@@ -113,9 +114,13 @@ namespace corryvreckan {
*/
std::vector<std::string> listCollections() const;
private:
typedef std::map<std::type_index, std::map<std::string, std::shared_ptr<void>>> ClipboardData;
/**
* @brief Retrieve all currently stored clipboard data
* @return All clipboard data
*/
const ClipboardData& getAll() const;
private:
// Container for data, list of all data held
ClipboardData m_data;
......
Supports Markdown
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