A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/file__manifest_8hpp_source.html below:

NCBI C++ ToolKit: include/util/file_manifest.hpp Source File

1 #ifndef UTIL___FILE_MANIFEST_HPP__ 2 #define UTIL___FILE_MANIFEST_HPP__ 65  void

Validate()

const

;

69  string GetPath

()

const

{

return

m_ManifestPath; }

72 

vector<string> GetAllFilePaths()

const

;

76  string

GetSingleFilePath()

const

;

79  void

WriteManyFilePaths(

const

vector<string> & file_paths );

94

, eCantOpenManifestForRead

95

, eCantOpenManifestForWrite

96

, eCantOpenFileInManifest

104  switch

(GetErrCode()) {

105  case

eEmptyManifestName:

106  return "The manifest filename was empty."

;

107  case

eCantOpenManifestForRead:

108  return "Unable to open the manifest for reading."

;

109  case

eCantOpenManifestForWrite:

110  return "Unable to open the manifest for writing."

;

111  case

eCantOpenFileInManifest:

112  return "Unable to open a file in the manifest."

;

113  case

eInvalidFileFormat:

114  return "Invalid manifest format: must be 1 or 2 columns"

;

115  case

eInvalidFilePath:

116  return "Invalid file path: must not contain spaces, " 117  "quotes, or escapes"

;

129 template

<

class

TString>

140  typedef typename

TString::traits_type

TTraits

;

193  return

!(*

this

!= other);

208

( next_value.empty() || ( next_value[0] ==

'#'

) ) );

211

string::size_type first_tab = next_value.find_first_of(

'\t'

);

212

string::size_type last_tab = next_value.find_last_of(

'\t'

);

213  if

(first_tab != last_tab) {

214  string

error_string =

"More than 2 columns in: "

+ next_value;

217  if

( last_tab != string::npos ) {

218

next_value.erase( 0, last_tab + 1 );

222

string::size_type bad_char_pos = next_value.find_first_of(

" '`\"\\"

);

223  if

( bad_char_pos != string::npos ) {

224  string

error_string =

"Invalid character at position "

+

227

next_value.substr(0, bad_char_pos) +

228  ">>>"

+ next_value[bad_char_pos] +

"<<<"

+

229

next_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