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

Go to the SVN repository for this file.

00001 /* $Id$
00002  * ===========================================================================
00003  *
00004  *                            PUBLIC DOMAIN NOTICE
00005  *               National Center for Biotechnology Information
00006  *
00007  *  This software/database is a "United States Government Work" under the
00008  *  terms of the United States Copyright Act.  It was written as part of
00009  *  the author's official duties as a United States Government employee and
00010  *  thus cannot be copyrighted.  This software/database is freely available
00011  *  to the public for use. The National Library of Medicine and the U.S.
00012  *  Government have not placed any restriction on its use or reproduction.
00013  *
00014  *  Although all reasonable efforts have been taken to ensure the accuracy
00015  *  and reliability of the software and data, the NLM and the U.S.
00016  *  Government do not and cannot warrant the performance or results that
00017  *  may be obtained by using this software or data. The NLM and the U.S.
00018  *  Government disclaim all warranties, express or implied, including
00019  *  warranties of performance, merchantability or fitness for any particular
00020  *  purpose.
00021  *
00022  *  Please cite the author in any work or product based on this material.
00023  *
00024  * ===========================================================================
00025  *
00026  * File Description:
00027  *   This code was generated by application DATATOOL
00028  *   using the following specifications:
00029  *   'seqloc.asn'.
00030  *
00031  * ATTENTION:
00032  *   Don't edit or commit this file into CVS as this file will
00033  *   be overridden (by DATATOOL) without warning!
00034  * ===========================================================================
00035  */
00036 
00037 // standard includes
00038 #include <ncbi_pch.hpp>
00039 #include <serial/serialimpl.hpp>
00040 
00041 // generated includes
00042 #include <objects/seqloc/PDB_seq_id.hpp>
00043 #include <objects/general/Date.hpp>
00044 BEGIN_NCBI_SCOPE
00045 
00046 BEGIN_objects_SCOPE // namespace ncbi::objects::
00047 
00048 
00049 // generated classes
00050 
00051 void CPDB_seq_id_Base::ResetMol(void)
00052 {
00053     m_Mol.Set().erase();
00054     m_set_State[0] &= ~0x3;
00055 }
00056 
00057 void CPDB_seq_id_Base::ResetRel(void)
00058 {
00059     m_Rel.Reset();
00060 }
00061 
00062 void CPDB_seq_id_Base::SetRel(CPDB_seq_id_Base::TRel& value)
00063 {
00064     m_Rel.Reset(&value);
00065 }
00066 
00067 CPDB_seq_id_Base::TRel& CPDB_seq_id_Base::SetRel(void)
00068 {
00069     if ( !m_Rel )
00070         m_Rel.Reset(new ncbi::objects::CDate());
00071     return (*m_Rel);
00072 }
00073 
00074 void CPDB_seq_id_Base::Reset(void)
00075 {
00076     ResetMol();
00077     ResetChain();
00078     ResetRel();
00079 }
00080 
00081 BEGIN_NAMED_BASE_CLASS_INFO("PDB-seq-id", CPDB_seq_id)
00082 {
00083     SET_CLASS_MODULE("NCBI-Seqloc");
00084     ADD_NAMED_MEMBER("mol", m_Mol, CLASS, (CPDB_mol_id))->SetSetFlag(MEMBER_PTR(m_set_State[0]));
00085     ADD_NAMED_STD_MEMBER("chain", m_Chain)->SetDefault(new TChain(32))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
00086     ADD_NAMED_REF_MEMBER("rel", m_Rel, CDate)->SetOptional();
00087     info->RandomOrder();
00088 }
00089 END_CLASS_INFO
00090 
00091 // constructor
00092 CPDB_seq_id_Base::CPDB_seq_id_Base(void)
00093     : m_Chain(32)
00094 {
00095     memset(m_set_State,0,sizeof(m_set_State));
00096 }
00097 
00098 // destructor
00099 CPDB_seq_id_Base::~CPDB_seq_id_Base(void)
00100 {
00101 }
00102 
00103 
00104 
00105 END_objects_SCOPE // namespace ncbi::objects::
00106 
00107 END_NCBI_SCOPE
00108 
Modified on Sun Nov 23 14:55:01 2014 by modify_doxy.py rev. 426318