Beispiel #1
0
Component::Component(ConfigurationManager& params)
	: ResourceAccessor(params, params.getConfigurationNodeForCurrentComponent())
	, m_type(params.getTypeForCurrentComponent())
	, m_configurationNode(params.getConfigurationNodeForCurrentComponent())
	, m_prefix(params.getPrefixForCurrentComponent())
{
	// Telling the ConfigurationManager that the object for the group in prefix is about
	// to be created
	m_confManager->setComponentFromGroupStatusToCreating(m_prefix, this);

	// Declaring self as a resource of ours
	declareResource(ConfigurationNode::separateLastElement(confPath()).element, this);
}
Beispiel #2
0
void ResourceManager::declareResource(const Common::UString &name) {
	declareResource(TypeMan.setFileType(name, kFileTypeNone), TypeMan.getFileType(name));
}