The classes related to serialization of the library data.
You can serialize and deserialize data classes:
Ammunition,
Atmosphere,
ZeroingParameters,
Rifling,
Rifle,
Wind,
ShotParameters,
TrajectoryPoint, and
ReticleDefinition.
To serialize the object use
BallisticXmlSerializer.
Example: How to serialize a reticle definition.
xmlDocument = new XmlDocument();
BallisticXmlSerializer serializer = new BallisticXmlSerializer(xmlDocument);
xmlDocument.AppendChild(serializer.Serialize(reticle));
xmlDocument.Save("mildot.reticle");To deserialize the object use
BallisticXmlDeserializer.
Example: How to read and deserialize a reticle definition
xmlDocument = new XmlDocument();
xmlDocument.Load("mildot.reticle");
BallisticXmlDeserializer deserializer = new BallisticXmlDeserializer();
var reticle1 = deserializer.Deserialize<ReticleDefinition>(xmlDocument.DocumentElement);
| Classes | |
|
Deserializer of ballistic calculator values |
|
|
Extension classes to simplify serialization invocation |
|
|
Serializer |
|
|
The attribute to mark up to constructor to be used to deserialization |
|
|
The attribute to markup the ballistic calculator serializable class |
|
|
The attribute to markup the ballistic calculator serializable property |
|
|
The type that may be serialized by multiple option(s) |
|