mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-07 22:07:48 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* SimulationManager.h
|
||||
* Copyright (c) 2013 ROBLOX Corp. All Rights Reserved.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QMap>
|
||||
|
||||
class QVariant;
|
||||
|
||||
class NameValueStoreManager
|
||||
{
|
||||
public:
|
||||
typedef QMap<QString, QVariant> Properties;
|
||||
typedef QMap<QString, Properties> Stores;
|
||||
|
||||
static NameValueStoreManager& singleton()
|
||||
{
|
||||
static NameValueStoreManager manager;
|
||||
return manager;
|
||||
}
|
||||
|
||||
void setValue(const QString& storeID, const QString& key, const QVariant &value);
|
||||
QVariant getValue(const QString&storeID, const QString& key, bool *isOK = NULL);
|
||||
|
||||
bool clear(const QString& storeID);
|
||||
void clearAll();
|
||||
|
||||
private:
|
||||
Stores store;
|
||||
};
|
||||
Reference in New Issue
Block a user