Commit f60d8514 authored by Purves, Murray's avatar Purves, Murray
Browse files

eafstream: Adding manual override function to bytesWritten and bytesRead

parent f8846673
......@@ -571,8 +571,13 @@ void eafstream::writeString(const std::string &var)
* \return int
*/
int eafstream::bytesRead() const { return mBytesRead; } // bytesRead
void eafstream::setBytesRead(int bytesRead) { mBytesRead = bytesRead; }
int eafstream::bytesWritten() const { return mBytesWritten; }
void eafstream::setBytesWritten(int bytesWritten)
{
mBytesWritten = bytesWritten;
}
int eafstream::readHeader()
{
......
......@@ -94,17 +94,20 @@ class RADIX_PUBLIC eafstream : public std::fstream
*/
std::string readString(int size);
void writeString(const std::string &var);
/**
* \brief Returns the number of bytes read since the last header marker
* \return int
*/
int bytesRead() const;
void setBytesRead(int bytesRead);
/**
* \brief Returns the number of bytes written since the last header marker
* \return int
*/
int bytesWritten() const;
void setBytesWritten(int bytesWritten);
/**
* @brief readHeader Reads and returns the fortran header record
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment