|
bool | Exists (string fpsKey) |
|
string | Get (string fpsKey) |
|
void | Init () |
|
void | Read () |
|
void | Save () |
|
void | Set (string fpsKey, string fpsValue) |
|
|
string | OKW_Memorize_xml = string.Empty |
|
SerializableDictionary< string,
string > | _Value = new SerializableDictionary<string, string>() |
|
- Author
- Zoltán Hrabovszki
- Date
- 2013.12.06
OKW.OKW_Memorize.OKW_Memorize |
( |
| ) |
|
|
private |
- Author
- Zoltán Hrabovszki
- Date
- 2014.14.27
151 this.LM =
new LogMessenger(this.GetType().Name);
bool OKW.OKW_Memorize.Exists |
( |
string |
fpsKey | ) |
|
- Author
- Zoltan Hrabovszki
- Date
- 2013.11.25
222 bool lvbReturn =
false;
224 this.Log.LogFunctionStartDebug(_Instance.GetType().FullName +
"Exists",
"string fpsKey", fpsKey);
226 if (this.
_Value.ContainsKey(fpsKey))
231 this.Log.LogFunctionEndDebug(lvbReturn);
SerializableDictionary< string, string > _Value
Definition: OKW_Memorize.cs:97
string OKW.OKW_Memorize.Get |
( |
string |
fpsKey | ) |
|
- Author
- Zoltán Hrabovszki
- Date
- 2014.14.27
252 string lvsReturn = string.Empty;
255 this.Log.LogFunctionStartDebug(_Instance.GetType().FullName +
"Get",
"String fpsKey", fpsKey);
259 if (this.
_Value.ContainsKey(fpsKey))
261 lvsReturn = this._Value[fpsKey];
265 string ErrorText = this.LM.GetMessage(
"Get",
"OKWMemorizeKeyNotExistsException", fpsKey);
266 throw new OKWMemorizeKeyNotExistsException(ErrorText);
275 this.Log.LogFunctionEndDebug();
279 this.Log.LogFunctionEndDebug(lvsReturn);
SerializableDictionary< string, string > _Value
Definition: OKW_Memorize.cs:97
void OKW.OKW_Memorize.Init |
( |
| ) |
|
- Author
- Zoltán Hrabovszki
- Date
- 2013.11.28
319 this.Log.LogFunctionStartDebug(this.GetType().FullName +
".Init");
322 _Instance.OKW_Memorize_xml = string.Empty;
323 _Instance._Value.Clear();
327 this.OKW_Memorize_xml = OKW_Ini.Instance.OKW_Enviroment.File_OKWMemorize_xml;
331 this.Log.LogPrintDebug(
"OKW Memorize Datei = >>" + this.OKW_Memorize_xml +
"<<");
332 if (System.IO.File.Exists(
this.OKW_Memorize_xml))
340 this.Log.LogWarning(
"Datei: >>" + this.OKW_Memorize_xml +
"<< nicht gefunden.");
345 this.Log.LogWarning(
"Enviroment variable 'OKWIni' not set!");
348 this.Log.LogFunctionEndDebug();
string OKW_Memorize_xml
Definition: OKW_Memorize.cs:84
void OKW.OKW_Memorize.Read |
( |
| ) |
|
- Author
- Zoltán Hrabovszki
- Date
- 2013.11.28
364 this.Log.LogFunctionStartDebug(_Instance.GetType().FullName +
"Read()");
368 XmlSerializer serializer =
new XmlSerializer(typeof(
OKW_Memorize));
375 this.Log.LogFunctionEndDebug();
OKW_Memorize()
Definition: OKW_Memorize.cs:149
string OKW_Memorize_xml
Definition: OKW_Memorize.cs:84
static OKW_Memorize _Instance
Definition: OKW_Memorize.cs:108
static void OKW.OKW_Memorize.Reset |
( |
| ) |
|
|
static |
- Author
- Zoltan Hrabovszki
- Date
- 2013.11.25
static OKW_Memorize _Instance
Definition: OKW_Memorize.cs:108
void OKW.OKW_Memorize.Save |
( |
| ) |
|
- Author
- Zoltán Hrabovszki
- Date
- 2013.11.28
396 this.Log.LogFunctionStartDebug(_Instance.GetType().FullName +
"Save()");
400 XmlSerializer serializer =
new XmlSerializer(typeof(
OKW_Memorize));
407 this.Log.LogFunctionEndDebug();
OKW_Memorize()
Definition: OKW_Memorize.cs:149
string OKW_Memorize_xml
Definition: OKW_Memorize.cs:84
static OKW_Memorize _Instance
Definition: OKW_Memorize.cs:108
void OKW.OKW_Memorize.Set |
( |
string |
fpsKey, |
|
|
string |
fpsValue |
|
) |
| |
- Author
- Zoltán Hrabovszki
- Date
- 2014.12.27
422 this.Log.LogFunctionStartDebug(_Instance.GetType().FullName +
"Set",
"String fpsKey", fpsKey,
"String fpsValue", fpsValue);
426 if (this.
_Value.ContainsKey(fpsKey))
428 string lvsOverwriteKey = this.LM.GetMessage(
"Set",
"OverwriteKeyWarning", fpsKey);
429 string lvsOldValue = this.LM.GetMessage(
"Set",
"OldValue", this._Value[fpsKey]);
430 string lvsNewValue = this.LM.GetMessage(
"Set",
"NewValue", fpsValue);
432 this.Log.LogWarning(lvsOverwriteKey);
433 this.Log.LogPrint(lvsOldValue);
434 this.Log.LogPrint(lvsNewValue);
435 _Instance._Value[fpsKey] = fpsValue;
439 _Instance._Value.Add(fpsKey, fpsValue);
440 this.Log.LogPrint(
"Wert: " + fpsValue +
" wird gespeichert");
448 this.Log.LogFunctionEndDebug();
SerializableDictionary< string, string > _Value
Definition: OKW_Memorize.cs:97
- Author
- Zoltán Hrabovszki
- Date
- 2013.11.28
SerializableDictionary<string, string> OKW.OKW_Memorize._Value = new SerializableDictionary<string, string>() |
- Author
- Zoltán Hrabovszki
- Date
- 2013.11.28
- Author
- Zoltán Hrabovszki
- Date
- 2014.12.28
Logger OKW.OKW_Memorize.Log = Logger.Instance |
|
private |
- Author
- Zoltán Hrabovszki
- Date
- 2013.11.28
string OKW.OKW_Memorize.OKW_Memorize_xml = string.Empty |
- Author
- Zoltán Hrabovszki
- Date
- 2013.11.28
- Author
- Zoltán Hrabovszki
- Date
- 2014.14.27
The documentation for this class was generated from the following file:
- OKW/Develop/OKW_Memorize.cs