00001 ///////////////////////////////////////////////////////////////////////////// 00002 // File: gnFeature.cpp 00003 // Purpose: implements the gnBaseFeature for generic features 00004 // Description: 00005 // Changes: 00006 // Version: libGenome 0.5.1 00007 // Author: Aaron Darling 00008 // Modified by: 00009 // Copyright: (c) Aaron Darling 00010 // Licenses: See COPYING file for details 00011 ///////////////////////////////////////////////////////////////////////////// 00012 #include "gn/gnFeature.h" 00013 #include "gn/gnLocation.h" 00014 #include "gn/gnStringQualifier.h" 00015 #include "gn/gnDebug.h" 00016 #include <list> 00017 00018 gnFeature::gnFeature() 00019 { 00020 /* m_id = 0; 00021 m_name = ""; 00022 m_locationType = gnLocation::LT_Nothing; 00023 m_broken = false; 00024 */} 00025 gnFeature::gnFeature( string& name, uint32 id, gnLocation::gnLocationType lt, boolean broken ) 00026 : gnBaseFeature(name, id, NULL, lt, broken) 00027 { 00028 } 00029 gnFeature::gnFeature( const gnFeature& s ) 00030 { 00031 uint32 i; 00032 m_id = s.m_id; 00033 m_name = s.m_name; 00034 m_locationType = s.m_locationType; 00035 m_broken = s.m_broken; 00036 m_spec = s.m_spec; 00037 for( i=0; i < s.m_locationList.size(); i++) 00038 m_locationList.push_back(s.m_locationList[i]); 00039 for( i=0; i < s.m_qualifierList.size(); i++) 00040 m_qualifierList.push_back(s.m_qualifierList[i]->Clone()); 00041 } 00042 gnFeature::~gnFeature() 00043 { 00044 }