00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00022 #ifndef __vtkSMApplication_h
00023 #define __vtkSMApplication_h
00024
00025 #include "vtkSMObject.h"
00026
00027
00028 struct vtkSMApplicationInternals;
00029
00030
00031 class VTK_EXPORT vtkSMApplication : public vtkSMObject
00032 {
00033 public:
00034 static vtkSMApplication* New();
00035 vtkTypeRevisionMacro(vtkSMApplication, vtkSMObject);
00036 void PrintSelf(ostream& os, vtkIndent indent);
00037
00042 void Initialize();
00043
00046 void Finalize();
00047
00048 int ParseConfigurationFile(const char* fname, const char* dir);
00049
00050 int ParseConfiguration(const char* configuration);
00051
00052 void AddConfigurationFile(const char* fname, const char* dir);
00053
00054 unsigned int GetNumberOfConfigurationFiles();
00055
00057 void GetConfigurationFile(
00058 unsigned int idx, const char*& fname, const char*& dir);
00060
00061 void ParseConfigurationFiles();
00062
00063 protected:
00064 vtkSMApplication();
00065 ~vtkSMApplication();
00066
00067 virtual void SaveState(const char*, ostream*, vtkIndent) {};
00068
00069 vtkSMApplicationInternals* Internals;
00070 private:
00071 vtkSMApplication(const vtkSMApplication&);
00072 void operator=(const vtkSMApplication&);
00073 };
00074
00075 #endif