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

Go to the SVN repository for this file.

1 /* $Id$
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  * File Description:
27  * This code was generated by application DATATOOL
28  * using the following specifications:
29  * 'seqfeat.asn'.
30  *
31  * ATTENTION:
32  * Don't edit or commit this file into CVS as this file will
33  * be overridden (by DATATOOL) without warning!
34  * ===========================================================================
35  */
36 
37 // standard includes
38 #include <ncbi_pch.hpp>
39 #include <serial/serialimpl.hpp>
40 
41 // generated includes
46 
47 BEGIN_objects_SCOPE // namespace ncbi::objects::
48 
49 
50 // generated classes
51 
53 {
54  SET_ENUM_INTERNAL_NAME("Cdregion", "frame");
55  SET_ENUM_MODULE("NCBI-Seqfeat");
56  ADD_ENUM_VALUE("not-set", eFrame_not_set);
57  ADD_ENUM_VALUE("one", eFrame_one);
58  ADD_ENUM_VALUE("two", eFrame_two);
59  ADD_ENUM_VALUE("three", eFrame_three);
60 }
62 
64 {
65  m_Code.Reset();
66 }
67 
69 {
70  m_Code.Reset(&value);
71 }
72 
74 {
75  if ( !m_Code )
76  m_Code.Reset(new TCode());
77  return (*m_Code);
78 }
79 
81 {
82  m_Code_break.clear();
83  m_set_State[0] &= ~0x3000;
84 }
85 
87 {
88  ResetOrf();
89  ResetFrame();
90  ResetConflict();
91  ResetGaps();
92  ResetMismatch();
93  ResetCode();
95  ResetStops();
96 }
97 
99 {
100  SET_CLASS_MODULE("NCBI-Seqfeat");
101  ADD_NAMED_STD_MEMBER("orf", m_Orf)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
102  ADD_NAMED_ENUM_MEMBER("frame", m_Frame, EFrame)->SetDefault(new TFrame(eFrame_not_set))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
103  ADD_NAMED_STD_MEMBER("conflict", m_Conflict)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
104  ADD_NAMED_STD_MEMBER("gaps", m_Gaps)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
105  ADD_NAMED_STD_MEMBER("mismatch", m_Mismatch)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
106  ADD_NAMED_REF_MEMBER("code", m_Code, CGenetic_code)->SetOptional();
107  ADD_NAMED_MEMBER("code-break", m_Code_break, STL_list, (STL_CRef, (CLASS, (CCode_break))))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
108  ADD_NAMED_STD_MEMBER("stops", m_Stops)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
109  info->RandomOrder();
110  info->CodeVersion(22400);
111  info->DataSpec(ncbi::EDataSpec::eASN);
112 }
114 
115 // constructor
117  : m_Orf(0), m_Frame(eFrame_not_set), m_Conflict(0), m_Gaps(0), m_Mismatch(0), m_Stops(0)
118 {
119  memset(m_set_State,0,sizeof(m_set_State));
120 }
121 
122 // destructor
124 {
125 }
126 
127 
128 
129 END_objects_SCOPE // namespace ncbi::objects::
130 
132 
User-defined methods of the data storage class.
BEGIN_NAMED_ENUM_IN_INFO("", CCdregion_Base::, EFrame, false)
Definition: Cdregion_.cpp:52
BEGIN_NAMED_BASE_CLASS_INFO("Cdregion", CCdregion)
Definition: Cdregion_.cpp:98
User-defined methods of the data storage class.
END_ENUM_INFO
Definition: aln_errors.cpp:58
*** CdRegion *********************************************** * * Instructions to translate from a nuc...
Definition: Cdregion_.hpp:83
CCdregion –.
Definition: Cdregion.hpp:66
CCode_break –.
Definition: Code_break.hpp:66
#define MEMBER_PTR(MemberName)
Definition: serialimpl.hpp:284
#define SET_ENUM_INTERNAL_NAME(OwnerName, MemberName)
Definition: serialimpl.hpp:559
#define ADD_NAMED_MEMBER(MemberAlias, MemberName, TypeMacro, TypeMacroArgs)
Definition: serialimpl.hpp:342
#define ADD_NAMED_REF_MEMBER(MemberAlias, MemberName, ClassName)
Definition: serialimpl.hpp:357
#define SET_ENUM_MODULE(ModuleName)
Definition: serialimpl.hpp:553
#define END_CLASS_INFO
Definition: serialimpl.hpp:456
#define ADD_NAMED_STD_MEMBER(MemberAlias, MemberName)
Definition: serialimpl.hpp:345
#define SET_CLASS_MODULE(ModuleName)
Definition: serialimpl.hpp:444
#define ADD_NAMED_ENUM_MEMBER(MemberAlias, MemberName, EnumName)
Definition: serialimpl.hpp:351
#define ADD_ENUM_VALUE(EnumValueName, EnumValueValue)
Definition: serialimpl.hpp:562
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
void ResetMismatch(void)
Reset Mismatch data member.
Definition: Cdregion_.hpp:665
CGenetic_code TCode
Definition: Cdregion_.hpp:110
CRef< TCode > m_Code
Definition: Cdregion_.hpp:447
Uint4 m_set_State[1]
Definition: Cdregion_.hpp:441
void ResetCode(void)
Reset Code data member.
Definition: Cdregion_.cpp:63
void ResetGaps(void)
Reset Gaps data member.
Definition: Cdregion_.hpp:618
void ResetCode_break(void)
Reset Code_break data member.
Definition: Cdregion_.cpp:80
void ResetFrame(void)
Reset Frame data member.
Definition: Cdregion_.hpp:521
void ResetConflict(void)
Reset Conflict data member.
Definition: Cdregion_.hpp:571
virtual ~CCdregion_Base(void)
Definition: Cdregion_.cpp:123
list< CRef< CCode_break > > m_Code_break
Definition: Cdregion_.hpp:448
virtual void Reset(void)
Reset the whole object.
Definition: Cdregion_.cpp:86
CCdregion_Base(void)
Definition: Cdregion_.cpp:116
TCode & SetCode(void)
Assign a value to Code data member.
Definition: Cdregion_.cpp:73
void ResetOrf(void)
Reset Orf data member.
Definition: Cdregion_.hpp:474
void ResetStops(void)
Reset Stops data member.
Definition: Cdregion_.hpp:758
static MDB_envinfo info
Definition: mdb_load.c:37
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Fri Sep 20 14:57:08 2024 by modify_doxy.py rev. 669887