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

Go to the SVN repository for this file.

1 /* $Id: Suspect_rule.hpp 79735 2017-10-10 11:53:46Z 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.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_.hpp
37 
38 
39 #ifndef OBJECTS_MACRO_SUSPECT_RULE_HPP
40 #define OBJECTS_MACRO_SUSPECT_RULE_HPP
41 
42 
43 // generated includes
48 
49 // generated classes
50 
52 BEGIN_objects_SCOPE // namespace ncbi::objects::
53 
54 // forward declarations
55 class CConstraint_choice;
57 class CField_constraint;
58 class CField_type;
61 class CReplace_rule;
62 class CSearch_func;
63 class CSource_constraint;
64 class CString_constraint;
65 
66 /////////////////////////////////////////////////////////////////////////////
68 {
70 public:
73 
74  // C's MatchesSuspectProductRule()
76 
77  bool ApplyToString(string& result, const CMatchString& str) const;
78  bool ApplyToString(string& val) const;
79 
80  string GetRuleTypeName(void) const;
81  string SummarizeRule(void) const;
83 
84 private:
85  // Prohibit copy constructor and assignment operator
88 
89  string SummarizeSearchFunc(const CSearch_func&) const;
90  string SummarizeReplaceRule(const CReplace_rule&) const;
91  string SummarizeStringConstraint(const CString_constraint&) const;
93  string SummarizeConstraint(const CConstraint_choice&) const;
96  string SummarizeSourceConstraint(const CSource_constraint&) const;
97  string SummarizeFieldConstraint(const CField_constraint&) const;
98  string SummarizeFieldType(const CField_type&) const;
99 };
100 
101 END_objects_SCOPE // namespace ncbi::objects::
103 
104 #endif // OBJECTS_MACRO_SUSPECT_RULE_HPP
User-defined methods of the data storage class.
User-defined methods of the data storage class.
Data storage class.
CSource_constraint –.
CSuspect_rule_Base –.
string SummarizeLocationConstraint(const CLocation_constraint &) const
bool IsFatal(void) const
string SummarizeEndDistance(const CLocation_pos_constraint &) const
string GetRuleTypeName(void) const
string SummarizeSourceConstraint(const CSource_constraint &) const
bool ApplyToString(string &result, const CMatchString &str) const
CSuspect_rule & operator=(const CSuspect_rule &value)
CSuspect_rule_Base Tparent
bool StringMatchesSuspectProductRule(const CMatchString &str) const
string SummarizeRule(void) const
string SummarizeConstraintSet(const CConstraint_choice_set &) const
string SummarizeConstraint(const CConstraint_choice &) const
string SummarizeSearchFunc(const CSearch_func &) const
string SummarizeFieldType(const CField_type &) const
string SummarizeStringConstraint(const CString_constraint &) const
string SummarizeReplaceRule(const CReplace_rule &) const
string SummarizeFieldConstraint(const CField_constraint &) const
CSuspect_rule(const CSuspect_rule &value)
char value[7]
Definition: config.c:431
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
TRule_type GetRule_type(void) const
Get the Rule_type member data.
TFatal GetFatal(void) const
Get the Fatal member data.
@ eFix_type_inappropriate_symbol
Definition: Fix_type_.hpp:72
@ eFix_type_remove_organism_name
Definition: Fix_type_.hpp:71
static const char * str(char *buf, int n)
Definition: stats.c:84
else result
Definition: token2.c:20
Modified on Mon Dec 11 02:39:59 2023 by modify_doxy.py rev. 669887