Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LEFEBVREJP email
radix
Commits
f60d8514
Commit
f60d8514
authored
Oct 08, 2018
by
Purves, Murray
Browse files
eafstream: Adding manual override function to bytesWritten and bytesRead
parent
f8846673
Changes
2
Hide whitespace changes
Inline
Side-by-side
radixio/eafstream.cc
View file @
f60d8514
...
...
@@ -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
()
{
...
...
radixio/eafstream.hh
View file @
f60d8514
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment