]> Creatis software - clitk.git/blob - vv/vvReadState.h
f729d8c1b0dfd73e2c7cd756e2c57879a5933c34
[clitk.git] / vv / vvReadState.h
1 #ifndef VVREADSTATE_H
2 #define VVREADSTATE_H
3
4 #include <string>
5 #include <memory>
6
7 class vvMainWindow;
8 class QXmlStreamReader;
9 class QFile;
10
11 class vvReadState
12 {
13 public:
14   vvReadState();
15   virtual ~vvReadState();
16   
17   virtual void Run(vvMainWindow* vvWindow, const std::string& file);
18     
19 protected:
20   
21   void ReadGUI();
22   void ReadTree();
23   std::string  ReadImage();
24   std::string  ReadFusion(int index);
25   std::string  ReadOverlay(int index);
26   std::string  ReadVector(int index);
27
28   std::auto_ptr<QXmlStreamReader> m_XmlReader;
29   std::auto_ptr<QFile> m_File;
30   vvMainWindow* m_Window;
31   int m_TreeItemCount;
32 };
33
34 #endif // VVREADSTATE_H