ParaView
vtkClientServerInterpreterInitializer.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkClientServerInterpreterInitializer.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 =========================================================================*/
28 #ifndef vtkClientServerInterpreterInitializer_h
29 #define vtkClientServerInterpreterInitializer_h
30 
31 #include "vtkObject.h"
32 #include "vtkPVCommonModule.h" // needed for export macro
33 
35 
36 class VTKPVCOMMON_EXPORT vtkClientServerInterpreterInitializer : public vtkObject
37 {
38 public:
39  vtkTypeMacro(vtkClientServerInterpreterInitializer, vtkObject);
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
45  vtkClientServerInterpreter* NewInterpreter();
46 
55  static vtkClientServerInterpreter* GetGlobalInterpreter();
56 
61  static vtkClientServerInterpreterInitializer* GetInitializer();
62 
63  typedef void (*InterpreterInitializationCallback)(vtkClientServerInterpreter*);
64 
73  void RegisterCallback(InterpreterInitializationCallback callback);
74 
75 protected:
79 
84  void RegisterInterpreter(vtkClientServerInterpreter*);
85 
86 private:
88  const vtkClientServerInterpreterInitializer&) VTK_DELETE_FUNCTION;
89  void operator=(const vtkClientServerInterpreterInitializer&) VTK_DELETE_FUNCTION;
90 
91  class vtkInternals;
92  vtkInternals* Internals;
93 };
94 
95 #endif
vtkClientServerInterpreterInitializer initializes and maintains the global vtkClientServerInterpreter...
Run-time VTK interpreter.