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

Go to the SVN repository for this file.

1 /* $Id: seqtable_util.hpp 41476 2018-08-02 20:44:57Z asztalos $
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: Colleen Bollin
27  */
28 #ifndef _SEQTABLE_UTIL_H_
29 #define _SEQTABLE_UTIL_H_
30 
31 #include <corelib/ncbistd.hpp>
38 
41 
42 void RemoveRowsFromColumn(CRef<CSeqTable_column> col, const vector<size_t>& rows);
43 void RemoveRowsFromTable(CRef<CSeq_table> table, const vector<size_t>& rows);
45  const string& field,
46  CRef<edit::CStringConstraint> string_constraint);
47 
48 void ApplyToTable(CRef<CSeq_table> table, const string& field, const string& val, edit::EExistingText existing_text = edit::eExistingText_replace_old);
49 void RemoveFromTable (CRef<CSeq_table> table, const string& field);
50 void ConvertTableColumns (CRef<CSeq_table> table, const string& field1, const string& field2, edit::EExistingText existing_text);
51 void SwapTableColumns (CRef<CSeq_table> table, const string& field1, const string& field2);
52 void CopyTableColumns (CRef<CSeq_table> table, const string& field1, const string& field2, edit::EExistingText existing_text);
53 
57 void AddValueToTable(CRef<CSeq_table> table, string subtype_name, string value, size_t row, edit::EExistingText existing_text = edit::eExistingText_replace_old);
58 void AddValueToTable (CRef<CSeq_table> table, string subtype_name, int value, size_t row);
59 void SetColumnValue(CRef<CSeqTable_column> col, string val);
60 
63 bool QualifierNamesAreEquivalent (string name1, string name2);
64 bool MatchColumnName (string name1, string name2);
65 bool IsOrgColumnName (string name);
66 bool IsSubSourceNoteName (const string& name);
67 bool IsOrgModNoteName (const string& name);
69 
71 
72 
74 
75 #endif
76  // _SEQTABLE_UTIL_H_
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
Include a standard set of the NCBI C++ Toolkit most basic headers.
static const char * column
Definition: stats.c:23
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
static const char label[]
<!DOCTYPE HTML >< html > n< header > n< title > PubSeq Gateway Help Page</title > n< style > n table
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
bool MatchColumnName(string name1, string name2)
void RemoveFromTable(CRef< CSeq_table > table, const string &field)
void CopyTableColumns(CRef< CSeq_table > table, const string &field1, const string &field2, edit::EExistingText existing_text)
void RemoveTableRowsThatDoNotMatchStringConstraint(CRef< CSeq_table > table, const string &field, CRef< edit::CStringConstraint > string_constraint)
bool RemoveSeqTableColumnByName(CRef< objects::CSeq_table > table, string column_name)
USING_SCOPE(ncbi::objects)
void ConvertTableColumns(CRef< CSeq_table > table, const string &field1, const string &field2, edit::EExistingText existing_text)
bool IsOrgColumnName(string name)
CRef< CSeqTable_column > FindSeqTableColumnByName(CRef< objects::CSeq_table > values_table, string column_name)
void SwapTableColumns(CRef< CSeq_table > table, const string &field1, const string &field2)
bool QualifierNamesAreEquivalent(string name1, string name2)
CRef< CSeqTable_column > AddIntColumnToTable(CRef< CSeq_table > table, string label)
CRef< CSeqTable_column > AddStringColumnToTable(CRef< CSeq_table > table, string label)
void AddValueToColumn(CRef< CSeqTable_column > column, string value, size_t row, edit::EExistingText existing_text=edit::eExistingText_replace_old)
void RemoveRowsFromTable(CRef< CSeq_table > table, const vector< size_t > &rows)
void RemoveRowsFromColumn(CRef< CSeqTable_column > col, const vector< size_t > &rows)
void FillShortColumns(CRef< objects::CSeq_table > values_table)
void ApplyToTable(CRef< CSeq_table > table, const string &field, const string &val, edit::EExistingText existing_text=edit::eExistingText_replace_old)
void AddValueToTable(CRef< CSeq_table > table, string subtype_name, string value, size_t row, edit::EExistingText existing_text=edit::eExistingText_replace_old)
void SetColumnValue(CRef< CSeqTable_column > col, string val)
bool IsOrgModNoteName(const string &name)
int CountColumnValueConflicts(CRef< CSeqTable_column > column1, CRef< CSeqTable_column > column2)
bool IsSubSourceNoteName(const string &name)
#define row(bind, expected)
Definition: string_bind.c:73
EExistingText
@ eExistingText_replace_old
Modified on Tue Apr 23 07:37:15 2024 by modify_doxy.py rev. 669887