/[PAMELA software]/yodaUtility/YMcmd.h
ViewVC logotype

Annotation of /yodaUtility/YMcmd.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sun Apr 30 11:08:14 2006 UTC (18 years, 7 months ago) by kusanagi
Branch: MAIN
File MIME type: text/plain
Initial revision

1 kusanagi 1.1 #include <TObject.h>
2     #include <TFile.h>
3     #include <TObjString.h>
4     #include <TString.h>
5     #include <TTree.h>
6     #include <TArrayC.h>
7    
8    
9     using namespace std;
10     class DataItem : public TObject{
11     public:
12     string fileName;
13     DataItem() : TObject(){}
14     ~DataItem() {}
15    
16     virtual const char* toXML(char* tab = "") {}
17     virtual void fill(TArrayC*) {}
18     };
19    
20     class McmdItem : public DataItem{
21     public:
22     string fileName;
23     McmdItem() : DataItem(){}
24     ~McmdItem() {}
25    
26     virtual const char* toXML(char* tab = "") {}
27     virtual void fill(TArrayC*) {}
28     };
29    
30     class ElseItem : public McmdItem{
31     private:
32    
33     public:
34     ElseItem::ElseItem() : McmdItem(){}
35     ElseItem::~ElseItem() {}
36    
37     const char* ElseItem::toXML(char*);
38     void ElseItem::fill(TArrayC*) { }
39     };
40    
41     class DownLinkItem : public McmdItem{
42     public:
43     unsigned int rawModeSectors; // From 4 to 2048 sector to Downlink in RAW mode
44     unsigned short rawMode; // 0 = NormalMode 1 = RawMode
45     unsigned short tmSel; // 0 = TM I/F A other = TM I/F B
46     unsigned short fileId; // 0 = File 1 1 = File 2
47     unsigned int orbitNumber; // Number of the orbit
48     unsigned short spareAdapt; // Number of the orbit
49    
50     DownLinkItem() : McmdItem(){}
51     ~DownLinkItem() {}
52    
53     void fill(TArrayC* data){ }
54     const char* toXML(char*);
55     };
56    
57    
58     class TimeSyncItem : public McmdItem{
59     public:
60     unsigned int newTime;
61     TimeSyncItem() : McmdItem(){}
62     ~TimeSyncItem() {}
63    
64     void fill(TArrayC* data);
65     const char* toXML(char*);
66     };
67    
68     //For now i dont store the Parameters sequence
69     class SelectOpModeItem : public McmdItem{
70     public:
71     unsigned short mode;
72     unsigned short paramNumber;
73     SelectOpModeItem() : McmdItem(){}
74     ~SelectOpModeItem() {}
75    
76     void fill(TArrayC* data);
77     const char* toXML(char*);
78     };
79    
80     class BiteItem : public McmdItem{
81     public:
82     unsigned int fillerWord;
83     BiteItem::BiteItem() : McmdItem(){}
84     BiteItem::~BiteItem();
85    
86     void fill(TArrayC* data);
87     const char* toXML(char* tab);
88     };
89    
90    
91     class McmdScan {
92     private:
93     //In compiled version will use the std::map
94     McmdItem *mcmdItem;
95    
96     public:
97     McmdScan::McmdScan() {}
98     const char* McmdScan::extract(TArrayC *data, int id, char* tabs);
99     };

  ViewVC Help
Powered by ViewVC 1.1.23