mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-07-05 08:27:10 +02:00
Major plugin refactor and cleanup.
Switched to POCO library for unified platform/library interface. Deprecated the external module API. It was creating more problems than solving. Removed most built-in libraries in favor of system libraries for easier maintenance. Cleaned and secured code with help from static analyzers.
This commit is contained in:
61
vendor/POCO/Foundation/include/Poco/FileStreamFactory.h
vendored
Normal file
61
vendor/POCO/Foundation/include/Poco/FileStreamFactory.h
vendored
Normal file
@ -0,0 +1,61 @@
|
||||
//
|
||||
// FileStreamFactory.h
|
||||
//
|
||||
// Library: Foundation
|
||||
// Package: URI
|
||||
// Module: FileStreamFactory
|
||||
//
|
||||
// Definition of the FileStreamFactory class.
|
||||
//
|
||||
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
//
|
||||
// SPDX-License-Identifier: BSL-1.0
|
||||
//
|
||||
|
||||
|
||||
#ifndef Foundation_FileStreamFactory_INCLUDED
|
||||
#define Foundation_FileStreamFactory_INCLUDED
|
||||
|
||||
|
||||
#include "Poco/Foundation.h"
|
||||
#include "Poco/URIStreamFactory.h"
|
||||
|
||||
|
||||
namespace Poco {
|
||||
|
||||
|
||||
class Path;
|
||||
|
||||
|
||||
class Foundation_API FileStreamFactory: public URIStreamFactory
|
||||
/// An implementation of the URIStreamFactory interface
|
||||
/// that handles file URIs.
|
||||
{
|
||||
public:
|
||||
FileStreamFactory();
|
||||
/// Creates the FileStreamFactory.
|
||||
|
||||
~FileStreamFactory();
|
||||
/// Destroys the FileStreamFactory.
|
||||
|
||||
std::istream* open(const URI& uri);
|
||||
/// Creates and opens a file stream in binary mode for the given URI.
|
||||
/// The URI must be either a file URI or a relative URI reference
|
||||
/// containing a path to a local file.
|
||||
///
|
||||
/// Throws an FileNotFound exception if the file cannot
|
||||
/// be opened.
|
||||
|
||||
std::istream* open(const Path& path);
|
||||
/// Creates and opens a file stream in binary mode for the given path.
|
||||
///
|
||||
/// Throws an FileNotFound exception if the file cannot
|
||||
/// be opened.
|
||||
};
|
||||
|
||||
|
||||
} // namespace Poco
|
||||
|
||||
|
||||
#endif // Foundation_FileStreamFactory_INCLUDED
|
Reference in New Issue
Block a user