GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ASCConverter.h
Go to the documentation of this file.
1 #ifndef GW_ASCCONVERTER_H
2 #define GW_ASCCONVERTER_H
3 
4 #ifndef GW_HISTODB_H
5 #include "HistoDB.h"
6 #endif
7 
8 //#ifndef ROOT_TArrayI
9 //#include "TArrayI.h"
10 //#endif
11 
26 using namespace Gw;
27 
29 {
30 private:
31  std::ifstream fStreamIN; // stream used to read/write in a file
32 
33  Bool_t DecodeFormat(TArrayI& params);
34 
35 public:
36  ASCConverter();
37  ASCConverter(const char *name);
38  virtual ~ASCConverter();
39 
41  virtual TH1 *Get(int);
42 
44  virtual TH1 *Get(const char *);
45 
47  virtual bool Read(TH1 &);
48  virtual bool Write(const TH1 &);
49 
51  virtual bool Read(TH2 &);
52  virtual bool Write(const TH2 &);
53 
55  virtual bool Read(THStack &);
56  virtual bool Write(const THStack &);
57 
59  virtual HistoConverter *NewDB(const char *) const;
60 
61  // virtual void ls(Option_t *);
62  virtual void ls(Option_t *) const;
63 
65  virtual const char *GetType() const { return fType.Data(); }
66 
68  static TString Normalize(const char* line);
69 };
70 
71 #endif
header file for the HistoDB facility
virtual const char * GetType() const
get type
Definition: ASCConverter.h:65