GRUTinizer
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
include
TOrderedRawFile.h
Go to the documentation of this file.
1
#ifndef TORDEREDRAWFILE_H
2
#define TORDEREDRAWFILE_H
3
4
#include <map>
5
6
#include "
TRawEvent.h
"
7
#include "
TRawEventSource.h
"
8
9
class
TOrderedRawFile
:
public
TRawEventSource
{
10
11
public
:
12
TOrderedRawFile
(
TRawEventSource
*
unordered
);
13
~TOrderedRawFile
();
14
15
void
SetDepth
(
int
depth
) { this->depth =
depth
; }
16
int
GetDepth
() {
return
depth
; }
17
18
virtual
std::string
SourceDescription
()
const
{
return
unordered->
SourceDescription
(); }
19
virtual
std::string
Status
()
const
{
return
unordered->
Status
(); }
20
virtual
int
GetLastErrno
()
const
{
return
unordered->
GetLastErrno
(); }
21
virtual
std::string
GetLastError
()
const
{
return
unordered->
GetLastError
(); }
22
23
private
:
24
virtual
int
GetEvent
(
TRawEvent
& event);
25
26
TRawEventSource
*
unordered
;
27
28
int
depth
;
29
long
oldest_timestamp
,
newest_timestamp
;
30
bool
finished
;
31
32
int
fillqueue
();
33
34
std::multimap<long,TRawEvent>
event_queue
;
35
36
ClassDef
(
TOrderedRawFile
,0)
37
};
38
39
40
#endif
Generated on Wed Nov 4 2015 17:27:53 for GRUTinizer by
1.8.1.2