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

Go to the SVN repository for this file.

1 /* $Id: Suspect_rule_set.hpp 98553 2022-12-05 12:50:08Z gotvyans $
2  * ===========================================================================
3  *
4  * PUBLIC DOMAIN NOTICE
5  * National Center for Biotechnology Information
6  *
7  * This software/database is a "United States Government Work" under the
8  * terms of the United States Copyright Act. It was written as part of
9  * the author's official duties as a United States Government employee and
10  * thus cannot be copyrighted. This software/database is freely available
11  * to the public for use. The National Library of Medicine and the U.S.
12  * Government have not placed any restriction on its use or reproduction.
13  *
14  * Although all reasonable efforts have been taken to ensure the accuracy
15  * and reliability of the software and data, the NLM and the U.S.
16  * Government do not and cannot warrant the performance or results that
17  * may be obtained by using this software or data. The NLM and the U.S.
18  * Government disclaim all warranties, express or implied, including
19  * warranties of performance, merchantability or fitness for any particular
20  * purpose.
21  *
22  * Please cite the author in any work or product based on this material.
23  *
24  * ===========================================================================
25  *
26  */
27 
28 /// @file Suspect_rule_set.hpp
29 /// User-defined methods of the data storage class.
30 ///
31 /// This file was originally generated by application DATATOOL
32 /// using the following specifications:
33 /// 'macro.asn'.
34 ///
35 /// New methods or data members can be added to it if needed.
36 /// See also: Suspect_rule_set_.hpp
37 
38 
39 #ifndef OBJECTS_MACRO_SUSPECT_RULE_SET_HPP
40 #define OBJECTS_MACRO_SUSPECT_RULE_SET_HPP
41 
42 
43 // generated includes
45 
46 // generated classes
47 
49 
51 
52 namespace FSM
53 {
54  class CCompiledFSM;
55 }
56 
57 BEGIN_objects_SCOPE // namespace ncbi::objects::
58 
59 
60 
61 /////////////////////////////////////////////////////////////////////////////
63 {
65 public:
66  // constructor
67  CSuspect_rule_set(void);
68  // Prohibit copy constructor and assignment operator
70  // destructor
71  ~CSuspect_rule_set(void);
72 
74  {
75  m_Precompiled_FSM = fsm;
76  }
77 
78  void Screen(const char* input, char* output) const;
79  void Screen(const string& input, char* output) const { Screen(input.c_str(), output); }
80 
81 private:
82  mutable unique_ptr<CMultipatternSearch> m_FSM;
84 };
85 
86 END_objects_SCOPE // namespace ncbi::objects::
87 
89 
90 
91 #endif // OBJECTS_MACRO_SUSPECT_RULE_SET_HPP
92 /* Original file checksum: lines: 86, chars: 2519, CRC32: e82b213 */
Data storage class.
CMultipatternSearch.
CSuspect_rule_set_Base –.
void SetPrecompiledData(const FSM::CCompiledFSM *fsm)
const FSM::CCompiledFSM * m_Precompiled_FSM
void Screen(const string &input, char *output) const
void Screen(const char *input, char *output) const
CSuspect_rule_set_Base Tparent
unique_ptr< CMultipatternSearch > m_FSM
CSuspect_rule_set(const CSuspect_rule_set &)=delete
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
static int input()
static SQLCHAR output[256]
Definition: print.c:5
Modified on Thu Mar 28 17:05:34 2024 by modify_doxy.py rev. 669887