SampleHandler.h 1.41 KB
Newer Older
Francois Gygi committed
1 2 3 4 5
////////////////////////////////////////////////////////////////////////////////
//
// SampleHandler.h
//
////////////////////////////////////////////////////////////////////////////////
6
// $Id: SampleHandler.h,v 1.6 2007-10-19 16:24:04 fgygi Exp $
Francois Gygi committed
7 8 9 10 11

#ifndef SAMPLEHANDLER_H
#define SAMPLEHANDLER_H

#include "StructureHandler.h"
12
#include <string>
Francois Gygi committed
13 14 15 16 17 18 19
class DoubleMatrix;
class Sample;
class Wavefunction;

class SampleHandler : public StructureHandler
{
  private:
20

Francois Gygi committed
21 22 23 24 25
  Sample& s_;
  DoubleMatrix& gfdata_;
  Wavefunction& wfvtmp_;

  public:
26

Francois Gygi committed
27
  bool read_wf,read_wfv;
28

Francois Gygi committed
29 30 31 32 33
  // Start of the root element in the structure being handled
  virtual void startElement(const XMLCh* const uri,const XMLCh* const localname,
      const XMLCh* const qname, const Attributes& attributes);

  // End of the root element in the structure being handled
34
  virtual void endElement(const XMLCh* const uri, const XMLCh* const localname,
35
      const XMLCh* const qname, std::string& content);
36

Francois Gygi committed
37 38
  // start a subhandler
  virtual StructureHandler* startSubHandler(const XMLCh* const uri,
39
    const XMLCh* const localname, const XMLCh* const qname,
Francois Gygi committed
40
    const Attributes& attributes);
41

Francois Gygi committed
42 43
  // end a subhandler
  virtual void endSubHandler(const XMLCh* const uri,
44
    const XMLCh* const localname, const XMLCh* const qname,
Francois Gygi committed
45 46 47 48 49 50
    const StructureHandler* const subHandler);

  SampleHandler(Sample& s, DoubleMatrix& gfdata, Wavefunction& wfvtmp);
  ~SampleHandler();
};
#endif