17 #ifndef COM_BORA_SOFTWARE__BALAU_RESOURCE__FILE_UTF8_TO_32_READ_RESOURCE 18 #define COM_BORA_SOFTWARE__BALAU_RESOURCE__FILE_UTF8_TO_32_READ_RESOURCE 22 #include <boost/filesystem.hpp> 41 : file(std::move(rhs.file))
42 , stream(std::move(rhs.stream)) {}
52 public:
const Uri &
uri()
const override;
67 private: std::unique_ptr<File> file;
68 private: std::unique_ptr<std::u32ifstream> stream;
73 #endif // COM_BORA_SOFTWARE__BALAU_RESOURCE__FILE_UTF8_TO_32_READ_RESOURCE A read-only UTF-8 resource which is read as UTF-32 characters.
A read-only UTF-8 resource which is read in as UTF-32 characters.
Definition: Utf8To32ReadResource.hpp:28
An abstract universal resource identifier.
Definition: Uri.hpp:131
The unified resource class hierarchy.
Definition: ByteReadResource.hpp:24
std::u32istream & readStream() override
Get the input stream of the UTF-8 to UTF-32 read resource.
Definition: FileUtf8To32ReadResource.hpp:48
const File & getFile() const
Get the file URI.
A read-only file based UTF-8 resource which is read as UTF-32 characters.
Definition: FileUtf8To32ReadResource.hpp:32
A file on the local file system.
Definition: File.hpp:35
FileUtf8To32ReadResource(const File &file_)
Create a new file UTF-8 to UTF-32 read resource from the supplied file URI.
const Uri & uri() const override
Get the URI associated with this resource.
void close() override
Close the stream(s) in the resource.
Definition: FileUtf8To32ReadResource.hpp:61