ModuleParameterGroup.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
00004 
00005   See Doc/copyright/copyright.txt
00006   or http://www.slicer.org/copyright/copyright.txt for details.
00007 
00008   Program:   Module Description Parser
00009   Module:    $HeadURL: http://svn.slicer.org/Slicer3/trunk/Libs/SlicerExecutionModel/ModuleDescriptionParser/ModuleParameterGroup.h $
00010   Date:      $Date: 2006-06-20 08:02:31 -0400 (Tue, 20 Jun 2006) $
00011   Version:   $Revision: 615 $
00012 
00013 ==========================================================================*/
00014 
00015 #ifndef __ModuleParameterGroup_h
00016 #define __ModuleParameterGroup_h
00017 
00018 #include "ModuleDescriptionParserWin32Header.h"
00019 #include "ModuleParameter.h"
00020 
00021 #include <vector>
00022 #include <string>
00023 
00024 class ModuleDescriptionParser_EXPORT ModuleParameterGroup
00025 {
00026 public:
00027   ModuleParameterGroup() {};
00028   ModuleParameterGroup(const ModuleParameterGroup &parameters);
00029 
00030   void operator=(const ModuleParameterGroup &parameters);
00031 
00032   void SetLabel(const std::string &label) {
00033     this->Label = label;
00034   }
00035 
00036   const std::string& GetLabel() const {
00037     return this->Label;
00038   }
00039 
00040   void SetDescription(const std::string &description) {
00041     this->Description = description;
00042   }
00043 
00044   const std::string& GetDescription() const {
00045     return this->Description;
00046   }
00047 
00048   void SetAdvanced(const std::string &advanced) {
00049     this->Advanced = advanced;
00050   }
00051 
00052   const std::string& GetAdvanced() const {
00053     return this->Advanced;
00054   }
00055 
00056   void AddParameter(const ModuleParameter &parameter) {
00057     this->Parameters.push_back(parameter);
00058   }
00059 
00060   const std::vector<ModuleParameter>& GetParameters() const {
00061     return this->Parameters;
00062   }
00063 
00064   std::vector<ModuleParameter>& GetParameters() {
00065     return this->Parameters;
00066   }
00067   
00068 private:
00069   std::string Label;
00070   std::string Description;
00071   std::string Advanced;
00072   std::vector<ModuleParameter> Parameters;
00073 };
00074 
00075 ModuleDescriptionParser_EXPORT std::ostream & operator<<(std::ostream &os, const ModuleParameterGroup &group);
00076 
00077 #endif

Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1