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

Go to the SVN repository for this file.

1 /* $Id: app_config.hpp 102721 2024-07-01 15:38:07Z foleyjp $
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: Frank Ludwig
27  *
28  * File Description:
29  * validator
30  *
31  */
32 
33 #ifndef ASNVAL_APP_CONFIG_HPP
34 #define ASNVAL_APP_CONFIG_HPP
35 
36 #include <corelib/ncbistd.hpp>
37 #include <corelib/ncbiapp.hpp>
38 #include <corelib/ncbiargs.hpp>
39 #include <corelib/ncbireg.hpp>
40 
41 using namespace ncbi;
42 
44 {
45 public:
46  enum EVerbosity {
47  eVerbosity_Normal = 1,
48  eVerbosity_Spaced = 2,
49  eVerbosity_Tabbed = 3,
50  eVerbosity_XML = 4,
51  eVerbosity_min = 1, eVerbosity_max = 4
52  };
53 
54  CAppConfig(const CArgs& args, const CNcbiRegistry& reg);
55 
56  bool mQuiet;
57  bool mDoCleanup;
62  bool mBatch = false;
63  string mOnlyError;
64  bool mContinue;
66  bool mHugeFile = false;
67  unsigned int m_Options = 0;
69 };
70 
71 #endif
EDiagSev mLowCutoff
Definition: app_config.hpp:59
EDiagSev mReportLevel
Definition: app_config.hpp:61
bool mDoCleanup
Definition: app_config.hpp:57
string mOnlyError
Definition: app_config.hpp:63
EDiagSev mHighCutoff
Definition: app_config.hpp:60
bool mOnlyAnnots
Definition: app_config.hpp:65
int mNumInstances
Definition: app_config.hpp:68
bool mContinue
Definition: app_config.hpp:64
EVerbosity mVerbosity
Definition: app_config.hpp:58
CArgs –.
Definition: ncbiargs.hpp:379
CNcbiRegistry –.
Definition: ncbireg.hpp:913
Include a standard set of the NCBI C++ Toolkit most basic headers.
EDiagSev
Severity level for the posted diagnostics.
Definition: ncbidiag.hpp:650
Magic spell ;-) needed for some weird compilers... very empiric.
Defines the CNcbiApplication and CAppException classes for creating NCBI applications.
Defines command line argument related classes.
Process information in the NCBI Registry, including working with configuration files.
Modified on Wed Jul 24 17:17:42 2024 by modify_doxy.py rev. 669887