net_blast_req_base.hpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:3k
- /*
- * ===========================================================================
- * PRODUCTION $Log: net_blast_req_base.hpp,v $
- * PRODUCTION Revision 1000.2 2004/04/16 17:50:25 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [CATCHUP_003] Dev-tree R1.4
- * PRODUCTION
- * ===========================================================================
- */
- #ifndef GUI_PLUGINS_ALGO_NET_BLAST___NET_BLAST_BASE__HPP
- #define GUI_PLUGINS_ALGO_NET_BLAST___NET_BLAST_BASE__HPP
- /* $Id: net_blast_req_base.hpp,v 1000.2 2004/04/16 17:50:25 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: Clifford Clausen, Mike DiCuccio
- *
- * File Description:
- *
- */
- #include <corelib/ncbistd.hpp>
- #include <gui/core/algo.hpp>
- #include <gui/core/plugin_utils.hpp>
- #include <gui/plugin/PluginValueConstraint.hpp>
- #include <algo/blast/api/remote_blast.hpp>
- #include <objects/blast/Blast4_get_databases_reply.hpp>
- #include <objects/blast/Blast4_database_info.hpp>
- BEGIN_NCBI_SCOPE
- class CNetBlastReq_Base
- {
- public:
- virtual ~CNetBlastReq_Base() {}
- // internal handler for RunCommand(), called by derived classes
- void RunCommand(objects::CPluginMessage& msg);
- // FinalizeArgs() retrieves the list of valid databases and
- // adds a constraint to manage these
- void FinalizeArgs(objects::CPluginMessage& msg);
- typedef map<string, CRef<objects::CBlast4_database_info> > TDbMap;
- static TDbMap sm_DbMap;
- private:
- objects::CBioseq* x_SeqLocToBioseq(const objects::CSeq_loc& loc,
- objects::CScope& scope);
- blast::CRemoteBlast* x_GetClient(const objects::CPluginCommand& cmd);
- // results of our get-databases request
- static CRef<objects::CBlast4_get_databases_reply> sm_Databases;
- // constraint objects that hold the databases of interest
- // we have two of these - one for protein submissions, one for nucleotide
- // submissions
- static CRef<objects::CPluginValueConstraint> sm_DbConstraint_Nucs;
- static CRef<objects::CPluginValueConstraint> sm_DbConstraint_Prots;
- };
- END_NCBI_SCOPE
- /*
- * ===========================================================================
- * $Log:
- *
- * ===========================================================================
- */
- #endif // GUI_PLUGINS_ALGO_NET_BLAST___NET_BLAST_BASE__HPP