1 | // This may look like C code, but it is really -*- C++ -*-
|
---|
2 |
|
---|
3 | // ArchTOIPipe (C) CEA/DAPNIA/SPP IN2P3/LAL
|
---|
4 | // Eric Aubourg
|
---|
5 | // Christophe Magneville
|
---|
6 | // Reza Ansari
|
---|
7 | // $Id: piotoirdr.h,v 1.1 2003-02-24 09:18:01 aubourg Exp $
|
---|
8 |
|
---|
9 | #ifndef PIOTOIRDR_H
|
---|
10 | #define PIOTOIRDR_H
|
---|
11 |
|
---|
12 | #include "config.h"
|
---|
13 | #include "toiprocessor.h"
|
---|
14 | #include <vector>
|
---|
15 |
|
---|
16 | #include "HL2_PIOLIB/PIOLib.h"
|
---|
17 | // #include "HL2_PIOLIB/PIOCpp.h" // BUGGY !! Ne marche pas !!!
|
---|
18 |
|
---|
19 | /* Missing from PIO headers... */
|
---|
20 | PIOErr PIOFreeInfoTOI(
|
---|
21 | PIOSTRING *FLGname,
|
---|
22 | PIOSTRING *TOItype, /* Input: TOI format */
|
---|
23 | PIOSTRING *TOIname, /* Input: TOI name list */
|
---|
24 | PIOLONG *BeginIndx, /* Input: first index */
|
---|
25 | PIOLONG *EndIndx /* Input: last index */
|
---|
26 | );
|
---|
27 |
|
---|
28 | PIOLONG PIOReadFLG(
|
---|
29 | PIOLONG **MyDataTable, /* Output: Data memory address */
|
---|
30 | PIOSTRING flagdef, /* Input : flag definition */
|
---|
31 | PIOSTRING command, /* Input : Output parameters */
|
---|
32 | PIOGroup *MyGroup /* Input : opened group reference */
|
---|
33 | );
|
---|
34 |
|
---|
35 | PIOErr PIODeleteFLG(
|
---|
36 | void *MyData, /* Input: Data memory address */
|
---|
37 | PIOGroup *MyGroup /* Input : opened group reference */
|
---|
38 | );
|
---|
39 |
|
---|
40 | /* End missing */
|
---|
41 |
|
---|
42 |
|
---|
43 | class PIOTOIReader : public TOIProcessor {
|
---|
44 | public:
|
---|
45 | PIOTOIReader(string group, string object, string flagdef="");
|
---|
46 | ~PIOTOIReader();
|
---|
47 |
|
---|
48 | virtual void init();
|
---|
49 | virtual void run();
|
---|
50 |
|
---|
51 | protected:
|
---|
52 | // Le C++ ne semble pas totalement implemente au 20/02/03 ???
|
---|
53 | // PIObjectTOI* pioTOI;
|
---|
54 | // on va faire du C pour le moment.
|
---|
55 | PIOGroup* pioGroup;
|
---|
56 | string group; // le "object" de PIOOpenTOI qui semble etre un group
|
---|
57 | string object; // le "Objectname" de PIOReadTOI qui lui est un objet (?)
|
---|
58 | string flagdef;
|
---|
59 | int bufferSize;
|
---|
60 |
|
---|
61 | void readBounds();
|
---|
62 | };
|
---|
63 |
|
---|
64 | #endif
|
---|
65 |
|
---|