net_blast_reply.cpp

来自「ncbi源码」· C++ 代码 · 共 232 行

CPP
232
字号
/* * =========================================================================== * PRODUCTION $Log: net_blast_reply.cpp,v $ * PRODUCTION Revision 1000.5  2004/06/01 20:54:37  gouriano * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.10 * PRODUCTION * =========================================================================== *//*  $Id: net_blast_reply.cpp,v 1000.5 2004/06/01 20:54:37 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, Michael DiCuccio * * File Description: *    CDataPlugin_BlastReply -- obtains results from previous blast request */#include <ncbi_pch.hpp>#include <gui/core/plugin_utils.hpp>#include <gui/plugin/PluginInfo.hpp>#include <gui/plugin/PluginCommand.hpp>#include <gui/plugin/PluginReply.hpp>#include <gui/plugin/PluginCommandSet.hpp>#include <gui/core/version.hpp>#include "net_blast_reply.hpp"#include "dlg_blastpoll.hpp"#include <objects/seqloc/Seq_loc.hpp>BEGIN_NCBI_SCOPEUSING_SCOPE(objects);//// plugin factory for retrieving results from a BLAST search//void CDataPlugin_BlastReply::GetInfo(CPluginInfo& info){    info.Reset();    // version info macro    info.SetInfo(CPluginVersion::eMajor, CPluginVersion::eMinor, 0,                 string(__DATE__) + " " + string(__TIME__),                 "CDataPlugin_BlastReply",                  "BLAST Request ID",                 "Retrieves BLAST results by request ID",                 "");    // command info    CPluginCommand& cmd =        info.SetCommands().AddDataCommand(eDataCommand_load);    // This argument is optional. If it is not present,    // the Polling dialog box is reopened and polling    // continues with any rids for which data has not yet    // been retrieved. If an rid is present, the rid is added to    // the poll list.    cmd.AddOptionalArgument("RID", "Request ID", CPluginArg::eString);        // Seq-loc used as the query for the search, so that the    // alignments returned by blast can be remapped to orinal    // sequence coordinates.    cmd.AddOptionalArgument("query_loc",                            "Query Seq-loc", CSeq_loc::GetTypeInfo());    cmd["query_loc"].SetHidden(true);    // Argument to pass the net blast program name so that    // it can be added to the description in the poll dialog.    cmd.AddOptionalArgument("prog", "Program Name", CPluginArg::eString);    cmd["prog"].SetHidden(true);}CDataPlugin_BlastReply::CDataPlugin_BlastReply(){    m_PollView.reset(new CBlastPollDlg());}void CDataPlugin_BlastReply::Load(CPluginMessage& msg){    const CPluginCommand& cmd = msg.GetRequest().GetCommand();    CPluginReply& reply = msg.SetReply();    reply.SetStatus(eMessageStatus_success);    m_PollView->Show();    m_PollView->Add(cmd);    m_PollView->StartPoll();}END_NCBI_SCOPE/* * =========================================================================== * $Log: net_blast_reply.cpp,v $ * Revision 1000.5  2004/06/01 20:54:37  gouriano * PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.10 * * Revision 1.10  2004/05/21 22:27:46  gorelenk * Added PCH ncbi_pch.hpp * * Revision 1.9  2004/04/07 12:54:10  dicuccio * +Seq_loc.hpp * * Revision 1.8  2004/03/05 17:32:15  dicuccio * Large-scale clean-up to blast code.  Reorganized blast polling dialog to be * multi-column; standardized options for BLAST network submissions; changed * plugin to accept multiple locations for submission and create a submission for * each * * Revision 1.7  2004/02/18 19:02:36  jcherry * Query is now a Seq-loc, to which alignments get remapped * * Revision 1.6  2004/01/27 18:40:12  dicuccio * Code clean-up.  Renamed plugin classes to follow standard pattern * * Revision 1.5  2003/11/24 15:45:21  dicuccio * Renamed CVersion to CPluginVersion * * Revision 1.4  2003/11/17 16:37:25  clausen * Removed arg scope, added args doc and prog * * Revision 1.3  2003/11/04 17:49:22  dicuccio * Changed calling parameters for plugins - pass CPluginMessage instead of * paired CPluginCommand/CPluginReply * * Revision 1.2  2003/10/31 17:32:09  clausen * Switched from passing scope to passing document * * Revision 1.1  2003/10/24 12:49:21  dicuccio * Moved files from algo/net_blast * * Revision 1.18  2003/10/24 12:25:41  clausen * Fixed fltk blocking * * Revision 1.17  2003/07/23 19:14:09  dicuccio * Moved logic for validating plugin arguments into CPluginUtils. * * Revision 1.16  2003/07/14 11:14:28  shomrat * Plugin messageing system related changes * * Revision 1.15  2003/07/10 13:06:20  dicuccio * Fixed compilation issues for gcc-3.3: restructured callback mechanism, * replaced multiple parallel arrays with an array of classes. * * Revision 1.14  2003/06/20 19:45:19  dicuccio * Fixed bizarre compile error related to namespaces on MSVC * * Revision 1.13  2003/06/20 14:52:11  dicuccio * Revised plugin registration.  Made poll dialog a member of the plugin * * Revision 1.12  2003/06/13 12:09:27  clausen * Changed to handle RID as optional * * Revision 1.11  2003/06/04 18:29:48  clausen * Initial version * * Revision 1.10  2003/06/02 16:06:21  dicuccio * Rearranged src/objects/ subtree.  This includes the following shifts: *     - src/objects/asn2asn --> arc/app/asn2asn *     - src/objects/testmedline --> src/objects/ncbimime/test *     - src/objects/objmgr --> src/objmgr *     - src/objects/util --> src/objmgr/util *     - src/objects/alnmgr --> src/objtools/alnmgr *     - src/objects/flat --> src/objtools/flat *     - src/objects/validator --> src/objtools/validator *     - src/objects/cddalignview --> src/objtools/cddalignview * In addition, libseq now includes six of the objects/seq... libs, and libmmdb * replaces the three libmmdb? libs. * * Revision 1.9  2003/05/30 14:15:42  dicuccio * Renamed MessageBox to NcbiMessageBox because brain-dead MSVC thinks this is * ::MessageBox and rewrites the symbol as MessageBoxA, which results in an * unresolved external and conflict with the Win32 API :(. * * Revision 1.8  2003/05/30 13:00:59  dicuccio * Use MessageBox() instead of fl_message() * * Revision 1.7  2003/05/23 18:30:48  lavr * Unnecessary explicit #include <connect/ncbi_conn_stream.hpp> removed * * Revision 1.6  2003/05/19 13:39:43  dicuccio * Moved gui/core/plugin/ --> gui/plugin/.  Merged core libraries into * libgui_core * * Revision 1.5  2003/05/13 13:46:24  dicuccio * Reorganized header files - should compile now * * Revision 1.4  2003/05/12 16:09:19  dicuccio * Updated to use new plugin action args * * Revision 1.3  2003/05/09 19:44:28  clausen * Added polling * * Revision 1.2  2003/05/09 16:54:00  dicuccio * Converted CNetBlastReply from algorithm -> data loader plugin * * Revision 1.1  2003/05/07 12:38:59  clausen * Initial version of net blast * * * =========================================================================== */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?