: m_FileName(fileName)
57 string msg(
"Unsupported protocol: ");
58 msg+= (
const char*) fileName.ToUTF8();
72 CUrlurl((
const char*)fileName.ToUTF8());
143 CUrlurl((
const char*)fileName.ToUTF8());
145 if(protocol.empty() || url.
GetHost().empty()) {
146 returnwxFileName::FileExists(fileName);
193 input.seekg(0, ios_base::beg);
211unique_ptr<CNcbiIstream> fileStream;
215 string msg(
"Unsupported protocol: ");
238unique_ptr<CNcbiIstream> compressedStream;
260 if(protocol.empty() || url.
GetHost().empty()) {
CBZip2StreamDecompressor â bzip2 based decompression stream processor.
CNcbiIstream & GetIstream(bool seekable=true)
CCompressedFile(const wxString &fileName)
CFormatGuess::EFormat m_ContentFmt
CFormatGuess::EFormat x_GuessFormatNetwork() const
unique_ptr< CCompressionIStream > m_Compressed
CFormatGuess::EFormat x_GuessFormat(CNcbiIstream &input, bool resetPosition=true) const
void x_AttachDecompressor()
unique_ptr< CTmpFile > m_TempFile
CFormatGuess::EFormat GuessFormat()
EProtocol x_GetProtocol(const wxString &path) const
CFormatGuess::EFormat m_ArchiveFmt
static bool FileExists(const wxString &fileName)
CFormatGuess::EFormat x_GuessFormatLocal()
unique_ptr< CNcbiIstream > m_FileStream
CNcbiIstream & x_DownloadFile(CNcbiIstream &remote)
CConn_FtpStream specialization (ctor) for download.
This stream exchanges data with an HTTP server located at the URL: http[s]://host[:port]/path[?...
CFormatHints & AddPreferredFormat(TFormat fmt)
Mark the format as preferred.
Class implements different ad-hoc unreliable file format identifications.
CFormatHints & GetFormatHints(void)
Get format hints.
EFormat
The formats are checked in the same order as declared here.
@ eBZip2
bzip2 compressed file
@ eGZip
GNU zip compressed file.
@ eUnknown
unknown format
EFormat GuessFormat(EMode)
CZipStreamDecompressor â zlib based decompression stream processor.
@ fGZip
Set of flags for gzip file support. See each flag description above.
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
@ eIfExists_Reset
Delete previous stream and return reference to new object.
#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.
IO_PREFIX::ifstream CNcbiIfstream
Portable alias for ifstream.
bool NcbiStreamCopy(CNcbiOstream &os, CNcbiIstream &is)
Copy the entire contents of stream "is" to stream "os".
static int CompareNocase(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)
Case-insensitive compare of a substring with another string.
const string & GetHost(void) const
const string & GetPath(void) const
const string & GetScheme(void) const
Defines NCBI C++ exception handling.
static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
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