Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
KWSys
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rolf Eike Beer
KWSys
Commits
680ab6d2
Commit
680ab6d2
authored
5 years ago
by
Todd Martin
Browse files
Options
Downloads
Patches
Plain Diff
FStream: Expose is_open publicly
parent
0492cad3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
FStream.hxx.in
+9
-5
9 additions, 5 deletions
FStream.hxx.in
with
9 additions
and
5 deletions
FStream.hxx.in
+
9
−
5
View file @
680ab6d2
...
...
@@ -87,7 +87,7 @@ public:
bool _open(char const* file_name, std::ios_base::openmode mode)
{
if (is_open() || file_) {
if (
_
is_open() || file_) {
return false;
}
# if defined(_MSC_VER)
...
...
@@ -108,7 +108,7 @@ public:
return success;
}
bool is_open()
bool
_
is_open()
{
if (!buf_) {
return false;
...
...
@@ -116,7 +116,7 @@ public:
return buf_->is_open();
}
bool is_open() const
bool
_
is_open() const
{
if (!buf_) {
return false;
...
...
@@ -198,9 +198,11 @@ public:
this->_set_state(this->_open(file_name, mode), this, this);
}
bool is_open() { return this->_is_open(); }
void close() { this->_set_state(this->_close(), this, this); }
using basic_efilebuf<CharType, Traits>::is_open;
using basic_efilebuf<CharType, Traits>::
_
is_open;
internal_buffer_type* rdbuf() const { return this->buf_; }
...
...
@@ -212,7 +214,7 @@ class basic_ofstream
: public std::basic_ostream<CharType, Traits>
, public basic_efilebuf<CharType, Traits>
{
using basic_efilebuf<CharType, Traits>::is_open;
using basic_efilebuf<CharType, Traits>::
_
is_open;
public:
typedef typename basic_efilebuf<CharType, Traits>::internal_buffer_type
...
...
@@ -242,6 +244,8 @@ public:
void close() { this->_set_state(this->_close(), this, this); }
bool is_open() { return this->_is_open(); }
internal_buffer_type* rdbuf() const { return this->buf_; }
~basic_ofstream() @KWSYS_NAMESPACE@_FStream_NOEXCEPT { close(); }
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment