1 #ifndef OSG_PROCESSOR__HPP 2 #define OSG_PROCESSOR__HPP 3 4 /* $Id: osg_processor.hpp 613045 2020-07-31 15:05:29Z satskyse $ 5 * =========================================================================== 6 * 7 * PUBLIC DOMAIN NOTICE 8 * National Center for Biotechnology Information 9 * 10 * This software/database is a "United States Government Work" under the 11 * terms of the United States Copyright Act. It was written as part of 12 * the author's official duties as a United States Government employee and 13 * thus cannot be copyrighted. This software/database is freely available 14 * to the public for use. The National Library of Medicine and the U.S. 15 * Government have not placed any restriction on its use or reproduction. 16 * 17 * Although all reasonable efforts have been taken to ensure the accuracy 18 * and reliability of the software and data, the NLM and the U.S. 19 * Government do not and cannot warrant the performance or results that 20 * may be obtained by using this software or data. The NLM and the U.S. 21 * Government disclaim all warranties, express or implied, including 22 * warranties of performance, merchantability or fitness for any particular 23 * purpose. 24 * 25 * Please cite the author in any work or product based on this material. 26 * 27 * =========================================================================== 28 * 29 * Authors: Eugene Vasilchenko 30 * 31 * File Description: processor for data from OSG 32 * 33 */ 34 35 #include "ipsgs_processor.hpp" 36 #include "psgs_request.hpp" 37 #include "psgs_reply.hpp" 38 39 40 BEGIN_NCBI_NAMESPACE; 41 BEGIN_NAMESPACE(psg); 42 BEGIN_NAMESPACE(osg); 43 44 45 class COSGConnectionPool; 46 47 48 // OSG processor factory 49 class CPSGS_OSGProcessor : public IPSGS_Processor 50 { 51 public: 52 CPSGS_OSGProcessor(); 53 virtual ~CPSGS_OSGProcessor(); 54 55 virtual IPSGS_Processor* CreateProcessor(shared_ptr<CPSGS_Request> request, 56 shared_ptr<CPSGS_Reply> reply, 57 TProcessorPriority priority) const; 58 virtual void Process(void); 59 virtual void Cancel(void); 60 virtual EPSGS_Status GetStatus(void); 61 virtual string GetName(void) const; 62 63 private: 64 }; 65 66 67 END_NAMESPACE(osg); 68 END_NAMESPACE(psg); 69 END_NCBI_NAMESPACE; 70 71 #endif // OSG_PROCESSOR__HPP 72