NCBI C++ ToolKit
PC_Bonds_.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  * 'pcsubstance.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
44 
45 BEGIN_objects_SCOPE // namespace ncbi::objects::
46 
47 
48 // generated classes
49 
51 {
52  m_Aid1.clear();
53  m_set_State[0] &= ~0x3;
54 }
55 
57 {
58  m_Aid2.clear();
59  m_set_State[0] &= ~0xc;
60 }
61 
63 {
64  m_Order.clear();
65  m_set_State[0] &= ~0x30;
66 }
67 
69 {
70  ResetAid1();
71  ResetAid2();
72  ResetOrder();
73 }
74 
76 {
77  SET_CLASS_MODULE("NCBI-PCSubstance");
78  ADD_NAMED_MEMBER("aid1", m_Aid1, STL_vector, (STD, (int)))->SetSetFlag(MEMBER_PTR(m_set_State[0]));
79  ADD_NAMED_MEMBER("aid2", m_Aid2, STL_vector, (STD, (int)))->SetSetFlag(MEMBER_PTR(m_set_State[0]));
80  ADD_NAMED_MEMBER("order", m_Order, STL_vector, (ENUM, (int, EPC_BondType)))->SetSetFlag(MEMBER_PTR(m_set_State[0]));
81  info->RandomOrder();
82  info->CodeVersion(22400);
83  info->DataSpec(ncbi::EDataSpec::eASN);
84 }
86 
87 // constructor
89 {
90  memset(m_set_State,0,sizeof(m_set_State));
91 }
92 
93 // destructor
95 {
96 }
97 
98 
99 
100 END_objects_SCOPE // namespace ncbi::objects::
101 
103 
User-defined methods of the data storage class.
BEGIN_NAMED_BASE_CLASS_INFO("PC-Bonds", CPC_Bonds)
Definition: PC_Bonds_.cpp:75
CPC_Bonds –.
Definition: PC_Bonds.hpp:66
#define MEMBER_PTR(MemberName)
Definition: serialimpl.hpp:284
#define ADD_NAMED_MEMBER(MemberAlias, MemberName, TypeMacro, TypeMacroArgs)
Definition: serialimpl.hpp:342
#define END_CLASS_INFO
Definition: serialimpl.hpp:456
#define SET_CLASS_MODULE(ModuleName)
Definition: serialimpl.hpp:444
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
CPC_Bonds_Base(void)
Definition: PC_Bonds_.cpp:88
Uint4 m_set_State[1]
Definition: PC_Bonds_.hpp:212
virtual void Reset(void)
Reset the whole object.
Definition: PC_Bonds_.cpp:68
vector< int > m_Aid1
Definition: PC_Bonds_.hpp:213
EPC_BondType
Bond Type Information.
virtual ~CPC_Bonds_Base(void)
Definition: PC_Bonds_.cpp:94
void ResetOrder(void)
Reset Order data member.
Definition: PC_Bonds_.cpp:62
void ResetAid1(void)
Reset Aid1 data member.
Definition: PC_Bonds_.cpp:50
vector< int > m_Order
Definition: PC_Bonds_.hpp:215
vector< int > m_Aid2
Definition: PC_Bonds_.hpp:214
void ResetAid2(void)
Reset Aid2 data member.
Definition: PC_Bonds_.cpp:56
static MDB_envinfo info
Definition: mdb_load.c:37
Modified on Sat Jun 15 11:49:48 2024 by modify_doxy.py rev. 669887