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

Go to the repository for this file.

1 /* $Id: Rna_qual.cpp 63087 2014-05-28 13:24:42Z 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  * DoesObjectMatchRnaQualConstraint
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 
58 
73 };
74 
76 {
77  for (unsigned i=0; i< ArraySize(field_qual_map); i++) {
78  if (field_qual_map[i].rna_field == rna_field) {
79  return (int)field_qual_map[i].feat_qual_legal;
80  }
81  }
82  return 0;
83 };
84 
85 END_objects_SCOPE // namespace ncbi::objects::
86 
88 
89 /* Original file checksum: lines: 57, chars: 1717, CRC32: 82b30fd4 */
static const s_rnafield2featquallegal field_qual_map[]
Definition: Rna_qual.cpp:59
struct s_rnafield2featquallegal RnaField2FeatQualLegal
User-defined methods of the data storage class.
static int GetLegalQual(ERna_field rna_field)
Definition: Rna_qual.cpp:75
~CRna_qual(void)
Definition: Rna_qual.cpp:50
constexpr size_t ArraySize(const Element(&)[Size])
Definition: ncbimisc.hpp:1634
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:104
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:101
ERna_field
Access to ERna_field's attributes (values, names) as defined in spec.
Definition: Rna_field_.hpp:63
EFeat_qual_legal
Access to EFeat_qual_legal's attributes (values, names) as defined in spec.
@ eRna_field_codons_recognized
Definition: Rna_field_.hpp:66
@ eRna_field_product
Definition: Rna_field_.hpp:64
@ eRna_field_tag_peptide
Definition: Rna_field_.hpp:76
@ eRna_field_gene_description
Definition: Rna_field_.hpp:71
@ eRna_field_gene_locus
Definition: Rna_field_.hpp:70
@ eRna_field_gene_maploc
Definition: Rna_field_.hpp:72
@ eRna_field_gene_comment
Definition: Rna_field_.hpp:75
@ eRna_field_gene_synonym
Definition: Rna_field_.hpp:74
@ eRna_field_transcript_id
Definition: Rna_field_.hpp:69
@ eRna_field_anticodon
Definition: Rna_field_.hpp:68
@ eRna_field_gene_locus_tag
Definition: Rna_field_.hpp:73
@ eRna_field_ncrna_class
Definition: Rna_field_.hpp:67
@ eRna_field_comment
Definition: Rna_field_.hpp:65
@ eFeat_qual_legal_locus_tag
@ eFeat_qual_legal_ncRNA_class
@ eFeat_qual_legal_tag_peptide
@ eFeat_qual_legal_synonym
@ eFeat_qual_legal_transcript_id
@ eFeat_qual_legal_note
@ eFeat_qual_legal_product
@ eFeat_qual_legal_gene_description
@ eFeat_qual_legal_gene_comment
@ eFeat_qual_legal_anticodon
@ eFeat_qual_legal_map
@ eFeat_qual_legal_codons_recognized
@ eFeat_qual_legal_gene
int i
EFeat_qual_legal feat_qual_legal
Definition: Rna_qual.cpp:56
Modified on Sat Nov 07 14:11:55 2026 by modify_doxy.py rev. 717554