vtkSMDeserializerXML.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMDeserializerXML.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 =========================================================================*/
24 #ifndef vtkSMDeserializerXML_h
25 #define vtkSMDeserializerXML_h
26 
27 #include "vtkRemotingServerManagerModule.h" //needed for exports
28 #include "vtkSMDeserializer.h"
29 
30 class vtkPVXMLElement;
31 class vtkSMProxy;
32 class vtkSMProxyLocator;
33 
34 class VTKREMOTINGSERVERMANAGER_EXPORT vtkSMDeserializerXML : public vtkSMDeserializer
35 {
36 public:
37  static vtkSMDeserializerXML* New();
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
41 protected:
43  ~vtkSMDeserializerXML() override;
44 
45  // Friend to access NewProxy().
46  friend class vtkSMProxyLocator;
47 
51  vtkSMProxy* NewProxy(vtkTypeUInt32 id, vtkSMProxyLocator* locator) override;
52 
56  virtual vtkPVXMLElement* LocateProxyElement(vtkTypeUInt32 id);
57 
63  virtual int LoadProxyState(vtkPVXMLElement* element, vtkSMProxy*, vtkSMProxyLocator* locator);
64 
70  const char* xmlgroup, const char* xmlname, const char* subProxyName = NULL) override;
71 
77  virtual void CreatedNewProxy(vtkTypeUInt32 id, vtkSMProxy* proxy);
78 
79 private:
81  void operator=(const vtkSMDeserializerXML&) = delete;
82 };
83 
84 #endif
virtual vtkSMProxy * CreateProxy(const char *xmlgroup, const char *xmlname, const char *subProxyName=NULL)
Create a new proxy of the given group and name.
void PrintSelf(ostream &os, vtkIndent indent) override
deserializes proxies from their states.
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:152
is used to locate proxies referred to in state xmls while loading state files.
deserializes proxies from their XML states.
virtual vtkSMProxy * NewProxy(vtkTypeUInt32 id, vtkSMProxyLocator *locator)=0
Create a new proxy with the id if possible.
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
static vtkObject * New()