Name_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:3k
源码类别:

生物技术

开发平台:

C/C++

  1. /*
  2.  * ===========================================================================
  3.  * PRODUCTION $Log: Name_.cpp,v $
  4.  * PRODUCTION Revision 1000.1  2004/06/01 19:45:46  gouriano
  5.  * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.2
  6.  * PRODUCTION
  7.  * ===========================================================================
  8.  */
  9. /* $Id: Name_.cpp,v 1000.1 2004/06/01 19:45:46 gouriano Exp $
  10.  * ===========================================================================
  11.  *
  12.  *                            PUBLIC DOMAIN NOTICE
  13.  *               National Center for Biotechnology Information
  14.  *
  15.  *  This software/database is a "United States Government Work" under the
  16.  *  terms of the United States Copyright Act.  It was written as part of
  17.  *  the author's official duties as a United States Government employee and
  18.  *  thus cannot be copyrighted.  This software/database is freely available
  19.  *  to the public for use. The National Library of Medicine and the U.S.
  20.  *  Government have not placed any restriction on its use or reproduction.
  21.  *
  22.  *  Although all reasonable efforts have been taken to ensure the accuracy
  23.  *  and reliability of the software and data, the NLM and the U.S.
  24.  *  Government do not and cannot warrant the performance or results that
  25.  *  may be obtained by using this software or data. The NLM and the U.S.
  26.  *  Government disclaim all warranties, express or implied, including
  27.  *  warranties of performance, merchantability or fitness for any particular
  28.  *  purpose.
  29.  *
  30.  *  Please cite the author in any work or product based on this material.
  31.  *
  32.  * ===========================================================================
  33.  *
  34.  * File Description:
  35.  *   This code is generated by application DATATOOL
  36.  *   using specifications from the data definition file
  37.  *   'twebenv.asn'.
  38.  *
  39.  * ATTENTION:
  40.  *   Don't edit or check-in this file to the CVS as this file will
  41.  *   be overridden (by DATATOOL) without warning!
  42.  * ===========================================================================
  43.  */
  44. // standard includes
  45. #include <ncbi_pch.hpp>
  46. #include <serial/serialimpl.hpp>
  47. // generated includes
  48. #include "Name.hpp"
  49. // generated classes
  50. void CName_Base::ResetName(void)
  51. {
  52.     m_Name.erase();
  53.     m_set_State[0] &= ~0x3;
  54. }
  55. void CName_Base::ResetDescription(void)
  56. {
  57.     m_Description.erase();
  58.     m_set_State[0] &= ~0xc;
  59. }
  60. void CName_Base::Reset(void)
  61. {
  62.     ResetName();
  63.     ResetDescription();
  64. }
  65. BEGIN_NAMED_BASE_CLASS_INFO("Name", CName)
  66. {
  67.     SET_CLASS_MODULE("NCBI-Env");
  68.     ADD_NAMED_STD_MEMBER("name", m_Name)->SetSetFlag(MEMBER_PTR(m_set_State[0]));
  69.     ADD_NAMED_STD_MEMBER("description", m_Description)->SetOptional()->SetSetFlag(MEMBER_PTR(m_set_State[0]));
  70.     info->RandomOrder();
  71. }
  72. END_CLASS_INFO
  73. // constructor
  74. CName_Base::CName_Base(void)
  75. {
  76.     memset(m_set_State,0,sizeof(m_set_State));
  77. }
  78. // destructor
  79. CName_Base::~CName_Base(void)
  80. {
  81. }