Atoms Crowd  7.0.0
ToolchefsSTL::FileStream Class Reference

Public Types

enum class  Mode : uint8_t { read = 0 , write = 1 , append = 2 }
 
enum class  SeekPosition : uint8_t { Start = 0 , Current = 1 , End = 2 }
 

Public Member Functions

 FileStream (const String &filePath, Mode mode=Mode::read, bool update=false, bool asBinary=true) noexcept
 
 FileStream (FileStream &&rhs) noexcept
 
FileStreamoperator= (FileStream &&rhs) noexcept
 
bool open (const String &filePath, Mode mode=Mode::read, bool update=false, bool asBinary=true)
 
bool openTempFile () noexcept
 
void close () noexcept
 
bool isOpen () const noexcept
 
void seek (int64_t offset, SeekPosition pos=SeekPosition::Current) noexcept
 
int64_t tell () const noexcept
 
size_t read (void *ptr, size_t size, size_t count) const noexcept
 
size_t write (const void *ptr, size_t size, size_t count) noexcept
 
fpos_t getPos () const noexcept
 
void setPos (const fpos_t &pos) noexcept
 
size_t size () noexcept
 
FileStreamoperator<< (const ToolchefsSTL::String &value)
 
FileStreamoperator<< (const char *value)
 
FileStreamoperator<< (const bool value)
 
FileStreamoperator<< (const int8_t value)
 
FileStreamoperator<< (const uint8_t value)
 
FileStreamoperator<< (const int16_t value)
 
FileStreamoperator<< (const uint16_t value)
 
FileStreamoperator<< (const int32_t value)
 
FileStreamoperator<< (const uint32_t value)
 
FileStreamoperator<< (const int64_t value)
 
FileStreamoperator<< (const uint64_t value)
 
FileStreamoperator<< (const float value)
 
FileStreamoperator<< (const double value)
 
FileStreamoperator>> (ToolchefsSTL::String &value)
 
FileStreamoperator>> (bool &value)
 
FileStreamoperator>> (int8_t &value)
 
FileStreamoperator>> (uint8_t &value)
 
FileStreamoperator>> (int16_t &value)
 
FileStreamoperator>> (uint16_t &value)
 
FileStreamoperator>> (int32_t &value)
 
FileStreamoperator>> (uint32_t &value)
 
FileStreamoperator>> (int64_t &value)
 
FileStreamoperator>> (uint64_t &value)
 
FileStreamoperator>> (float &value)
 
FileStreamoperator>> (double &value)
 
String getLine () noexcept
 
String readAll () noexcept
 

The documentation for this class was generated from the following file: