config_widget.cpp

Go to the documentation of this file.
00001 //--------------------------------------------------
00012 //---------------------------------------------------
00013 #include "config_widget.h"
00014 
00015 #include <QHBoxLayout>
00016 #include <QSpacerItem>
00017 #include <QPushButton>
00018 
00019 namespace imedgine 
00020 {
00021 
00022   ConfigWidget::ConfigWidget(QWidget *parent)
00023    :QWidget(parent)
00024   {
00025   }
00026 
00027   ConfigWidget::~ConfigWidget()
00028   {
00029   }
00030 
00031   //--------------------------------------------------
00032 
00033   void ConfigWidget::setMetadataForInputDataset
00034     (std::string dataset_key, metadata_pointer_type metadata)
00035   {
00036 #ifdef DEBUG
00037     std::cout << "ConfigWidget: Setting metadata for key: " << dataset_key 
00038     << ", " << metadata.get() << std::endl;
00039 #endif
00040     dataset_metadata_.insert(std::make_pair(dataset_key, metadata));
00041   }
00042 
00043   //--------------------------------------------------
00044   
00045   metadata_pointer_type const ConfigWidget::getMetadataForInputDataset(
00046       std::string dataset_key) const
00047   {
00048 #ifdef DEBUG
00049     std::cout << "ConfigWidget: Getting metadata for key: " << dataset_key << std::endl;
00050 #endif
00051 
00052     metadata_container_type::const_iterator metadata_iterator =
00053         dataset_metadata_.find(dataset_key);
00054     if (metadata_iterator == dataset_metadata_.end())
00055     {
00056       return(metadata_pointer_type());
00057     }
00058     return(metadata_iterator->second);
00059   }
00060 
00061   //--------------------------------------------------
00062 
00063   configuration_pointer_type ConfigWidget::getConfiguration() const
00064   {
00065     return configuration_;
00066   }
00067   
00068   //--------------------------------------------------
00069 
00070   void ConfigWidget::setConfiguration(configuration_pointer_type configuration)
00071   {
00072     configuration_ = configuration;
00073   }
00074 }

Generated on Sun Aug 13 18:19:40 2006 for iMEDgine by  doxygen 1.4.6