File: gnFeature.cpp

package info (click to toggle)
libgenome 1.3.1-7
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,156 kB
  • ctags: 1,212
  • sloc: cpp: 10,910; sh: 8,264; makefile: 79
file content (56 lines) | stat: -rw-r--r-- 1,421 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/////////////////////////////////////////////////////////////////////////////
// File:            gnFeature.cpp
// Purpose:         implements the gnBaseFeature for generic features
// Description:     
// Changes:        
// Version:         libGenome 0.5.1 
// Author:          Aaron Darling 
// Modified by:     
// Copyright:       (c) Aaron Darling 
// Licenses:        See COPYING file for details
/////////////////////////////////////////////////////////////////////////////
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include "libGenome/gnFeature.h"
#include "libGenome/gnLocation.h"
#include "libGenome/gnStringQualifier.h"
#include "libGenome/gnDebug.h"
#include <list>


using namespace std;
namespace genome {


gnFeature::gnFeature()
{
/*	m_id = 0;
	m_name = "";
	m_locationType = gnLocation::LT_Nothing;
	m_broken = false;
*/}
gnFeature::gnFeature( string& name, uint32 id, gnLocation::gnLocationType lt, boolean broken )
 : gnBaseFeature(name, id, NULL, lt, broken)
{
}
gnFeature::gnFeature( const gnFeature& s )
{
	uint32 i;
	m_id = s.m_id;
	m_name = s.m_name;
	m_locationType = s.m_locationType;
	m_broken = s.m_broken;
	m_spec = s.m_spec;
	for( i=0; i < s.m_locationList.size(); i++)
		m_locationList.push_back(s.m_locationList[i]);
	for( i=0; i < s.m_qualifierList.size(); i++)
		m_qualifierList.push_back(s.m_qualifierList[i]->Clone());
}
gnFeature::~gnFeature()
{
}

}	// end namespace genome