NCBI C++ ToolKit
user_type.cpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /* $Id: user_type.cpp 26143 2012-07-25 19:53:48Z falkrb $
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  * Authors: Andrey Yazhuk
27  *
28  * File Description:
29  *
30  */
31 
32 #include <ncbi_pch.hpp>
33 
35 
37 
38 
39 const string CGUIUserType::sm_Tp_Undefined = "";
40 const string CGUIUserType::sm_Tp_Alignment = "Alignment";
41 const string CGUIUserType::sm_Tp_Alignment_Set = "Alignment Set";
42 const string CGUIUserType::sm_Tp_Annotation = "Annotation";
43 const string CGUIUserType::sm_Tp_EntrezGeneRecord = "Entrez Gene Record";
44 const string CGUIUserType::sm_Tp_EntrezRecord = "Enrez Record";
45 const string CGUIUserType::sm_Tp_Feature = "Feature";
46 const string CGUIUserType::sm_Tp_Location = "Location";
47 const string CGUIUserType::sm_Tp_PhylogeneticTree = "Phylogenetic Tree";
48 const string CGUIUserType::sm_Tp_TaxId_Set = "Taxonomic ID Set";
49 const string CGUIUserType::sm_Tp_Sequence = "Sequence";
50 const string CGUIUserType::sm_Tp_Sequence_ID = "Sequence ID";
51 const string CGUIUserType::sm_Tp_Sequence_Set = "Sequence Set";
52 const string CGUIUserType::sm_Tp_Submission = "Submission";
53 const string CGUIUserType::sm_Tp_TaxPlotData = "Tax Plot Data";
54 const string CGUIUserType::sm_Tp_ValidationResult = "Validation Result";
55 const string CGUIUserType::sm_Tp_SeqTable = "SEQ TABLE (Beta)"; // TODO
56 const string CGUIUserType::sm_Tp_Variation = "Variation";
57 
58 const string CGUIUserType::sm_Tp_Project = "Project";
59 const string CGUIUserType::sm_Tp_ProjectItem = "Project Item";
60 const string CGUIUserType::sm_Tp_Workspace = "Workspace";
61 
62 
63 const string CGUIUserType::sm_SbTp_Undefined = "";
64 
65 const string CGUIUserType::sm_SbTp_DNA = "DNA";
66 const string CGUIUserType::sm_SbTp_Protein = "Protein";
67 
68 const string CGUIUserType::sm_SbTp_Features = "Features";
69 const string CGUIUserType::sm_SbTp_Alignments = "Alignments";
70 const string CGUIUserType::sm_SbTp_Graphs = "Graphs";
71 const string CGUIUserType::sm_SbTp_Sequence_IDs = "Sequence IDs";
72 const string CGUIUserType::sm_SbTp_Locations = "Locations";
73 const string CGUIUserType::sm_SbTp_Table = "Table";
74 
75 const string CGUIUserType::sm_SbTp_NucProt = "DNA + Protein Translation (Nuc-Prot)";
76 const string CGUIUserType::sm_SbTp_GenProdSet = "Genomic Products";
77 const string CGUIUserType::sm_SbTp_SegSeq = "Segmented Sequence";
78 
79 const string CGUIUserType::sm_SbTp_PopSet = "Population Study";
80 const string CGUIUserType::sm_SbTp_PhySet = "Phylogenetic Study";
81 const string CGUIUserType::sm_SbTp_EcoSet = "Ecological Study";
82 const string CGUIUserType::sm_SbTp_MutSet = "Mutation Study";
83 
84 const string CGUIUserType::sm_SbTp_PopSet_Aln = "Population Study (Aligned)";
85 const string CGUIUserType::sm_SbTp_PhySet_Aln = "Phylogenetic Study (Aligned)";
86 const string CGUIUserType::sm_SbTp_EcoSet_Aln = "Ecological Study (Aligned)";
87 const string CGUIUserType::sm_SbTp_MutSet_Aln = "Mutation Study (Aligned)";
88 
89 const string CGUIUserType::sm_SbTp_ProjectVer1 = "Ver 1";
90 const string CGUIUserType::sm_SbTp_ProjectVer2 = "Ver 2";
91 
92 
94 {
95 }
96 
97 CGUIUserType::CGUIUserType(const string& type, const string& subtype)
98 : m_Type(type),
99  m_Subtype(subtype)
100 {
101 }
102 
103 bool CGUIUserType::operator<(const CGUIUserType& other) const
104 {
105  return m_Type < other.m_Type ||
106  (m_Type == other.m_Type && m_Subtype < other.m_Subtype);
107 }
108 
109 
CGUIUserType.
Definition: user_type.hpp:50
string m_Type
Definition: user_type.hpp:115
static const string sm_Tp_Sequence
Definition: user_type.hpp:64
static const string sm_Tp_ProjectItem
Definition: user_type.hpp:74
static const string sm_Tp_EntrezGeneRecord
Definition: user_type.hpp:58
static const string sm_Tp_Alignment
Definition: user_type.hpp:55
static const string sm_Tp_Undefined
Definition: user_type.hpp:53
static const string sm_Tp_Annotation
Definition: user_type.hpp:57
static const string sm_Tp_Sequence_Set
Definition: user_type.hpp:66
string m_Subtype
Definition: user_type.hpp:116
static const string sm_SbTp_PhySet
Definition: user_type.hpp:98
static const string sm_SbTp_MutSet_Aln
Definition: user_type.hpp:105
static const string sm_SbTp_PhySet_Aln
Definition: user_type.hpp:103
static const string sm_SbTp_Undefined
Definition: user_type.hpp:78
static const string sm_SbTp_DNA
Definition: user_type.hpp:81
static const string sm_SbTp_EcoSet
Definition: user_type.hpp:99
static const string sm_Tp_TaxId_Set
Definition: user_type.hpp:63
static const string sm_SbTp_Graphs
Definition: user_type.hpp:87
static const string sm_SbTp_NucProt
Definition: user_type.hpp:93
static const string sm_Tp_Feature
Definition: user_type.hpp:60
static const string sm_SbTp_PopSet_Aln
Definition: user_type.hpp:102
static const string sm_SbTp_EcoSet_Aln
Definition: user_type.hpp:104
static const string sm_SbTp_GenProdSet
Definition: user_type.hpp:95
static const string sm_Tp_Alignment_Set
Definition: user_type.hpp:56
static const string sm_SbTp_Features
Definition: user_type.hpp:86
static const string sm_SbTp_Sequence_IDs
Definition: user_type.hpp:88
static const string sm_Tp_Submission
Definition: user_type.hpp:67
bool operator<(const CGUIUserType &other) const
Definition: user_type.cpp:103
static const string sm_SbTp_Table
Definition: user_type.hpp:90
static const string sm_Tp_ValidationResult
Definition: user_type.hpp:69
static const string sm_SbTp_Protein
Definition: user_type.hpp:82
static const string sm_Tp_EntrezRecord
Definition: user_type.hpp:59
static const string sm_Tp_SeqTable
Definition: user_type.hpp:70
static const string sm_SbTp_ProjectVer1
Definition: user_type.hpp:108
static const string sm_SbTp_MutSet
Definition: user_type.hpp:100
static const string sm_SbTp_ProjectVer2
Definition: user_type.hpp:109
static const string sm_Tp_PhylogeneticTree
Definition: user_type.hpp:62
static const string sm_SbTp_SegSeq
Definition: user_type.hpp:94
static const string sm_SbTp_Locations
Definition: user_type.hpp:89
static const string sm_SbTp_PopSet
Definition: user_type.hpp:97
static const string sm_Tp_Workspace
Definition: user_type.hpp:75
static const string sm_Tp_Variation
Definition: user_type.hpp:71
static const string sm_SbTp_Alignments
Definition: user_type.hpp:85
static const string sm_Tp_Sequence_ID
Definition: user_type.hpp:65
static const string sm_Tp_Location
Definition: user_type.hpp:61
static const string sm_Tp_TaxPlotData
Definition: user_type.hpp:68
static const string sm_Tp_Project
Definition: user_type.hpp:73
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
Definition: type.c:6
Modified on Sat Mar 02 10:57:14 2024 by modify_doxy.py rev. 669887