XmlSerializer

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

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

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)
deserialize(inputString) Reconstruct an object that has been serialized as XML.
deserializeSystem((inputString) -> System) This method exists only for backward compatibility.
serialize(object) Serialize an object as XML.
serializeSystem((object) -> std::string) 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.