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

Go to the SVN repository for this file.

1 /* $Id: cuUtils.hpp 86924 2019-07-09 14:58:43Z lanczyck $
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: Chris Lanczycki
27  *
28  * File Description:
29  *
30  * Various utility functions for working with CD objects
31  *
32  * ===========================================================================
33  */
34 
35 #ifndef CU_UTILS_HPP
36 #define CU_UTILS_HPP
37 
38 #include <corelib/ncbiargs.hpp>
39 #include <corelib/ncbienv.hpp>
40 #include <corelib/ncbistre.hpp>
42 
45 BEGIN_SCOPE(cd_utils)
46 
47 extern const int CDTreeColorCycle[];
48 extern const int kNumColorsInCDTreeColorCycle;
49 
51 string GetSeqIDStr(const CRef< CSeq_id >& SeqID);
52 
53 // uses a space to delimit molecule and chain ids
55 string Make_SeqID_String(const CRef< CSeq_id > SeqID, bool Pad, int Len);
56 
57 // uses an underscore to delimit molecule and chain ids
60 
62 string CddIdString(const CCdd& cdd); // give all Cdd_id's for this Cd
64 string CddIdString(const CCdd_id& id);
66 bool SameCDAccession(const CCdd_id& id1, const CCdd_id& id2);
67 
69 bool Prosite2Regex(const std::string& prosite, std::string* regex, std::string* errString);
70 
71 END_SCOPE(cd_utils)
73 
74 
75 #endif // CU_UTILS_HPP
CCdd_id –.
Definition: Cdd_id.hpp:66
Definition: Cdd.hpp:51
#define Len
USING_SCOPE(objects)
bool Prosite2Regex(const std::string &prosite, std::string *regex, std::string *errString)
Definition: cuUtils.cpp:203
string CddIdString(const CCdd &cdd)
Definition: cuUtils.cpp:152
bool SameCDAccession(const CCdd_id &id1, const CCdd_id &id2)
Definition: cuUtils.cpp:191
const int CDTreeColorCycle[]
Definition: cuUtils.cpp:55
void Make_GI_or_PDB_String_CN3D(const CRef< CSeq_id > SeqID, std::string &Str)
Definition: cuUtils.cpp:75
string GetSeqIDStr(const CRef< CSeq_id > &SeqID)
Definition: cuUtils.cpp:145
const int kNumColorsInCDTreeColorCycle
Definition: cuUtils.cpp:73
string Make_SeqID_String(const CRef< CSeq_id > SeqID, bool Pad, int Len)
Definition: cuUtils.cpp:106
string
Definition: cgiapp.hpp:687
#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_CDUTILS_EXPORT
Definition: ncbi_export.h:376
Defines command line argument related classes.
Defines unified interface to application:
NCBI C++ stream class wrappers for triggering between "new" and "old" C++ stream libraries.
Modified on Tue Apr 23 07:39:51 2024 by modify_doxy.py rev. 669887