Skip to main content

Module writer

Module writer 

Source
Expand description

Writer for CIM/XML instance documents (IEC 61970-552).

Output is deterministic: objects in ascending mRID order, attributes in schema order, so an unchanged model re-writes byte-identically.

Structs§

WriteOptions
Options controlling serialization.

Enums§

HeaderSource
Where a document’s md:FullModel header comes from.
IdStyle
How to identify objects in the output.

Functions§

classes_in_profile
Classes that a profile may contain, for callers building per-profile exports.
derive_header
The header a document gets when the caller supplies none.
element_class
The class an object is written as in a file serving profiles.
id_style_for
How an object of class is identified in a file serving options.profiles.
object_has_content_in
Whether an object would serialize any attribute in profiles.
object_in_profiles
Whether an object belongs in a file serving profiles — which is not the same question as whether it has anything to say there.
write
Write every object of dataset as one CIM/XML document.
write_difference
Write a difference model (IEC 61970-552 dm:DifferenceModel).
write_objects
Write a chosen subset of objects as one CIM/XML document.
write_profile
Write one profile’s slice of a dataset.
write_profiles
Write the slice of a dataset belonging to a set of profiles.