The Sparta Modeling Framework
Loading...
Searching...
No Matches
PeventTreeNode.hpp
1#pragma once
2
3#include "sparta/pairs/SpartaKeyPairs.hpp"
4#include "sparta/pairs/PairCollectorTreeNode.hpp"
5namespace sparta{
6namespace pevents{
7
8 class PeventCollectorTreeNode : public sparta::PairCollectorTreeNode
9 {
10 typedef sparta::PairCollectorTreeNode Base;
11 public:
12 PeventCollectorTreeNode(sparta::TreeNode* parent, const std::string& name) :
13 PairCollectorTreeNode(parent, name)
14 {}
15 // Methods for turning on only specific pevent collector types, and to what file.
16 virtual bool addTap(const std::string&, const std::string&, const bool) = 0;
17 virtual void turnOff(const std::string&)= 0;
18 // Method to officially start the collection process
19 virtual void go() = 0;
20 virtual const std::string& eventName() = 0;
21
22 };
23
24
25
26} // namespace pevents
27} // namespace sparta
28
29
Node in a composite tree representing a sparta Tree item.
Definition TreeNode.hpp:205
Macros for handling exponential backoff.