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
TRawFile.h
Go to the documentation of this file.
1
#ifndef _TRAWFILE_H_
2
#define _TRAWFILE_H_
3
4
#include "
TRawEventSource.h
"
5
6
class
TRawFile
:
public
TRawEventSource
{
7
public
:
8
TRawFile
(
const
char
* filename,
kFileType
file_type =
kFileType::UNKNOWN_FILETYPE
);
9
~TRawFile
();
10
11
virtual
std::string
SourceDescription
()
const
{
12
return
wrapped
->
SourceDescription
();
13
}
14
15
virtual
std::string
Status
()
const
{
16
return
wrapped
->
Status
();
17
}
18
19
virtual
int
GetLastErrno
()
const
{
20
return
wrapped
->
GetLastErrno
();
21
}
22
23
virtual
std::string
GetLastError
()
const
{
24
return
wrapped
->
GetLastError
();
25
}
26
27
28
private
:
29
virtual
int
GetEvent
(
TRawEvent
& event) {
30
return
wrapped
->
Read
(event);
31
}
32
33
TRawEventSource
*
wrapped
;
34
};
35
36
class
TRawFileIn
:
public
TRawFile
{
37
public
:
38
TRawFileIn
(
const
char
* filename,
kFileType
file_type =
kFileType::UNKNOWN_FILETYPE
)
39
:
TRawFile
(filename, file_type) { }
40
};
41
42
43
#endif
/* _TRAWFILE_H_ */
Generated on Wed Nov 4 2015 17:27:53 for GRUTinizer by
1.8.1.2