1 |
samvel |
1.1 |
/**
|
2 |
|
|
* File, InputFile, OutputFile
|
3 |
|
|
* s8
|
4 |
|
|
*
|
5 |
|
|
* Created by Samvel Khalatian on Nov 12, 2010
|
6 |
|
|
* Copyright 2010, All rights reserved
|
7 |
|
|
*/
|
8 |
|
|
|
9 |
|
|
#ifndef S8_FILE
|
10 |
|
|
#define S8_FILE
|
11 |
|
|
|
12 |
|
|
#include "FWCore/interface/File.h"
|
13 |
|
|
|
14 |
|
|
namespace s8
|
15 |
|
|
{
|
16 |
|
|
class InputFileDelegate;
|
17 |
|
|
class OutputFileDelegate;
|
18 |
|
|
|
19 |
|
|
class InputFile: public core::InputFile
|
20 |
|
|
{
|
21 |
|
|
public:
|
22 |
|
|
InputFile() throw();
|
23 |
|
|
virtual ~InputFile() throw();
|
24 |
|
|
|
25 |
|
|
InputFileDelegate *delegate() const;
|
26 |
|
|
void setDelegate(InputFileDelegate *);
|
27 |
|
|
|
28 |
|
|
// core::InputFile interface
|
29 |
|
|
//
|
30 |
|
|
virtual void open();
|
31 |
|
|
virtual void process();
|
32 |
|
|
virtual void close();
|
33 |
|
|
|
34 |
|
|
private:
|
35 |
|
|
InputFileDelegate *_delegate;
|
36 |
|
|
};
|
37 |
|
|
|
38 |
|
|
class OutputFile: public core::OutputFile
|
39 |
|
|
{
|
40 |
|
|
public:
|
41 |
|
|
OutputFile() throw();
|
42 |
|
|
virtual ~OutputFile() throw();
|
43 |
|
|
|
44 |
|
|
OutputFileDelegate *delegate() const;
|
45 |
|
|
void setDelegate(OutputFileDelegate *);
|
46 |
|
|
|
47 |
|
|
// core::OutputFile interface
|
48 |
|
|
//
|
49 |
|
|
virtual void open();
|
50 |
|
|
virtual void close();
|
51 |
|
|
|
52 |
|
|
private:
|
53 |
|
|
OutputFileDelegate *_delegate;
|
54 |
|
|
};
|
55 |
|
|
}
|
56 |
|
|
|
57 |
|
|
#endif
|