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

生物技术

开发平台:

C/C++

  1. /*
  2.  * ===========================================================================
  3.  * PRODUCTION $Log: used.hpp,v $
  4.  * PRODUCTION Revision 1000.0  2004/06/01 19:56:07  gouriano
  5.  * PRODUCTION PRODUCTION: IMPORTED [GCC34_MSVC7] Dev-tree R1.2
  6.  * PRODUCTION
  7.  * ===========================================================================
  8.  */
  9. #ifndef GUI_UTILS___USED__HPP
  10. #define GUI_UTILS___USED__HPP
  11. /*  $Id: used.hpp,v 1000.0 2004/06/01 19:56:07 gouriano Exp $
  12.  * ===========================================================================
  13.  *
  14.  *                            PUBLIC DOMAIN NOTICE
  15.  *               National Center for Biotechnology Information
  16.  *
  17.  *  This software/database is a "United States Government Work" under the
  18.  *  terms of the United States Copyright Act.  It was written as part of
  19.  *  the author's official duties as a United States Government employee and
  20.  *  thus cannot be copyrighted.  This software/database is freely available
  21.  *  to the public for use. The National Library of Medicine and the U.S.
  22.  *  Government have not placed any restriction on its use or reproduction.
  23.  *
  24.  *  Although all reasonable efforts have been taken to ensure the accuracy
  25.  *  and reliability of the software and data, the NLM and the U.S.
  26.  *  Government do not and cannot warrant the performance or results that
  27.  *  may be obtained by using this software or data. The NLM and the U.S.
  28.  *  Government disclaim all warranties, express or implied, including
  29.  *  warranties of performance, merchantability or fitness for any particular
  30.  *  purpose.
  31.  *
  32.  *  Please cite the author in any work or product based on this material.
  33.  *
  34.  * ===========================================================================
  35.  *
  36.  * Authors: Robert G. Smith
  37.  *
  38.  * File Description:
  39.  *   CLayoutObjectsUsed -- Keep track of what layout objects have been used.
  40.  */
  41. #include <gui/objutils/layout.hpp>
  42. #include <set>
  43. /** @addtogroup GUI_UTILS
  44.  *
  45.  * @{
  46.  */
  47. BEGIN_NCBI_SCOPE
  48. class NCBI_GUIUTILS_EXPORT CLayoutObjectsUsed
  49. {
  50. public:
  51.     void    Add(const CLayoutObject& obj);
  52.     bool    Used(const CLayoutObject& obj) const;
  53.     void    Clear();
  54. private:
  55.     set<const CLayoutObject* >   m_UsedSet;
  56. };
  57. END_NCBI_SCOPE
  58. /* @} */
  59. /*
  60.  * ===========================================================================
  61.  * $Log: used.hpp,v $
  62.  * Revision 1000.0  2004/06/01 19:56:07  gouriano
  63.  * PRODUCTION: IMPORTED [GCC34_MSVC7] Dev-tree R1.2
  64.  *
  65.  * Revision 1.2  2004/05/03 12:41:35  dicuccio
  66.  * Fixed #includes and export specifiers
  67.  *
  68.  * Revision 1.1  2004/04/30 13:23:44  dicuccio
  69.  * Split out from gui/utils
  70.  *
  71.  * Revision 1.2  2004/04/16 14:27:17  dicuccio
  72.  * Added doxygen module tag
  73.  *
  74.  * Revision 1.1  2003/12/29 19:23:42  rsmith
  75.  * inital checkin
  76.  *
  77.  *
  78.  * ===========================================================================
  79.  */
  80.  
  81. #endif  // GUI_UTILS___USED__HPP