Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

ConfigManager::Domain * Common::ConfigManager::getDomain ( const String domName  ) 

Retrieve the config domain with the given name.

Parameters:
domName the name of the domain to retrieve
Returns:
pointer to the domain, or 0 if the domain doesn't exist.

Definition at line 353 of file config-manager.cpp.

References Common::HashMap< Key, Val, HashFunc, EqualFunc >::contains(), Common::String::empty(), kApplicationDomain, and kTransientDomain.

                                                                   {
      assert(!domName.empty());
      assert(isValidDomainName(domName));

      if (domName == kTransientDomain)
            return &_transientDomain;
      if (domName == kApplicationDomain)
            return &_appDomain;
      if (_gameDomains.contains(domName))
            return &_gameDomains[domName];

      return 0;
}


Generated by  Doxygen 1.6.0   Back to index