ParaView
vtkCPCxxHelper.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkCPCxxHelper.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 #ifndef vtkCPCxxHelper_h
16 #define vtkCPCxxHelper_h
17 
18 #include "vtkObject.h"
19 #include "vtkPVCatalystModule.h" // For windows import/export of shared libraries
20 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
21 
22 class vtkPVOptions;
23 
32 class VTKPVCATALYST_EXPORT vtkCPCxxHelper : public vtkObject
33 {
34 public:
35  static vtkCPCxxHelper* New();
36  vtkTypeMacro(vtkCPCxxHelper, vtkObject);
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
39 protected:
41  virtual ~vtkCPCxxHelper();
42 
43 private:
44  vtkCPCxxHelper(const vtkCPCxxHelper&) VTK_DELETE_FUNCTION;
45  void operator=(const vtkCPCxxHelper&) VTK_DELETE_FUNCTION;
46 
47  vtkPVOptions* Options;
48 
50  static vtkWeakPointer<vtkCPCxxHelper> Instance;
51 };
52 
53 #endif
Singleton class for initializing without python.
ParaView options storage.
Definition: vtkPVOptions.h:33