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

生物技术

开发平台:

C/C++

  1. /*
  2.  * ===========================================================================
  3.  * PRODUCTION $Log: Prot_ref.cpp,v $
  4.  * PRODUCTION Revision 1000.1  2004/06/01 19:34:06  gouriano
  5.  * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R6.2
  6.  * PRODUCTION
  7.  * ===========================================================================
  8.  */
  9. /* $Id: Prot_ref.cpp,v 1000.1 2004/06/01 19:34:06 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.  * Author:  .......
  35.  *
  36.  * File Description:
  37.  *   .......
  38.  *
  39.  * Remark:
  40.  *   This code was originally generated by application DATATOOL
  41.  *   using specifications from the ASN data definition file
  42.  *   'seqfeat.asn'.
  43.  *
  44.  * ---------------------------------------------------------------------------
  45.  * $Log: Prot_ref.cpp,v $
  46.  * Revision 1000.1  2004/06/01 19:34:06  gouriano
  47.  * PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R6.2
  48.  *
  49.  * Revision 6.2  2004/05/19 17:26:04  gorelenk
  50.  * Added include of PCH - ncbi_pch.hpp
  51.  *
  52.  * Revision 6.1  2002/01/10 19:58:39  clausen
  53.  * Added GetLabel
  54.  *
  55.  *
  56.  * ===========================================================================
  57.  */
  58. // standard includes
  59. // generated includes
  60. #include <ncbi_pch.hpp>
  61. #include <objects/seqfeat/Prot_ref.hpp>
  62. // generated classes
  63. BEGIN_NCBI_SCOPE
  64. BEGIN_objects_SCOPE // namespace ncbi::objects::
  65. // destructor
  66. CProt_ref::~CProt_ref(void)
  67. {
  68. }
  69. // Appends a label to "label" based on content
  70. void CProt_ref::GetLabel(string* label) const
  71. {
  72.     if (IsSetName() && GetName().size() > 0) {
  73.         *label += *GetName().begin();
  74.     } else if (IsSetDesc()) {
  75.         *label += GetDesc();
  76.     } else if (IsSetDb()) {
  77.         GetDb().front()->GetLabel(label);
  78.     }
  79. }
  80. END_objects_SCOPE // namespace ncbi::objects::
  81. END_NCBI_SCOPE
  82. /* Original file checksum: lines: 61, chars: 1885, CRC32: 4ba9347a */