8 #ifndef META_OCEAN_IO_FILE_H
9 #define META_OCEAN_IO_FILE_H
29 typedef std::vector<File>
Files;
48 explicit File(
const std::string& filename);
100 #if defined(__APPLE__)
137 explicit inline ScopedFile(
const std::string& filename);
170 *
this = std::move(scopedFile);
This class holds a file.
Definition: File.h:36
std::string baseName() const
Returns the base name of this file.
std::string name() const
Returns the name of this file.
std::string extension() const
Returns the extension of this file.
std::string base() const
Returns the base of this file.
static bool existsApple(const std::string &file)
Returns whether a file exists (specialization for Apple platforms).
bool isValid() const override
Returns whether the path is valid.
bool remove() const
Removes this file from the filesystem.
bool exists() const override
Returns whether the file exists already.
File(const std::string &filename)
Create a new file.
File()
Creates an empty file.
This class holds a path.
Definition: Path.h:27
This class implements a scoped file object which will delete the underlying file from the filesystem ...
Definition: File.h:118
~ScopedFile()
Destructs this object and deletes the actual file.
ScopedFile & operator=(ScopedFile &&scopedFile)
Move operator.
ScopedFile(ScopedFile &&scopedFile)
Move constructor.
Definition: File.h:167
ScopedFile(const ScopedFile &scopedFile)=delete
Disabled copy constructor.
ScopedFile & operator=(const ScopedFile &scopedFile)=delete
Disabled copy constructor.
std::vector< File > Files
Definition of a vector holding files.
Definition: File.h:23
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15