The Sparta Modeling Framework
Loading...
Searching...
No Matches
ArchiveStream.hpp
1// <ArchiveStream> -*- C++ -*-
2
3#pragma once
4
5#include <string>
6
7namespace sparta {
8namespace statistics {
9
15{
16public:
17 virtual ~ArchiveStream() {}
18
19 void setPath(const std::string & path) {
20 path_ = path;
21 }
22
23 void setSubpath(const std::string & subpath) {
24 subpath_ = subpath;
25 }
26
27 const std::string & getPath() const {
28 return path_;
29 }
30
31 const std::string & getSubpath() const {
32 return subpath_;
33 }
34
35 virtual void initialize() = 0;
36
37private:
38 std::string path_;
39 std::string subpath_;
40};
41
42} // namespace statistics
43} // namespace sparta
44
Generic statistic stream base class for sources and sinks in the report archive system.
Macros for handling exponential backoff.