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.
__delattr__

x.__delattr__(‘name’) <==> del x.name

__format__()

default object formatter

__getattribute__

x.__getattribute__(‘name’) <==> x.name

__hash__
__reduce__()

helper for pickle

__reduce_ex__()

helper for pickle

__sizeof__() → int

size of object in memory, in bytes

__str__
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.