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

Go to the repository for this file.

1 /* $Id: MSMod.hpp 33815 2007-05-04 17:18:18Z kazimird $
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 /// @MSMod.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 /// 'omssa.asn'.
34 ///
35 /// New methods or data members can be added to it if needed.
36 /// See also: MSMod_.hpp
37 
38 
39 #ifndef OBJECTS_OMSSA_MSMOD_HPP
40 #define OBJECTS_OMSSA_MSMOD_HPP
41 
42 
43 // generated includes
44 #include <objects/omssa/MSMod_.hpp>
46 // generated classes
47 
49 
50 BEGIN_objects_SCOPE // namespace ncbi::objects::
51 
52 // list out the amino acids using NCBIstdAA
53 const int kNumUniqueAA = 28;
54 // U is selenocystine
55 // this is NCBIstdAA. Doesn't seem to be a central location to get this.
56 // all blast protein databases are encoded with this.
57 // U is selenocystine
58 const char * const UniqueAA = "-ABCDEFGHIKLMNPQRSTVWXYZU*JO";
59 // 0123456789012345678901234567
60 // 0123456789abcdef0123456789ab
61 
62 // used to scale all float masses into ints
63 #define MSSCALE 1000
64 #define MSSCALE2INT(x) (static_cast <int> ((x) * MSSCALE + 0.5))
65 #define MSSCALE2DBL(x) ((x)/ static_cast <double> (MSSCALE))
66 
67 
68 
69 END_objects_SCOPE // namespace ncbi::objects::
70 
72 
73 #endif // OBJECTS_OMSSA_MSMOD_HPP
74 /* Original file checksum: lines: 65, chars: 1980, CRC32: a05bf8ae */
Data storage class.
const int kNumUniqueAA
@MSMod.hpp User-defined methods of the data storage class.
Definition: MSMod.hpp:53
const char *const UniqueAA
Definition: MSMod.hpp:58
Data storage class.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:104
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:101
Modified on Tue Nov 17 14:26:58 2026 by modify_doxy.py rev. 717554