C# Класс Encog.Persist.EncogDirectoryPersistence

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
EncogDirectoryPersistence ( FileInfo parent ) : System

Construct the object.

GetEncogType ( String name ) : String

Get the type of an Encog object in an EG file, without the need to read the entire file.

LoadFromDirectory ( String name ) : Object

Load a file from the directory that this object refers to.

LoadObject ( FileInfo file ) : Object

Load the specified object.

LoadObject ( Stream mask0 ) : Object

Load an object from an input stream.

SaveObject ( FileInfo filename, Object obj ) : void

Save the specified object.

SaveObject ( Stream os, Object obj ) : void

Save the specified object.

SaveToDirectory ( String name, Object obj ) : void

Save a file to the directory that this object refers to.

Приватные методы

Метод Описание
ReadLine ( Stream mask0 ) : String

Read a line from the input stream.

Описание методов

EncogDirectoryPersistence() публичный Метод

Construct the object.
public EncogDirectoryPersistence ( FileInfo parent ) : System
parent System.IO.FileInfo The directory to use.
Результат System

GetEncogType() публичный Метод

Get the type of an Encog object in an EG file, without the need to read the entire file.
public GetEncogType ( String name ) : String
name String The filename to read.
Результат String

LoadFromDirectory() публичный Метод

Load a file from the directory that this object refers to.
public LoadFromDirectory ( String name ) : Object
name String The name to load.
Результат Object

LoadObject() публичный статический Метод

Load the specified object.
public static LoadObject ( FileInfo file ) : Object
file System.IO.FileInfo The file to load.
Результат Object

LoadObject() публичный статический Метод

Load an object from an input stream.
public static LoadObject ( Stream mask0 ) : Object
mask0 Stream The input stream to read from.
Результат Object

SaveObject() публичный статический Метод

Save the specified object.
public static SaveObject ( FileInfo filename, Object obj ) : void
filename System.IO.FileInfo The filename to save to.
obj Object The Object to save.
Результат void

SaveObject() публичный статический Метод

Save the specified object.
public static SaveObject ( Stream os, Object obj ) : void
os Stream The output stream to write to.
obj Object The object to save.
Результат void

SaveToDirectory() публичный Метод

Save a file to the directory that this object refers to.
public SaveToDirectory ( String name, Object obj ) : void
name String The name to load.
obj Object The object.
Результат void