C# 클래스 MATLABfromCSharp.LogSystem

파일 보기 프로젝트 열기: osisoft/PI-to-MATLAB-Utility 1 사용 예제들

공개 메소드들

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