7 #ifndef CAFU_FILESYS_FILE_LOCAL_HPP_INCLUDED
8 #define CAFU_FILESYS_FILE_LOCAL_HPP_INCLUDED
24 LocalInFileT(
const std::string& BaseName_,
const std::string& FullName_);
32 uint32_t
Read(
char* Buffer, uint32_t Size);
40 mutable std::ifstream ifs;
49 LocalOutFileT(
const std::string& BaseName_,
const std::string& FullName_);
57 void Write(
const char* Buffer, uint32_t Size);
64 mutable std::ofstream ofs;
void Write(const char *Buffer, uint32_t Size)
Writes the contents of Buffer, which has size Size, into the file.
Definition: File_local.cpp:144
bool Seek(int32_t Offset, SeekFromT SeekFrom)
Modifies the position of the read/write pointer in the file.
Definition: File_local.cpp:131
uint32_t Read(char *Buffer, uint32_t Size)
Reads Size bytes into the Buffer.
Definition: File_local.cpp:70
const std::string & GetFullName() const
Returns the full name of this file.
Definition: File_local.cpp:40
uint64_t GetSize() const
Returns the size of the file.
Definition: File_local.cpp:78
bool IsOpen() const
Returns whether the file has successfully been opened and is still open.
Definition: File_local.cpp:99
LocalInFileT(const std::string &BaseName_, const std::string &FullName_)
Constructor.
Definition: File_local.cpp:12
LocalOutFileT(const std::string &BaseName_, const std::string &FullName_)
Constructor.
Definition: File_local.cpp:91
uint64_t GetPos() const
Returns the current read/write position in the file.
Definition: File_local.cpp:46
SeekFromT
The values of this enumeration define from where the seek operation applies the offset.
Definition: File.hpp:28
Definition: File_local.hpp:19
const std::string & GetBaseName() const
Returns the base name of this file. The base name is relative to and agnostic of the file system this...
Definition: File_local.cpp:113
bool IsOpen() const
Returns whether the file has successfully been opened and is still open.
Definition: File_local.cpp:20
Definition: File_local.hpp:44
const std::string & GetBaseName() const
Returns the base name of this file. The base name is relative to and agnostic of the file system this...
Definition: File_local.cpp:34
bool Seek(int32_t Offset, SeekFromT SeekFrom)
Modifies the position of the read/write pointer in the file.
Definition: File_local.cpp:52
const std::string & GetFullName() const
Returns the full name of this file.
Definition: File_local.cpp:119
uint64_t GetPos() const
Returns the current read/write position in the file.
Definition: File_local.cpp:125