- /*
- * ===========================================================================
- * PRODUCTION $Log: Object_id.hpp,v $
- * PRODUCTION Revision 1000.0 2003/10/29 21:01:08 gouriano
- * PRODUCTION PRODUCTION: IMPORTED [ORIGINAL] Dev-tree R1.6
- * PRODUCTION
- * ===========================================================================
- */
- /* $Id: Object_id.hpp,v 1000.0 2003/10/29 21:01:08 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.
- *
- * ===========================================================================
- *
- * Author: .......
- *
- * File Description:
- * .......
- *
- * Remark:
- * This code was originally generated by application DATATOOL
- * using specifications from the ASN data definition file
- * 'general.asn'.
- *
- * ---------------------------------------------------------------------------
- * $Log: Object_id.hpp,v $
- * Revision 1000.0 2003/10/29 21:01:08 gouriano
- * PRODUCTION: IMPORTED [ORIGINAL] Dev-tree R1.6
- *
- * Revision 1.6 2003/02/06 22:25:24 vasilche
- * Added some Compare() methods.
- *
- * Revision 1.5 2002/12/26 12:40:33 dicuccio
- * Added Win32 export specifiers
- *
- * Revision 1.4 2001/06/25 18:51:58 grichenk
- * Prohibited copy constructor and assignment operator
- *
- * Revision 1.3 2000/12/08 21:49:14 ostell
- * changed MakeString to AsString and to use ostream instead of string
- *
- * Revision 1.2 2000/12/08 19:53:00 ostell
- * added MakeString()
- *
- * Revision 1.1 2000/11/21 18:58:05 vasilche
- * Added Match() methods for CSeq_id, CObject_id and CDbtag.
- *
- *
- * ===========================================================================
- */
- #ifndef OBJECTS_GENERAL_OBJECT_ID_HPP
- #define OBJECTS_GENERAL_OBJECT_ID_HPP
- // generated includes
- #include <objects/general/Object_id_.hpp>
- // generated classes
- BEGIN_NCBI_SCOPE
- BEGIN_objects_SCOPE // namespace ncbi::objects::
- class NCBI_GENERAL_EXPORT CObject_id : public CObject_id_Base
- {
- typedef CObject_id_Base Tparent;
- public:
- // constructor
- CObject_id(void);
- // destructor
- ~CObject_id(void);
- // identical ids?
- bool Match(const CObject_id& oid2) const;
- int Compare(const CObject_id& oid2) const;
- bool operator<(const CObject_id& id2) const;
- // format contents into a stream
- ostream& AsString(ostream &s) const;
- private:
- // Prohibit copy constructor & assignment operator
- CObject_id(const CObject_id&);
- CObject_id& operator= (const CObject_id&);
- };
- /////////////////// CObject_id inline methods
- // constructor
- inline
- CObject_id::CObject_id(void)
- {
- }
- inline
- bool CObject_id::operator<(const CObject_id& id2) const
- {
- return Compare(id2) < 0;
- }
- /////////////////// end of CObject_id inline methods
- END_objects_SCOPE // namespace ncbi::objects::
- END_NCBI_SCOPE
- #endif // OBJECTS_GENERAL_OBJECT_ID_HPP