/*========================================================================= Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved. See Doc/copyright/copyright.txt or http://www.slicer.org/copyright/copyright.txt for details. Program: Module Description Parser Module: $HeadURL: http://www.na-mic.org/svn/Slicer3/trunk/Libs/ModuleDescriptionParser/ModuleParameterGroup.cxx $ Date: $Date: 2006-06-20 08:02:31 -0400 (Tue, 20 Jun 2006) $ Version: $Revision: 615 $ ==========================================================================*/ #include "ModuleParameterGroup.h" ModuleParameterGroup ::ModuleParameterGroup(const ModuleParameterGroup ¶meters) { this->Label = parameters.Label; this->Description = parameters.Description; this->Parameters = parameters.Parameters; this->Advanced = parameters.Advanced; } void ModuleParameterGroup ::operator=(const ModuleParameterGroup ¶meters) { this->Label = parameters.Label; this->Description = parameters.Description; this->Parameters = parameters.Parameters; this->Advanced = parameters.Advanced; } std::ostream & operator<<(std::ostream &os, const ModuleParameterGroup &group) { os << " Advanced: " << group.GetAdvanced() << std::endl; os << " Label: " << group.GetLabel() << std::endl; os << " Description: " << group.GetDescription() << std::endl; os << " Parameters: " << std::endl; std::vector::const_iterator it = group.GetParameters().begin(); while (it != group.GetParameters().end()) { os << *it; ++it; } return os; }