]> Creatis software - clitk.git/blob - vv/vvReadState.h
Debug RTStruct conversion with empty struc
[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   int GetNumberOfImages() { return m_NumImages; }
19     
20 protected:
21   
22   void ReadGUI();
23   void ReadTree();
24   void ReadTools();
25   void ReadTool(const std::string & toolname);
26   std::string ReadImage();
27   std::string ReadFusion(int index);
28   std::string ReadOverlay(int index);
29   std::string ReadVector(int index);
30   std::string ReadLink();
31
32 #if __cplusplus > 199711L
33   std::shared_ptr<QXmlStreamReader> m_XmlReader;
34   std::shared_ptr<QFile> m_File;
35 #else
36   std::auto_ptr<QXmlStreamReader> m_XmlReader;
37   std::auto_ptr<QFile> m_File;
38 #endif
39   vvMainWindow* m_Window;
40   int m_TreeItemCount;
41   int m_NumImages;
42 };
43
44 #endif // VVREADSTATE_H