C# Class Encog.Persist.PersistReader

Utility class for reading Encog persited object files.
Afficher le fichier Open project: encog/encog-silverlight-core Class Usage Examples

Méthodes publiques

Méthode Description
Advance ( String name ) : bool

Advance to the specified object.

AdvanceObjectsCollection ( ) : void

Advance to the objects collection.

BuildDirectory ( ) : IList

Build a directory entry list for the file.

Close ( ) : void

Close the file.

PersistReader ( IPersistenceLocation location ) : System

Construct a persist reader.

ReadHeader ( ) : string>.IDictionary

Read an Encog header.

ReadNextTag ( String name ) : bool

Read until the next tag of the specified name.

ReadNextText ( String name ) : String

Read all text until the specified ending tag is found.

ReadObject ( String name ) : IEncogPersistedObject

Read the specific object, search through the objects until its found.

ReadValue ( String name ) : String

Read the value in a period delimited string. For example property.name.value.

SaveModified ( WriteXML xmlOut, String targetName, String newName, String newDesc ) : void

Modify the properties of this object.

SaveTo ( WriteXML xmlOut, String skip ) : void

Save all objects to the specified steam, skip the one specified by the skip parameter. Do not attempt to understand the structure, just copy.

Private Methods

Méthode Description
AdvanceObjects ( String name ) : bool

Once you are in the objects collection, advance to a specific object.

AdvanceToTag ( String tag ) : bool

Advance to the specified tag.

CopyAttributes ( WriteXML xmlOut, String>.IDictionary replace ) : void

Copy all of the attributes to the writer.

CopyXML ( WriteXML xmlOut, String>.IDictionary replace ) : void

Copy an XML object, no need to know what it contains, just copy it. This way we will not damage unknown objects during a merge.

SkipObject ( ) : void

Skip the current object.

Method Details

Advance() public méthode

Advance to the specified object.
public Advance ( String name ) : bool
name String The name of the object looking for.
Résultat bool

AdvanceObjectsCollection() public méthode

Advance to the objects collection.
public AdvanceObjectsCollection ( ) : void
Résultat void

BuildDirectory() public méthode

Build a directory entry list for the file.
public BuildDirectory ( ) : IList
Résultat IList

Close() public méthode

Close the file.
public Close ( ) : void
Résultat void

PersistReader() public méthode

Construct a persist reader.
public PersistReader ( IPersistenceLocation location ) : System
location IPersistenceLocation The location to use.
Résultat System

ReadHeader() public méthode

Read an Encog header.
public ReadHeader ( ) : string>.IDictionary
Résultat string>.IDictionary

ReadNextTag() public méthode

Read until the next tag of the specified name.
public ReadNextTag ( String name ) : bool
name String The name searched for.
Résultat bool

ReadNextText() public méthode

Read all text until the specified ending tag is found.
public ReadNextText ( String name ) : String
name String The tag.
Résultat String

ReadObject() public méthode

Read the specific object, search through the objects until its found.
public ReadObject ( String name ) : IEncogPersistedObject
name String The name of the object you are looking for.
Résultat IEncogPersistedObject

ReadValue() public méthode

Read the value in a period delimited string. For example property.name.value.
public ReadValue ( String name ) : String
name String The property to read.
Résultat String

SaveModified() public méthode

Modify the properties of this object.
public SaveModified ( WriteXML xmlOut, String targetName, String newName, String newDesc ) : void
xmlOut Encog.Parse.Tags.Write.WriteXML The XML writer.
targetName String The name of the object to change.
newName String The new name of this object.
newDesc String The new description of this object.
Résultat void

SaveTo() public méthode

Save all objects to the specified steam, skip the one specified by the skip parameter. Do not attempt to understand the structure, just copy.
public SaveTo ( WriteXML xmlOut, String skip ) : void
xmlOut Encog.Parse.Tags.Write.WriteXML The XML writer to save the objects to.
skip String The object to skip.
Résultat void