1 /* $Id: Genetic_code.hpp 404667 2013-06-26 12:53:01Z kornbluh $
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:  .......
27  *
28  * File Description:
29  *   .......
30  *
31  * Remark:
32  *   This code was originally generated by application DATATOOL
33  *   using specifications from the data definition file
34  *   'seqfeat.asn'.
35  */
36 
37 #ifndef OBJECTS_SEQFEAT_GENETIC_CODE_HPP
38 #define OBJECTS_SEQFEAT_GENETIC_CODE_HPP
39 
40 
41 // generated includes
42 #include <objects/seqfeat/Genetic_code_.hpp>
43 
44 // generated classes
45 
46 BEGIN_NCBI_SCOPE
47 
48 BEGIN_objects_SCOPE // namespace ncbi::objects::
49 
50 class NCBI_SEQFEAT_EXPORT CGenetic_code : public CGenetic_code_Base
51 {
52     typedef CGenetic_code_Base Tparent;
53 public:
54     // constructor
55     CGenetic_code(void);
56     // destructor
57     ~CGenetic_code(void);
58 
59     // Returns the value of the first NAME field in this genetic code,
60     // or the empty string if none exist.
61     const string& GetName(void) const;
62 
63     // Retrieve the genetic-code's numeric ID.
64     int GetId(void) const;
65     // Set the genetic-code's numeric ID.
66     void SetId(int);
67 
68     // Try to retrieve the ncbieaa and sncbieaa strings.
69     // If they don't exist return empty strings instead.
70     const string& GetNcbieaa(void) const;
71     const string& GetSncbieaa(void) const;
72 
73 private:
74     // Prohibit copy constructor and assignment operator
75     CGenetic_code(const CGenetic_code& value);
76     CGenetic_code& operator=(const CGenetic_code& value);
77 
78     // cache
79     mutable const string* m_Name;
80     mutable int           m_Id;
81     mutable const string* m_Ncbieaa;
82     mutable const string* m_Sncbieaa;
83 };
84 
85 
86 
87 /////////////////// CGenetic_code inline methods
88 
89 // constructor
90 inline
CGenetic_code(void)91 CGenetic_code::CGenetic_code(void) :
92     m_Name(0), m_Id(255), m_Ncbieaa(0), m_Sncbieaa(0)
93 {
94 }
95 
96 
97 /////////////////// end of CGenetic_code inline methods
98 
99 
100 END_objects_SCOPE // namespace ncbi::objects::
101 
102 END_NCBI_SCOPE
103 
104 #endif // OBJECTS_SEQFEAT_GENETIC_CODE_HPP
105 /* Original file checksum: lines: 93, chars: 2451, CRC32: b121101b */
106