25 #ifndef vtkSMStateLoader_h 26 #define vtkSMStateLoader_h 28 #include "vtkPVServerManagerCoreModule.h" 38 struct vtkSMStateLoaderInternals;
45 void PrintSelf(ostream& os, vtkIndent indent);
50 int LoadState(
vtkPVXMLElement* rootElement,
bool keepOriginalId =
false);
66 vtkSetMacro(KeepIdMapping,
int);
67 vtkGetMacro(KeepIdMapping,
int);
68 vtkBooleanMacro(KeepIdMapping,
int);
78 vtkTypeUInt32* GetMappingArray(
int& size);
111 const char* xmlgroup,
const char* xmlname,
const char* subProxyName = NULL);
126 virtual void RegisterProxy(vtkTypeUInt32
id,
vtkSMProxy* proxy);
127 virtual void RegisterProxyInternal(
const char* group,
const char* name,
vtkSMProxy* proxy);
139 virtual bool UpdateRegistrationInfo(std::string& group, std::string& name,
vtkSMProxy* proxy);
163 vtkSMProxy* LocateExistingProxyUsingRegistrationName(vtkTypeUInt32
id);
173 vtkSMStateLoaderInternals* Internal;
vtkPVXMLElement * ServerManagerStateElement
vtkSMProxyLocator * ProxyLocator
virtual void CreatedNewProxy(vtkTypeUInt32 id, vtkSMProxy *proxy)
Called after a new proxy has been created.
virtual vtkSMProxy * CreateProxy(const char *xmlgroup, const char *xmlname, const char *subProxyName=NULL)
Create a new proxy of the given group and name.
static vtkSMDeserializerXML * New()
proxy for a VTK object(s) on a server
is used to locate proxies referred to in state xmls while loading state files.
deserializes proxies from their XML states.
Utility class to load state from XML.
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
void PrintSelf(ostream &os, vtkIndent indent)
virtual vtkPVXMLElement * LocateProxyElement(vtkTypeUInt32 id)
Locate the XML for the proxy with the given id.