Nebula
Loading...
Searching...
No Matches
safefilestream.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
12#include "io/filestream.h"
13#include "util/string.h"
14#include "io/filetime.h"
15#include "io/fswrapper.h"
16
17//------------------------------------------------------------------------------
18namespace IO
19{
21{
23public:
27 virtual ~SafeFileStream();
29 virtual bool Open();
31 virtual void Close();
32protected:
34};
35
36} // namespace IO
37//------------------------------------------------------------------------------
A stream to which offers read/write access to filesystem files.
Definition filestream.h:19
Wrapper around FileStream that will save to a temporary file and swap when closed.
Definition safefilestream.h:21
SafeFileStream()
constructor
Definition safefilestream.cc:19
IO::URI tmpUri
Definition safefilestream.h:33
virtual ~SafeFileStream()
destructor
Definition safefilestream.cc:27
__DeclareClass(SafeFileStream)
virtual bool Open()
open the stream
Definition safefilestream.cc:39
virtual void Close()
close the stream
Definition safefilestream.cc:73
An URI object can split a Uniform Resource Identifier string into its components or build a string fr...
Definition uri.h:67
Instances of wrapped stream classes.
Definition orientation.cc:10