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

Go to the SVN repository for this file.

1 /* $Id: validerror_base.hpp 94734 2021-09-04 16:52:30Z stakhovv $
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  * Author: Jonathan Kans, Clifford Clausen, Aaron Ucko......
27  *
28  * File Description:
29  * Privae classes and definition for the validator
30  * .......
31  *
32  */
33 
34 #ifndef VALIDATOR___VALIDERROR_BASE__HPP
35 #define VALIDATOR___VALIDERROR_BASE__HPP
36 
37 #include <corelib/ncbistd.hpp>
39 
42 
43 BEGIN_SCOPE(validator)
44 
45 class CValidError_imp;
46 
47 
49 {
50 protected:
52  virtual ~CValidError_base();
53 
54  void PostErr(EDiagSev sv, EErrType et, const string& msg,
55  const CSerialObject& obj);
56  //void PostErr(EDiagSev sv, EErrType et, const string& msg, TDesc ds);
57  void PostErr(EDiagSev sv, EErrType et, const string& msg, const CSeq_feat& ft);
58  void PostErr(EDiagSev sv, EErrType et, const string& msg, const CBioseq& sq);
59  void PostErr(EDiagSev sv, EErrType et, const string& msg, const CSeq_entry& ctx,
60  const CSeqdesc& ds);
61  void PostErr(EDiagSev sv, EErrType et, const string& msg, const CBioseq_set& set);
62  void PostErr(EDiagSev sv, EErrType et, const string& msg, const CSeq_annot& annot);
63  void PostErr(EDiagSev sv, EErrType et, const string& msg, const CSeq_graph& graph);
64  void PostErr(EDiagSev sv, EErrType et, const string& msg, const CBioseq& sq,
65  const CSeq_graph& graph);
66  void PostErr(EDiagSev sv, EErrType et, const string& msg, const CSeq_align& align);
67  void PostErr(EDiagSev sv, EErrType et, const string& msg, const CSeq_entry& entry);
68 
69  CCacheImpl& GetCache();
70 
71  static CSeq_entry_Handle GetAppropriateXrefParent(CSeq_entry_Handle seh);
72 
75 };
76 
77 
78 END_SCOPE(validator)
81 
82 #endif /* VALIDATOR___VALIDERROR_BASE__HPP */
EErrType
CScope –.
Definition: scope.hpp:92
CSeq_entry_Handle –.
Definition: Seq_entry.hpp:56
namespace ncbi::objects::
Definition: Seq_feat.hpp:58
Base class for all serializable objects.
Definition: serialbase.hpp:150
CValidError_imp & m_Imp
Cache various information for one validation run.
Definition: cache_impl.hpp:126
Definition: set.hpp:45
Include a standard set of the NCBI C++ Toolkit most basic headers.
CS_CONTEXT * ctx
Definition: t0006.c:12
EDiagSev
Severity level for the posted diagnostics.
Definition: ncbidiag.hpp:650
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define END_SCOPE(ns)
End the previously defined scope.
Definition: ncbistl.hpp:75
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
#define BEGIN_SCOPE(ns)
Define a new scope.
Definition: ncbistl.hpp:72
#define NCBI_VALIDATOR_EXPORT
Definition: ncbi_export.h:913
Modified on Sat Apr 20 12:15:55 2024 by modify_doxy.py rev. 669887