web_algo.hpp

来自「ncbi源码」· HPP 代码 · 共 100 行

HPP
100
字号
/* * =========================================================================== * PRODUCTION $Log: web_algo.hpp,v $ * PRODUCTION Revision 1000.1  2004/04/12 19:30:49  gouriano * PRODUCTION PRODUCTION: UPGRADED [CATCHUP_003] Dev-tree R1.3 * PRODUCTION * =========================================================================== */#ifndef GUI_PLUGINS_ALGO_EXTERNAL___WEB_ALGO__HPP#define GUI_PLUGINS_ALGO_EXTERNAL___WEB_ALGO__HPP/*  $Id: web_algo.hpp,v 1000.1 2004/04/12 19:30:49 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:  Plugin to call remote procedure via cgi * */#include <gui/core/algo.hpp>#include <objmgr/seq_vector.hpp>#include <gui/plugin/PluginArgSet.hpp>#include "../basic/output_dlg.hpp"BEGIN_NCBI_SCOPEclass CAlgoWebService : public CAlgorithm<CAlgoWebService>{public:    void RunCommand(objects::CPluginMessage& msg);    static void GetInfo(objects::CPluginInfo& info);private:    // our dialog box    auto_ptr<COutputDlg> m_OutputDlg;    static void x_ArgsAsStrs(const objects::CPluginArgSet::Tdata& argset,                             vector<string>& keys,                             vector<string>& values);    static string x_ArgToStr(const objects::CPluginValue& url);    static void x_DoPost(const string& url, const string& query,                         string& body, string& headers);    static string x_GetContentType(const string& headers);    void x_DealWithAnnot(CRef<objects::CSeq_annot> annot,                         const objects::CPluginCommand& args,                         objects::CPluginReply& reply);};END_NCBI_SCOPE/* * =========================================================================== * $Log: web_algo.hpp,v $ * Revision 1000.1  2004/04/12 19:30:49  gouriano * PRODUCTION: UPGRADED [CATCHUP_003] Dev-tree R1.3 * * Revision 1.3  2004/01/27 18:45:26  dicuccio * Added missing header files * * Revision 1.2  2003/11/26 17:13:08  dicuccio * Lots of code clean-up.  CHanged names of algorithms to CAlgoWebServices{Init} * * Revision 1.1  2003/11/25 19:08:51  jcherry * Initial version * * =========================================================================== */#endif  // GUI_PLUGINS_ALGO_EXTERNAL___WEB_ALGO__HPP

⌨️ 快捷键说明

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