XmlSerializer

class simtk.openmm.openmm.XmlSerializer(*args, **kwargs)

XmlSerializer is used for serializing objects as XML, and for reconstructing them again.

__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(*args, **kwargs) Initialize self.
deserialize(inputString) Reconstruct an object that has been serialized as XML.
deserializeSystem(inputString) This method exists only for backward compatibility.
serialize(object) Serialize an object as XML.
serializeSystem(object) This method exists only for backward compatibility.
static serializeSystem(object) → std::string

This method exists only for backward compatibility.

Deprecated

Use serialize() instead.
static deserializeSystem(inputString) → System

This method exists only for backward compatibility.

Deprecated

Use deserialize() instead.
static serialize(object)

Serialize an object as XML.

static deserialize(inputString)

Reconstruct an object that has been serialized as XML.