00001 #ifndef _RQT_MRTA_ARCHITECTURE_CONFIG_ALLOCATIONS_H_ 00002 #define _RQT_MRTA_ARCHITECTURE_CONFIG_ALLOCATIONS_H_ 00003 00004 #include "utilities/abstract_config.h" 00005 #include "rqt_mrta/config/architecture/allocated_tasks.h" 00006 00007 namespace rqt_mrta 00008 { 00009 namespace config 00010 { 00011 namespace architecture 00012 { 00013 class Allocations : public utilities::AbstractConfig 00014 { 00015 Q_OBJECT 00016 public: 00017 Allocations(QObject* parent = NULL); 00018 virtual ~Allocations(); 00019 QString getType() const; 00020 AllocatedTasks* getAllocatedTasks() const; 00021 void setType(const QString& type); 00022 void save(QSettings& settings) const; 00023 void load(QSettings& settings); 00024 void reset(); 00025 void write(QDataStream& stream) const; 00026 void read(QDataStream& stream); 00027 Allocations& operator=(const Allocations& config); 00028 00029 signals: 00030 void changed(); 00031 void typeChanged(const QString& type); 00032 00033 private: 00034 QString type_; 00035 AllocatedTasks* allocated_tasks_; 00036 }; 00037 } 00038 } 00039 } 00040 00041 #endif // _RQT_MRTA_ARCHITECTURE_CONFIG_ALLOCATIONS_H_