Validate()
const;
69 string GetPath()
const{
returnm_ManifestPath; }
72vector<string> GetAllFilePaths()
const;
76 stringGetSingleFilePath()
const;
79 voidWriteManyFilePaths(
constvector<string> & file_paths );
94, eCantOpenManifestForRead
95, eCantOpenManifestForWrite
96, eCantOpenFileInManifest
104 switch(GetErrCode()) {
105 caseeEmptyManifestName:
106 return "The manifest filename was empty.";
107 caseeCantOpenManifestForRead:
108 return "Unable to open the manifest for reading.";
109 caseeCantOpenManifestForWrite:
110 return "Unable to open the manifest for writing.";
111 caseeCantOpenFileInManifest:
112 return "Unable to open a file in the manifest.";
113 caseeInvalidFileFormat:
114 return "Invalid manifest format: must be 1 or 2 columns";
115 caseeInvalidFilePath:
116 return "Invalid file path: must not contain spaces, " 117 "quotes, or escapes";
129 template<
classTString>
140 typedef typenameTString::traits_type
TTraits;
193 return!(*
this!= other);
208( next_value.empty() || ( next_value[0] ==
'#') ) );
211string::size_type first_tab = next_value.find_first_of(
'\t');
212string::size_type last_tab = next_value.find_last_of(
'\t');
213 if(first_tab != last_tab) {
214 stringerror_string =
"More than 2 columns in: "+ next_value;
217 if( last_tab != string::npos ) {
218next_value.erase( 0, last_tab + 1 );
222string::size_type bad_char_pos = next_value.find_first_of(
" '`\"\\");
223 if( bad_char_pos != string::npos ) {
224 stringerror_string =
"Invalid character at position "+
227next_value.substr(0, bad_char_pos) +
228 ">>>"+ next_value[bad_char_pos] +
"<<<"+
229next_value.substr(bad_char_pos + 1);
Iterator to walk the files in the manifest.
input_iterator_tag iterator_category
basic_istream< TChar, TTraits > TIStream
TString::traits_type TTraits
CBasicManifest_CI< TString > & operator++()
bool operator!=(const CBasicManifest_CI< TString > &other) const
ptrdiff_t difference_type
CBasicManifest_CI(TIStream &input_stream)
const TString & operator*() const
const TString & reference
TString::value_type TChar
bool operator==(const CBasicManifest_CI< TString > &other) const
CBasicManifest_CI< TString > operator++(int)
const TString * operator->() const
string GetPath() const
throws CManifestException
NCBI_EXCEPTION_DEFAULT(CManifestException, CException)
virtual const char * GetErrCodeString() const override
Get error code interpreted as text.
CBasicManifest_CI< string > CManifest_CI
static DLIST_TYPE *DLIST_NAME() prev(DLIST_LIST_TYPE *list, DLIST_TYPE *item)
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
void Warning(CExceptionArgs_Base &args)
EErrCode
Error types that an application can generate.
virtual const char * GetErrCodeString(void) const
Get error code interpreted as text.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static enable_if< is_arithmetic< TNumeric >::value||is_convertible< TNumeric, Int8 >::value, string >::type NumericToString(TNumeric value, TNumToStringFlags flags=0, int base=10)
Convert numeric value to string.
double value_type
The numeric datatype used by the parser.
Defines NCBI C++ exception handling.
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
NCBI_XUTIL_EXPORT
Parameter to control printing diagnostic message about conversion of static array data from a differe...
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4