The Sparta Modeling Framework
Loading...
Searching...
No Matches
Collector.hpp
Go to the documentation of this file.
1// <Collector.hpp> -*- C++ -*-
2
9#pragma once
10
11#include <string>
12
13namespace sparta{
14namespace collection
15{
23 {
24 public:
32 Collector(const std::string& name) :
33 name_(name)
34 { }
35
37 virtual ~Collector() {}
38
39 std::string getName() const {
40 return name_;
41 }
42
43 protected:
48 std::string name_;
49 };
50}//namespace collection
51}//namespace sparta
52
A non-templated base class that all Collectors should inherit from.
Definition Collector.hpp:23
virtual ~Collector()
Enable polymorphism and also be nice.
Definition Collector.hpp:37
Collector(const std::string &name)
Construct a collector.
Definition Collector.hpp:32
Macros for handling exponential backoff.