47 using System.Xml.Serialization;
280 #endregion Constructors
308 Logger.Instance.LogFunctionStartDebug(
"OKW_Ini.Instance");
309 if (_Instance == null) {
314 Logger.Instance.LogFunctionEndDebug();
319 #endregion Properties
414 Log.LogFunctionStart(this.GetType().FullName +
".Init");
418 this.OKW_Enviroment.
Folder_XML =
string.Empty;
423 this.OKW_Enviroment.
Folder_XML =
System.Environment.GetEnvironmentVariable(
"OKW_Xml");
426 if (
string.IsNullOrEmpty(this.OKW_Enviroment.
Folder_XML))
433 bool bXML_Folder_Exists =
System.IO.Directory.Exists(this.OKW_Enviroment.
Folder_XML);
435 if (bXML_Folder_Exists)
444 if (bFile_OKW_Ini_xml_Exists)
461 this.Log.LogFunctionEnd();
484 this.Log.LogFunctionStartDebug(this.GetType().FullName +
"Read()");
487 XmlSerializer serializer =
new XmlSerializer(typeof(
OKW_Ini));
489 _Instance = (
OKW_Ini)serializer.Deserialize(fs);
494 this.Log.LogFunctionEndDebug();
507 Log.
LogPrint(
"----------------------------------------------------------------" );
509 Log.
LogPrint(
"----------------------------------------------------------------");
515 Log.
LogPrint(
"----------------------------------------------------------------");
517 Log.
LogPrint(
"----------------------------------------------------------------");
520 Log.
LogPrint(
"----------------------------------------------------------------" );
525 Log.
LogPrint(
"----------------------------------------------------------------" );
551 Log.LogFunctionStartDebug(this.GetType().FullName +
".Save()");
554 XmlSerializer serializer =
new XmlSerializer(typeof(
OKW_Ini));
555 StreamWriter fs =
new StreamWriter(this.OKW_Enviroment.
File_OKW_Ini_xml,
false);
556 serializer.Serialize(fs, _Instance);
559 Log.LogFunctionEndDebug();
580 string lvsReturn =
string.Empty;
582 Log.LogFunctionStartDebug(this.GetType().FullName +
".MyDirectory()");
585 string codeBase = Assembly.GetExecutingAssembly().CodeBase;
586 System.UriBuilder uri =
new System.UriBuilder(codeBase);
587 string path = Uri.UnescapeDataString(uri.Path);
588 lvsReturn = Path.GetDirectoryName(path);
590 Log.LogFunctionEndDebug(lvsReturn);
string File_OKW_ImplementationMatrix_xml
Property get/set von __File_OKW_ImplementationMatrix_xml.
void LogPrint(string fps_Message)
LogPrint Function: Prints the values of expressions to the results file.
void ResOpenList(string fps_Name)
Creates a new hierarchical level in the results file. Use ResOpenList to start a new hierarchical lev...
string Folder_LogMessages
Property get/set von __Folder_LogMessages.
OKW_Ini()
Diese Klasse ist ein Singelton.
static OKW_Ini Instance
Singelton-Pattern: Instanz gibt die aktuelle, gültige und einzige Innstanz der Klasse zurück...
string File_OKW_Ini_xml
Property get/set von __File_OKW_Ini_xml.
string MyDirectory()
Ermittelt den Pfad zu assambly OKW.dll.
string File_OKW_Const_xml
Property get/set von __File_OKW_Const_xml.
int TimeOutNotExists
Öffentliches Property "TimeOutNotExists".
OKW_Enviroment OKW_Enviroment
Dieses Feld hält den Abschnitt OKW_Enviroment der OKW_Ini.xml vor.
void Init()
Initialsiert die Klasse OKW.OKW_Ini.
string File_OKW_Keymaps_xml
Property get/set von __File_OKW_Keymaps_xml.
void Read()
Liest die Eigenschaften der Klasse OKW_Ini aus einer Datei, gegeben in OKW.OKW_Ini.Xml_Ini_xml, ein. Es wird eine XML Datei geschrieben. Hierzu wird die Klasse OKW_Ini mit System.Xml.XmlSerializer serialisiert.
string File_OKW_Docu_xml
Property get/set von __File_OKW_Const_xml.
Property-Klasse von OKW.OKW_Ini. Stellt Umgebungseigenschaften von OKW zur Verfügung.
string Language
Öffentliches Property "Language".
string PathSep
Öffentliches Property "PathSep".
string Folder_XML
Property get/set von __Folder_XML.
static void Reset()
Löschen und zurücksetzten der Klasse.
void Save()
Schreibt die Eigenschaften der Klasse OKW_Ini in eine Datei, gegeben in OKW.OKW_Ini.Xml_Ini_xml. Es wird eine XML Datei geschrieben. Hierzu wird die Klasse OKW_Ini mit der Klasse System.Xml.XmlSerializer serialisiert.
OKW.OKW_Ini ist die Klasse zur Konfigurationsdatei OKW_Ini.xml.
int TimeOutExists
Öffentliches Property "TimeOutExists".
static OKW_Ini _Instance
Singelton-Pattern: Feld enthält die einzige gültige Instanz dieser Klasse.
Property-Klasse die Umgebungseigenschaften von OKW zur Verfügung stellt.
OKW_CustomSettings OKW_CustomSettings
Dieses Feld hält den Abschnitt OKW_CustomSettings der OKW_Ini.xml vor.
void ResCloseList()
Closes a hierarchical level in the results file that was opened with ResOpenList. Use ResOpenList to ...
string File_OKW_Memorize_xml
Property get/set von __File_OKW_Memorize_xml.