C# 클래스 Encog.Persist.PersistReader

Utility class for reading Encog persited object files.
파일 보기 프로젝트 열기: encog/encog-silverlight-core 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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.

메소드 상세

Advance() 공개 메소드

Advance to the specified object.
public Advance ( String name ) : bool
name String The name of the object looking for.
리턴 bool

AdvanceObjectsCollection() 공개 메소드

Advance to the objects collection.
public AdvanceObjectsCollection ( ) : void
리턴 void

BuildDirectory() 공개 메소드

Build a directory entry list for the file.
public BuildDirectory ( ) : IList
리턴 IList

Close() 공개 메소드

Close the file.
public Close ( ) : void
리턴 void

PersistReader() 공개 메소드

Construct a persist reader.
public PersistReader ( IPersistenceLocation location ) : System
location IPersistenceLocation The location to use.
리턴 System

ReadHeader() 공개 메소드

Read an Encog header.
public ReadHeader ( ) : string>.IDictionary
리턴 string>.IDictionary

ReadNextTag() 공개 메소드

Read until the next tag of the specified name.
public ReadNextTag ( String name ) : bool
name String The name searched for.
리턴 bool

ReadNextText() 공개 메소드

Read all text until the specified ending tag is found.
public ReadNextText ( String name ) : String
name String The tag.
리턴 String

ReadObject() 공개 메소드

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.
리턴 IEncogPersistedObject

ReadValue() 공개 메소드

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

SaveModified() 공개 메소드

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.
리턴 void

SaveTo() 공개 메소드

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.
리턴 void