NSClient: add {Set,Get}InfoKey() methods.
This commit is contained in:
parent
3c71b49b49
commit
88131dbb9a
2 changed files with 18 additions and 0 deletions
|
@ -67,6 +67,11 @@ public:
|
||||||
It's the first method to be called after receiving the input variables from the client.*/
|
It's the first method to be called after receiving the input variables from the client.*/
|
||||||
virtual void ServerInputFrame(void);
|
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 */
|
/* overrides */
|
||||||
virtual void Save(float);
|
virtual void Save(float);
|
||||||
virtual void Restore(string,string);
|
virtual void Restore(string,string);
|
||||||
|
|
|
@ -41,6 +41,19 @@ void
|
||||||
NSClient::ServerInputFrame(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
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue