00001 //-------------------------------------------------- 00009 //-------------------------------------------------- 00010 00011 00012 #include "configuration.h" 00013 #include <iostream> 00014 00015 namespace imedgine 00016 { 00017 00018 //-------------------------------------------------- 00019 00020 Configuration::Configuration() 00021 { 00022 std::cout << "construction configuration" << std::endl; 00023 } 00024 00025 //-------------------------------------------------- 00026 00027 Configuration::Configuration(Configuration const& src) 00028 { 00029 } 00030 00031 //-------------------------------------------------- 00032 00033 Configuration::~Configuration() 00034 { 00035 std::cout << "destructing configuration" << std::endl; 00036 } 00037 00038 //-------------------------------------------------- 00039 00040 Configuration& Configuration::operator = (Configuration const& src) 00041 { 00042 return *this; 00043 } 00044 00045 //-------------------------------------------------- 00046 00047 void Configuration::registerDataset(config_dataset_id_type input_dataset_id, 00048 dataset_pointer_type dataset) 00049 { 00050 id_to_dataset_map_[input_dataset_id] = dataset; 00051 } 00052 00053 //-------------------------------------------------- 00054 00055 dataset_pointer_type Configuration::getDataset( 00056 config_dataset_id_type input_dataset_id) const 00057 { 00058 const_dataset_pointer_map_type_iterator iterator = 00059 id_to_dataset_map_.find(input_dataset_id); 00060 if (iterator == id_to_dataset_map_.end()) 00061 { 00062 return dataset_pointer_type(); 00063 } 00064 return iterator->second; 00065 } 00066 00067 } // namespace imedgine