TranslationDomain#

class TranslationDomain#

Class that holds translation resources within a domain.

This class is essentially a map from resource names (strings) to instances of std::shared_ptr<TranslationResource>.

Public Functions

ResourceRef getOrCreateResource(const std::string &resourceName)#

Get the specified TranslationResource instance.

Create, insert and return an empty one if there is no such resource yet.

ResourceRef getResource(const std::string &resourceName) const#

Get the specified TranslationResource instance.

Return an empty shared pointer if there is no such resource yet.