NSClient: add {Set,Get}InfoKey() methods.

This commit is contained in:
Marco Cawthorne 2022-12-30 00:12:36 -08:00
parent 3c71b49b49
commit 88131dbb9a
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
2 changed files with 18 additions and 0 deletions

View File

@ -67,6 +67,11 @@ public:
It's the first method to be called after receiving the input variables from the client.*/
virtual void ServerInputFrame(void);
/** Set the value of an InfoKey. */
nonvirtual void SetInfoKey(string, string);
/** Get the string value of an InfoKey. */
nonvirtual string GetInfoKey(string);
/* overrides */
virtual void Save(float);
virtual void Restore(string,string);

View File

@ -41,6 +41,19 @@ void
NSClient::ServerInputFrame(void)
{
}
void
NSClient::SetInfoKey(string strKey, string strValue)
{
forceinfokey(this, strKey, strValue);
}
string
NSClient::GetInfoKey(string strKey)
{
return infokey(this, strKey);
}
#endif
void