aboutsummaryrefslogtreecommitdiff
path: root/offload/plugins-nextgen/common/include
diff options
context:
space:
mode:
Diffstat (limited to 'offload/plugins-nextgen/common/include')
-rw-r--r--offload/plugins-nextgen/common/include/PluginInterface.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/offload/plugins-nextgen/common/include/PluginInterface.h b/offload/plugins-nextgen/common/include/PluginInterface.h
index 97540d5..63e2f80 100644
--- a/offload/plugins-nextgen/common/include/PluginInterface.h
+++ b/offload/plugins-nextgen/common/include/PluginInterface.h
@@ -124,6 +124,7 @@ enum InfoLevelKind { InfoLevel1 = 1, InfoLevel2, InfoLevel3 };
/// we use the level to determine the indentation of the key-value property at
/// printing time. See the enum InfoLevelKind for the list of accepted levels.
class InfoQueueTy {
+public:
struct InfoQueueEntryTy {
std::string Key;
std::string Value;
@@ -131,6 +132,7 @@ class InfoQueueTy {
uint64_t Level;
};
+private:
std::deque<InfoQueueEntryTy> Queue;
public:
@@ -153,6 +155,8 @@ public:
Queue.push_back({Key, Value, Units, L});
}
+ const std::deque<InfoQueueEntryTy> &getQueue() const { return Queue; }
+
/// Print all info entries added to the queue.
void print() const {
// We print four spances for each level.