mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-04 07:41:58 +00:00
COMMON: ConfMan::Domain::tryGetVal
This commit is contained in:
parent
d83a38e0e6
commit
ee4799c51a
@ -78,6 +78,7 @@ public:
|
||||
|
||||
String &getVal(const String &key) { return _entries.getVal(key); }
|
||||
const String &getVal(const String &key) const { return _entries.getVal(key); }
|
||||
bool tryGetVal(const String &key, String &out) const { return _entries.tryGetVal(key, out); }
|
||||
|
||||
void clear() { _entries.clear(); }
|
||||
|
||||
@ -115,7 +116,7 @@ public:
|
||||
* @param domName Name of the domain to retrieve.
|
||||
* @return Pointer to the domain, or 0 if the domain does not exist.
|
||||
*/
|
||||
Domain *getDomain(const String &domName);
|
||||
Domain * getDomain(const String &domName);
|
||||
const Domain *getDomain(const String &domName) const; /*!< @overload */
|
||||
|
||||
|
||||
@ -127,7 +128,7 @@ public:
|
||||
*/
|
||||
|
||||
bool hasKey(const String &key) const;
|
||||
const String &get(const String &key) const;
|
||||
const String & get(const String &key) const;
|
||||
void set(const String &key, const String &value);
|
||||
/** @} */
|
||||
|
||||
@ -149,7 +150,7 @@ public:
|
||||
*/
|
||||
|
||||
bool hasKey(const String &key, const String &domName) const;
|
||||
const String &get(const String &key, const String &domName) const;
|
||||
const String & get(const String &key, const String &domName) const;
|
||||
void set(const String &key, const String &value, const String &domName);
|
||||
|
||||
void removeKey(const String &key, const String &domName);
|
||||
@ -190,7 +191,7 @@ public:
|
||||
bool hasGameDomain(const String &domName) const;
|
||||
bool hasMiscDomain(const String &domName) const;
|
||||
|
||||
const DomainMap &getGameDomains() const { return _gameDomains; }
|
||||
const DomainMap & getGameDomains() const { return _gameDomains; }
|
||||
DomainMap::iterator beginGameDomains() { return _gameDomains.begin(); }
|
||||
DomainMap::iterator endGameDomains() { return _gameDomains.end(); }
|
||||
|
||||
@ -221,7 +222,7 @@ private:
|
||||
Array<String> _domainSaveOrder;
|
||||
|
||||
String _activeDomainName;
|
||||
Domain *_activeDomain;
|
||||
Domain * _activeDomain;
|
||||
|
||||
String _filename;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user