C# Class Encog.Persist.Persistors.Generic.GenericPersistor

An Encog perisistor that can be used with any object that supports the Encog generic persistence. Simply provide the class to the constructor, and return an instance of this object in the getPersistor call. When loading an object, Encog will attempt to use this class if no other suitable persistor can be found.
Inheritance: IPersistor
Exibir arquivo Open project: encog/encog-silverlight-core

Public Methods

Method Description
GenericPersistor ( Type clazz ) : System

Construct a generic persistor for the specified class.

Load ( ReadXML xmlIn ) : IEncogPersistedObject

Load from the specified node.

Save ( IEncogPersistedObject obj, WriteXML xmlOut ) : void

Save the specified object.

Method Details

GenericPersistor() public method

Construct a generic persistor for the specified class.
public GenericPersistor ( Type clazz ) : System
clazz System.Type The class to construct a persistor for.
return System

Load() public method

Load from the specified node.
public Load ( ReadXML xmlIn ) : IEncogPersistedObject
xmlIn Encog.Parse.Tags.Read.ReadXML The node to load from.
return IEncogPersistedObject

Save() public method

Save the specified object.
public Save ( IEncogPersistedObject obj, WriteXML xmlOut ) : void
obj IEncogPersistedObject The object to save.
xmlOut Encog.Parse.Tags.Write.WriteXML The XML object.
return void