C# Класс MATLABfromCSharp.LogSystem

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

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

Метод Описание
Clear ( ) : void

Clear the LogSystem, includes the listView.

ImportLog ( string FileName ) : string[]

Reads in the saved Log from a *.txt File.

SaveLog ( string Filename ) : void

Writes the Log to a *.txt File. Writing Style: Server = Database : KeyVariableName = Attribute = PathwayToElement = TimeRange

addLogInput ( string keySrv_Db, LogInput logInput, bool addToListView ) : void

Log the new export of Matlab data Steps: 1) Check for the Server_database key 2) Add variable name to server list and logs. 3) Add to the ListView - doesn't add to ListView when editting.

addView ( ListView lv ) : void

Passes the LogView from the LogDialog to the LogSystem.

getLogInput ( string keyVariableName ) : LogInput

Gets the LogInput based on the unique variable name.

isLogEmpty ( ) : bool

Returns whether not the Log is empty.

isVariableInLogSystem ( string varname ) : bool

Checks the log for the variable name.

parseServerDatabaseKey ( string srv_db ) : string[]

Parses the Server Database string representation into the server and database names.

removeLogInput ( string keyName, string srv_db ) : void

Removes a loginput connected to the KeyVariableName and removes it from the server_database.

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

Метод Описание
isServer_DatabasesInLogSystem ( string srv_db_name ) : bool

Check that the server_databae already exists.

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

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

Clear the LogSystem, includes the listView.
public static Clear ( ) : void
Результат void

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

Reads in the saved Log from a *.txt File.
public static ImportLog ( string FileName ) : string[]
FileName string The location of the file.
Результат string[]

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

Writes the Log to a *.txt File. Writing Style: Server = Database : KeyVariableName = Attribute = PathwayToElement = TimeRange
public static SaveLog ( string Filename ) : void
Filename string The path to the file location.
Результат void

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

Log the new export of Matlab data Steps: 1) Check for the Server_database key 2) Add variable name to server list and logs. 3) Add to the ListView - doesn't add to ListView when editting.
public static addLogInput ( string keySrv_Db, LogInput logInput, bool addToListView ) : void
keySrv_Db string The string representing the server and database
logInput LogInput The LogInput entry.
addToListView bool true: adds a ListViewItem to the ListView (generally true, false when editting)
Результат void

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

Passes the LogView from the LogDialog to the LogSystem.
public static addView ( ListView lv ) : void
lv System.Windows.Forms.ListView The Listview to display the LogSystem.
Результат void

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

Gets the LogInput based on the unique variable name.
public static getLogInput ( string keyVariableName ) : LogInput
keyVariableName string The unique variable name.
Результат LogInput

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

Returns whether not the Log is empty.
public static isLogEmpty ( ) : bool
Результат bool

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

Checks the log for the variable name.
public static isVariableInLogSystem ( string varname ) : bool
varname string the unique variable name.
Результат bool

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

Parses the Server Database string representation into the server and database names.
public static parseServerDatabaseKey ( string srv_db ) : string[]
srv_db string String representation of server and database.
Результат string[]

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

Removes a loginput connected to the KeyVariableName and removes it from the server_database.
public static removeLogInput ( string keyName, string srv_db ) : void
keyName string
srv_db string
Результат void