[2328] | 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
|
---|
[2369] | 7 | // $Id: piotoirdr.h,v 1.2 2003-04-24 13:22:26 aubourg Exp $
|
---|
[2328] | 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 |
|
---|
| 18 | /* Missing from PIO headers... */
|
---|
[2369] | 19 | extern "C" {
|
---|
[2328] | 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 | );
|
---|
[2369] | 39 | }
|
---|
[2328] | 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 |
|
---|