00001 #ifndef GSUBOLD_H 00002 #define GSUBOLD_H 00003 #include <string> 00004 00005 using namespace std; 00006 00007 class Gsubrecord { 00008 public: 00009 Gsubrecord() { } 00010 Gsubrecord(const string &ln); 00011 bool operator<(const Gsubrecord &gr) const { 00012 return this->jgipid < gr.jgipid; } 00013 bool operator<(const string &str) const { 00014 return this->jgipid < str; } 00015 string identifiers() const { return jgipid + '\t' + ncbipid + '\t' + locustag; } 00016 00017 string jgipid; 00018 string ncbipid; 00019 string locustag; 00020 string defline; 00021 }; 00022 00023 // helper function, moved to Genefeature class 00024 bool deflineBetter(const string &def1, const string &def2); 00025 00026 #endif
1.5.6