The Sparta Modeling Framework
Loading...
Searching...
No Matches
StreamController.hpp
1
// <StreamController> -*- C++ -*-
2
3
#pragma once
4
5
namespace
sparta
{
6
namespace
statistics {
7
14
class
StreamController
15
{
16
public
:
17
virtual
~StreamController
() {}
18
21
void
startStreaming
() {
22
if
(!is_streaming_) {
23
startStreaming_();
24
is_streaming_ =
true
;
25
}
26
}
27
33
void
processStreams
() {
34
if
(!is_streaming_) {
35
startStreaming_();
36
}
37
processStreams_();
38
}
39
43
void
stopStreaming
() {
44
if
(is_streaming_) {
45
processStreams_();
46
stopStreaming_();
47
is_streaming_ =
false
;
48
}
49
}
50
51
private
:
55
bool
is_streaming_ =
false
;
56
58
virtual
void
startStreaming_() = 0;
59
virtual
void
processStreams_() = 0;
60
virtual
void
stopStreaming_() = 0;
61
};
62
63
}
// namespace statistics
64
}
// namespace sparta
65
sparta::statistics::StreamController
Stream controller interface. One of these objects will be shared between the simulation's run control...
Definition
StreamController.hpp:15
sparta::statistics::StreamController::startStreaming
void startStreaming()
Definition
StreamController.hpp:21
sparta::statistics::StreamController::processStreams
void processStreams()
Definition
StreamController.hpp:33
sparta::statistics::StreamController::stopStreaming
void stopStreaming()
Definition
StreamController.hpp:43
sparta
Macros for handling exponential backoff.
Definition
AppTriggers.hpp:22
sparta
statistics
dispatch
streams
StreamController.hpp
Generated on Mon Nov 11 2024 22:59:36 for The Sparta Modeling Framework by
1.9.8