bool isOpened() const;
File::Mode mode() const;
- std::string filename() const;
-
bool open(const std::string &filename, File::Mode mode);
bool write(const void *buffer, size_t length);
bool read(void *buffer, size_t length);
virtual int rawPercentRead() = 0;
protected:
- std::string m_filename;
File::Mode m_mode;
bool m_isOpened;
};
return m_mode;
}
-inline std::string File::filename() const
-{
- return m_filename;
-}
-
inline bool File::open(const std::string &filename, File::Mode mode)
{
if (m_isOpened) {