source: Sophya/trunk/ArchTOIPipe/Kernel/piotoirdr.h@ 4047

Last change on this file since 4047 was 2369, checked in by aubourg, 22 years ago

PIOlib I/O

File size: 1.8 KB
Line 
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.2 2003-04-24 13:22:26 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
18/* Missing from PIO headers... */
19extern "C" {
20PIOErr 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
28PIOLONG 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
35PIOErr PIODeleteFLG(
36 void *MyData, /* Input: Data memory address */
37 PIOGroup *MyGroup /* Input : opened group reference */
38 );
39}
40/* End missing */
41
42
43class PIOTOIReader : public TOIProcessor {
44public:
45 PIOTOIReader(string group, string object, string flagdef="");
46 ~PIOTOIReader();
47
48 virtual void init();
49 virtual void run();
50
51protected:
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
Note: See TracBrowser for help on using the repository browser.