- /*
- * ===========================================================================
- * PRODUCTION $Log: prosite_entry.hpp,v $
- * PRODUCTION Revision 1000.1 2004/04/12 19:29:58 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [CATCHUP_003] Dev-tree R1.4
- * PRODUCTION
- * ===========================================================================
- */
- #ifndef GUI_PLUGINS_ALGO_BASIC___PROSITE_ENTRY__HPP
- #define GUI_PLUGINS_ALGO_BASIC___PROSITE_ENTRY__HPP
- /* $Id: prosite_entry.hpp,v 1000.1 2004/04/12 19:29:58 gouriano Exp $
- * ===========================================================================
- *
- * PUBLIC DOMAIN NOTICE
- * National Center for Biotechnology Information
- *
- * This software/database is a "United States Government Work" under the
- * terms of the United States Copyright Act. It was written as part of
- * the author's official duties as a United States Government employee and
- * thus cannot be copyrighted. This software/database is freely available
- * to the public for use. The National Library of Medicine and the U.S.
- * Government have not placed any restriction on its use or reproduction.
- *
- * Although all reasonable efforts have been taken to ensure the accuracy
- * and reliability of the software and data, the NLM and the U.S.
- * Government do not and cannot warrant the performance or results that
- * may be obtained by using this software or data. The NLM and the U.S.
- * Government disclaim all warranties, express or implied, including
- * warranties of performance, merchantability or fitness for any particular
- * purpose.
- *
- * Please cite the author in any work or product based on this material.
- *
- * ===========================================================================
- *
- * Authors: Josh Cherry
- *
- * File Description: Class for representing some of the information in an
- * entry in a prosite-format pattern database
- *
- */
- #include <corelib/ncbistr.hpp>
- BEGIN_NCBI_SCOPE
- class CPrositeEntry
- {
- public:
- // constructors
- CPrositeEntry(void);
- void Reset(void);
- void SetId(const string& s);
- string& SetId(void);
- const string& GetId(void) const;
- void SetAccession(const string& s);
- string& SetAccession(void);
- const string& GetAccession(void) const;
- void SetDesc(const string& s);
- string& SetDesc(void);
- const string& GetDesc(void) const;
- void SetPattern(const string& s);
- string& SetPattern(void);
- const string& GetPattern(void) const;
- void SetDoc(const string& s);
- string& SetDoc(void);
- const string& GetDoc(void) const;
- void SetSkipFlag(bool b);
- bool GetSkipFlag(void) const;
- private:
- // data
- string m_Id;
- string m_Accession;
- string m_Desc;
- string m_Pattern;
- string m_Doc;
- bool m_SkipFlag;
- };
- ///////////////////////////////////////////////////////////
- ///////////////////// inline methods //////////////////////
- ///////////////////////////////////////////////////////////
- inline
- void CPrositeEntry::SetId(const string& s)
- {
- m_Id = s;
- }
- inline
- string& CPrositeEntry::SetId(void)
- {
- return m_Id;
- }
- inline
- const string& CPrositeEntry::GetId(void) const
- {
- return m_Id;
- }
- inline
- void CPrositeEntry::SetAccession(const string& s)
- {
- m_Accession = s;
- }
- inline
- string& CPrositeEntry::SetAccession(void)
- {
- return m_Accession;
- }
- inline
- const string& CPrositeEntry::GetAccession(void) const
- {
- return m_Accession;
- }
- inline
- void CPrositeEntry::SetDesc(const string& s)
- {
- m_Desc = s;
- }
- inline
- string& CPrositeEntry::SetDesc(void)
- {
- return m_Desc;
- }
- inline
- const string& CPrositeEntry::GetDesc(void) const
- {
- return m_Desc;
- }
- inline
- void CPrositeEntry::SetPattern(const string& s)
- {
- m_Pattern = s;
- }
- inline
- string& CPrositeEntry::SetPattern(void)
- {
- return m_Pattern;
- }
- inline
- const string& CPrositeEntry::GetPattern(void) const
- {
- return m_Pattern;
- }
- inline
- void CPrositeEntry::SetDoc(const string& s)
- {
- m_Doc = s;
- }
- inline
- string& CPrositeEntry::SetDoc(void)
- {
- return m_Doc;
- }
- inline
- const string& CPrositeEntry::GetDoc(void) const
- {
- return m_Doc;
- }
- inline
- void CPrositeEntry::SetSkipFlag(bool b)
- {
- m_SkipFlag = b;
- }
- inline
- bool CPrositeEntry::GetSkipFlag(void) const
- {
- return m_SkipFlag;
- }
- END_NCBI_SCOPE
- /*
- * ===========================================================================
- * $Log: prosite_entry.hpp,v $
- * Revision 1000.1 2004/04/12 19:29:58 gouriano
- * PRODUCTION: UPGRADED [CATCHUP_003] Dev-tree R1.4
- *
- * Revision 1.4 2004/01/27 18:38:08 dicuccio
- * Code clean-up. Use standard names for plugins. Removed unnecessary #includes
- *
- * Revision 1.3 2003/08/17 19:25:30 jcherry
- * Changed member variable names to follow convention
- *
- * Revision 1.2 2003/08/05 12:06:42 dicuccio
- * Fixed compilation errors: string::clear() not valid for all libraries; use
- * string::erase() instead.
- *
- * Revision 1.1 2003/08/04 20:05:45 jcherry
- * Initial version
- *
- * ===========================================================================
- */
- #endif // GUI_PLUGINS_ALGO_BASIC___PROSITE_ENTRY__HPP