pluginrequest.cpp

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

CPP
185
字号
/* * =========================================================================== * PRODUCTION $Log: PluginRequest.cpp,v $ * PRODUCTION Revision 1000.2  2004/06/01 20:53:52  gouriano * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.7 * PRODUCTION * =========================================================================== *//* $Id: PluginRequest.cpp,v 1000.2 2004/06/01 20:53:52 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 data definition file *   'plugin.asn'. */// standard includes// generated includes#include <ncbi_pch.hpp>#include <gui/plugin/PluginRequest.hpp>#include <gui/plugin/PluginCommand.hpp>// generated classesBEGIN_NCBI_SCOPEBEGIN_objects_SCOPE // namespace ncbi::objects::// destructorCPluginRequest::~CPluginRequest(void){}//// retrieve the command associated with this request//const CPluginCommand& CPluginRequest::GetCommand(void) const{    switch (Which()) {    case e_View:        return GetView();    case e_Data:        return GetData();    case e_Algo:        return GetAlgo();    default:        NCBI_THROW(CPluginException, eInvalidCommand,                   "Attempt to access PluginRequest with no command");    }}CPluginCommand& CPluginRequest::SetCommand(void){    switch (Which()) {    case e_View:        return SetView();    case e_Data:        return SetData();    case e_Algo:        return SetAlgo();    default:        NCBI_THROW(CPluginException, eInvalidCommand,                   "Attempt to access PluginRequest with no command");    }}//// make the request valid for a given algorithm command, returning that// commands set of arguments//CPluginCommand& CPluginRequest::SetCommand(EAlgoCommand cmd){    CPluginCommand& args = SetAlgo();    args.SetCommand(cmd);    return args;}//// make the request valid for a given data command, returning that// commands set of arguments//CPluginCommand& CPluginRequest::SetCommand(EDataCommand cmd){    CPluginCommand& args = SetData();    args.SetCommand(cmd);    return args;}//// make the request valid for a given view command, returning that// commands set of arguments//CPluginCommand& CPluginRequest::SetCommand(EViewCommand cmd){    CPluginCommand& args = SetView();    args.SetCommand(cmd);    return args;}END_objects_SCOPE // namespace ncbi::objects::END_NCBI_SCOPE/* * =========================================================================== * * $Log: PluginRequest.cpp,v $ * Revision 1000.2  2004/06/01 20:53:52  gouriano * PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.7 * * Revision 1.7  2004/05/21 22:27:46  gorelenk * Added PCH ncbi_pch.hpp * * Revision 1.6  2003/11/04 17:24:22  dicuccio * Added API to retrieve the CPluginCOmmand object * * Revision 1.5  2003/07/23 19:14:08  dicuccio * Moved logic for validating plugin arguments into CPluginUtils. * * Revision 1.4  2003/05/19 13:37:46  dicuccio * Moved gui/core/plugin/ --> gui/plugin/ * * Revision 1.3  2003/04/16 18:22:32  dicuccio * Changed names of command retrieval functions so that they are available for * templates * * Revision 1.2  2003/02/24 13:03:17  dicuccio * Renamed classes in plugin spec: *     CArgSeg --> CPluginArgSet *     CArgument --> CPluginArg *     CPluginArgs --> CPluginCommand *     CPluginCommands --> CPluginCommandSet * * Revision 1.1  2003/02/20 19:49:57  dicuccio * Created new plugin architecture, based on ASN.1 spec.  Moved GBENCH frameowrk * over to use new plugin architecture. * * * =========================================================================== *//* Original file checksum: lines: 64, chars: 1894, CRC32: 25d1b9f7 */

⌨️ 快捷键说明

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