Last change
on this file since 6937 was 447, checked in by harald, 24 years ago |
Bringing the sources for the octobertest under CVS controll.
(november, 3rd, 2000)
|
-
Property svn:executable
set to
*
|
File size:
1.6 KB
|
Line | |
---|
1 | #ifndef MFILE_H
|
---|
2 | #define MFILE_H
|
---|
3 |
|
---|
4 | #include "Magic.h"
|
---|
5 |
|
---|
6 | #include <fstream.h>
|
---|
7 |
|
---|
8 | #include <TFile.h>
|
---|
9 |
|
---|
10 | class MFileDescrIn;
|
---|
11 | class MFileDescrOut;
|
---|
12 |
|
---|
13 | class MParContainer;
|
---|
14 |
|
---|
15 | class MFile
|
---|
16 | {
|
---|
17 | protected:
|
---|
18 | MFileDescrIn *fIn; //!
|
---|
19 | MFileDescrOut *fOut; //!
|
---|
20 | public:
|
---|
21 | MFile() : fIn(NULL), fOut(NULL) {}
|
---|
22 | ~MFile();
|
---|
23 |
|
---|
24 | virtual MFileDescrIn *OpenInput(const char *fname, const char *cname)
|
---|
25 | {
|
---|
26 | return NULL;
|
---|
27 | };
|
---|
28 |
|
---|
29 | virtual MFileDescrOut *OpenOutput(const char *fName, const char *cname, MParContainer **obj)
|
---|
30 | {
|
---|
31 | return NULL;
|
---|
32 | };
|
---|
33 |
|
---|
34 | ClassDef(MFile, 1)
|
---|
35 | };
|
---|
36 |
|
---|
37 | /*class MAsciiFile : public MFile
|
---|
38 | {
|
---|
39 | private:
|
---|
40 | public:
|
---|
41 | void ReadNextEntry()
|
---|
42 | {
|
---|
43 | dest->ReadBinEntry(FILE *f);
|
---|
44 | }
|
---|
45 | };*/
|
---|
46 |
|
---|
47 | class MMagicFileImp
|
---|
48 | {
|
---|
49 | public:
|
---|
50 | void GetNBytes(fstream& fin, Byte_t *buffer, Char_t cnt);
|
---|
51 | void PutNBytes(fstream& fout, Byte_t *buffer, Char_t cnt);
|
---|
52 | };
|
---|
53 |
|
---|
54 | class MRootFile : public MFile, public TFile
|
---|
55 | {
|
---|
56 | public:
|
---|
57 | MRootFile() : TFile() {}
|
---|
58 | MRootFile(const char *fname, Option_t *option="", const char *ftitle="", Int_t compress=1)
|
---|
59 | : TFile(fname, option, ftitle, compress)
|
---|
60 | {
|
---|
61 | }
|
---|
62 |
|
---|
63 | MFileDescrIn *OpenInput(const char *fName, const char *cname);
|
---|
64 | MFileDescrOut *OpenOutput(const char *fName, const char *cname, MParContainer **obj);
|
---|
65 |
|
---|
66 | ClassDef(MRootFile, 1)
|
---|
67 | };
|
---|
68 |
|
---|
69 |
|
---|
70 | class MMagicFile : public MFile
|
---|
71 | {
|
---|
72 | public:
|
---|
73 | MMagicFile() {}
|
---|
74 | MMagicFile(const char *fname, Option_t *option="") {}
|
---|
75 |
|
---|
76 | MFileDescrIn *OpenInput(const char *fName, const char *cname);
|
---|
77 | MFileDescrOut *OpenOutput(const char *fName, const char *cname, MParContainer **obj);
|
---|
78 |
|
---|
79 | ClassDef(MMagicFile, 1)
|
---|
80 | };
|
---|
81 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.