1 #ifndef STRUCT_CMT_READER_HPP
2 #define STRUCT_CMT_READER_HPP
56 const string& default_columns,
const string& required,
57 const string& ignored,
const string& unique,
58 const string& discouraged,
59 const vector<string>& require_one);
69 bool _CheckHeader(
const string& discouraged,
const vector<string>& require_one);
Base class for all serializable objects.
static void RegisterAliases(CNcbiIstream *in_stream)
vector< bool > m_required_cols
void _OperateRows(ILineReader &reader)
void _ReportXML(CNcbiOstream *out_stream, bool no_headers)
vector< bool > m_unique_cols
bool _MakeColumns(const string &message, const CTempString &columns, vector< bool > &col_defs)
vector< bool > m_ignored_cols
CTabDelimitedValidator(e_Flags flags=e_tab_tab_delim)
void _ReportError(int col_number, const CTempString &error, const CTempString &colname, bool warning=false)
list< CTabDelimitedValidatorMessage > m_errors
void ValidateInput(ILineReader &reader, const string &default_columns, const string &required, const string &ignored, const string &unique, const string &discouraged, const vector< string > &require_one)
bool _CheckHeader(const string &discouraged, const vector< string > &require_one)
void _ReportTab(CNcbiOstream *out_stream)
@ e_tab_ignore_unknown_types
@ e_tab_ignore_empty_rows
void _ReportWarning(int col_number, const CTempString &error, const CTempString &colname)
void GenerateOutput(CNcbiOstream *out_stream, bool no_headers)
vector< map< string, int > > m_unique_values
bool _Validate(int col_number, const CTempString &value)
vector< set< string > > m_require_one_cols
bool _ProcessHeader(ILineReader &reader, const CTempString &default_cols)
vector< string > m_col_defs
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
Abstract base class for lightweight line-by-line reading.
static const column_t columns[]
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
IO_PREFIX::istream CNcbiIstream
Portable alias for istream.
const GenericPointer< typename T::ValueType > T2 value
The NCBI C++/STL use hints.