NCBI C++ ToolKit
osg_resolve.hpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 #ifndef PSGS_OSGRESOLVE__HPP
2 #define PSGS_OSGRESOLVE__HPP
3 
4 /* $Id: osg_resolve.hpp 96380 2022-03-22 17:05:27Z 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 to resolve Seq-id using OSG
32  *
33  */
34 
35 #include "osg_processor_base.hpp"
36 #include "osg_resolve_base.hpp"
37 #include "osg_getblob_base.hpp"
38 
40 
42 
43 class CID2_Blob_Id;
44 class CID2_Reply_Data;
45 
47 
50 
51 
54 {
55 public:
56  CPSGS_OSGResolve(TEnabledFlags enabled_flags,
57  const CRef<COSGConnectionPool>& pool,
58  const shared_ptr<CPSGS_Request>& request,
59  const shared_ptr<CPSGS_Reply>& reply,
60  TProcessorPriority priority);
61  virtual ~CPSGS_OSGResolve();
62 
63  virtual string GetName() const override;
64  virtual string GetGroupName() const override;
65 
66  static bool CanProcess(TEnabledFlags enabled_flags,
67  shared_ptr<CPSGS_Request>& request);
68 
69  virtual void CreateRequests() override;
70  virtual void ProcessReplies() override;
71  virtual void WaitForOtherProcessors() override;
72 };
73 
74 
76  public CPSGS_OSGResolveBase,
78 {
79 public:
81  const CRef<COSGConnectionPool>& pool,
82  const shared_ptr<CPSGS_Request>& request,
83  const shared_ptr<CPSGS_Reply>& reply,
84  TProcessorPriority priority);
85  virtual ~CPSGS_OSGGetBlobBySeqId();
86 
87  virtual string GetName() const override;
88  virtual string GetGroupName() const override;
89 
90  static bool CanProcess(TEnabledFlags enabled_flags,
91  shared_ptr<CPSGS_Request>& request);
92 
93  virtual void CreateRequests() override;
94  virtual void ProcessReplies() override;
95  virtual void WaitForOtherProcessors() override;
96 
97  bool BlobIsExcluded(const string& psg_blob_id);
98 };
99 
100 
104 
105 #endif // PSGS_OSGRESOLVE__HPP
CID2_Blob_Id –.
Definition: ID2_Blob_Id.hpp:66
virtual void ProcessReplies() override
bool BlobIsExcluded(const string &psg_blob_id)
static bool CanProcess(TEnabledFlags enabled_flags, shared_ptr< CPSGS_Request > &request)
virtual void WaitForOtherProcessors() override
virtual string GetName() const override
Tells the processor name (used in logging and tracing)
virtual void CreateRequests() override
virtual string GetGroupName() const override
Tells the processor group name.
virtual ~CPSGS_OSGGetBlobBySeqId()
CPSGS_OSGGetBlobBySeqId(TEnabledFlags enabled_flags, const CRef< COSGConnectionPool > &pool, const shared_ptr< CPSGS_Request > &request, const shared_ptr< CPSGS_Reply > &reply, TProcessorPriority priority)
virtual void ProcessReplies() override
virtual void CreateRequests() override
Definition: osg_resolve.cpp:90
virtual void WaitForOtherProcessors() override
virtual string GetGroupName() const override
Tells the processor group name.
Definition: osg_resolve.cpp:73
CPSGS_OSGResolve(TEnabledFlags enabled_flags, const CRef< COSGConnectionPool > &pool, const shared_ptr< CPSGS_Request > &request, const shared_ptr< CPSGS_Reply > &reply, TProcessorPriority priority)
Definition: osg_resolve.cpp:51
virtual string GetName() const override
Tells the processor name (used in logging and tracing)
Definition: osg_resolve.cpp:67
virtual ~CPSGS_OSGResolve()
Definition: osg_resolve.cpp:61
static bool CanProcess(TEnabledFlags enabled_flags, shared_ptr< CPSGS_Request > &request)
Definition: osg_resolve.cpp:79
BEGIN_NAMESPACE(objects)
END_NCBI_NAMESPACE
END_NAMESPACE(objects)
BEGIN_NCBI_NAMESPACE
Definition: osg_resolve.hpp:39
int TProcessorPriority
Modified on Mon Apr 22 04:04:58 2024 by modify_doxy.py rev. 669887