NCBI C++ ToolKit
Feature_field.cpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /* $Id: Feature_field.cpp 63879 2014-07-31 20:14:08Z chenj $
2  * ===========================================================================
3  *
4  * PUBLIC DOMAIN NOTICE
5  * National Center for Biotechnology Information
6  *
7  * This software/database is a "United States Government Work" under the
8  * terms of the United States Copyright Act. It was written as part of
9  * the author's official duties as a United States Government employee and
10  * thus cannot be copyrighted. This software/database is freely available
11  * to the public for use. The National Library of Medicine and the U.S.
12  * Government have not placed any restriction on its use or reproduction.
13  *
14  * Although all reasonable efforts have been taken to ensure the accuracy
15  * and reliability of the software and data, the NLM and the U.S.
16  * Government do not and cannot warrant the performance or results that
17  * may be obtained by using this software or data. The NLM and the U.S.
18  * Government disclaim all warranties, express or implied, including
19  * warranties of performance, merchantability or fitness for any particular
20  * purpose.
21  *
22  * Please cite the author in any work or product based on this material.
23  *
24  * ===========================================================================
25  *
26  * Author: J. Chen
27  *
28  * File Description:
29  * DoesObjectMatchFeatureFieldConstraint
30  *
31  * Remark:
32  * This code was originally generated by application DATATOOL
33  * using the following specifications:
34  * 'macro.asn'.
35  */
36 
37 // standard includes
38 #include <ncbi_pch.hpp>
39 
40 // generated includes
42 
43 // generated classes
44 
46 
47 BEGIN_objects_SCOPE // namespace ncbi::objects::
48 
49 // destructor
51 {
52 }
53 
55 {
56  string strtmp
57  = ENUM_METHOD_NAME(EMacro_feature_type)()->FindName(GetType(), true);
58  if (strtmp == "cds") {
59  strtmp = "cdregion";
60  }
61  else if (strtmp == "c-region") {
62  strtmp = "C-region";
63  }
64  else if (strtmp == "caat-signal") {
65  strtmp = "CAAT-signal";
66  }
67  else if (strtmp == "imp-CDS") {
68  strtmp = "Imp-CDS";
69  }
70  else if (strtmp.substr(0,1) == "d-") {
71  strtmp = "D-" + strtmp.substr(2);
72  }
73  else if (strtmp == "gC-signal") {
74  strtmp = "GC-signal";
75  }
76  else if (strtmp == "j-segmrnt") {
77  strtmp = "J-segment";
78  }
79  else if (strtmp == "ltr") {
80  strtmp = "LTR";
81  }
82  else if (strtmp == "misc-RNA") {
83  strtmp = "otherRNA";
84  }
85  else if (strtmp == "precursor-RNA") {
86  strtmp = "preRNA";
87  }
88  else if (strtmp == "rbs") {
89  strtmp = "RBS";
90  }
91  else if (strtmp == "s-region") {
92  strtmp = "S-region";
93  }
94  else if (strtmp == "sts") {
95  strtmp = "STS";
96  }
97  else if (strtmp == "tata-signal") {
98  strtmp = "TATA-signal";
99  }
100  else if (strtmp.substr(0, 1) == "v-") {
101  strtmp = "V-" + strtmp.substr(2);
102  }
103  else if (strtmp == "n35-signal") {
104  strtmp = "35-signal";
105  }
106  else if (strtmp == "n10-signal") {
107  strtmp = "10-signal";
108  }
109  else if (strtmp.find("n3") != string::npos
110  || strtmp.find("n5") != string::npos) {
111  strtmp = strtmp.substr(1);
112  }
113  if (strtmp.empty()) {
115  }
116  else {
118  }
119 };
120 
121 END_objects_SCOPE // namespace ncbi::objects::
122 
124 
125 /* Original file checksum: lines: 57, chars: 1732, CRC32: c3df647f */
User-defined methods of the data storage class.
CSeqFeatData::ESubtype GetFeatSubtype() const
@ eSubtype_bad
These no longer need to match the FEATDEF values in the C toolkit's objfdef.h.
static ESubtype SubtypeNameToValue(CTempString sName)
Turn a string into its ESubtype which is NOT necessarily related to the identifier of the enum.
#define ENUM_METHOD_NAME(EnumName)
Definition: serialbase.hpp:994
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
EMacro_feature_type
feature values
TType GetType(void) const
Get the Type member data.
Modified on Mon May 27 04:39:56 2024 by modify_doxy.py rev. 669887