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
73f84803
Commit
73f84803
authored
Mar 27, 2018
by
LEFEBVREJP email
Browse files
Fixing windows i/o issue with f71stream.
parent
4cf5ed99
Pipeline
#12744
passed with stages
in 8 minutes and 56 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
radixio/f71stream.cc
View file @
73f84803
...
...
@@ -7,7 +7,7 @@ namespace radix
{
F71Stream
::
F71Stream
(
const
std
::
string
&
file
)
:
mFile
(
file
)
,
mStream
(
file
.
c_str
())
,
mStream
(
file
.
c_str
()
,
std
::
ios
::
binary
|
std
::
ios
::
in
)
{
mStream
.
setReverseBytes
(
false
);
}
...
...
radixio/f71stream.i.hh
View file @
73f84803
...
...
@@ -89,7 +89,7 @@ bool F71Stream::read_case(f71case_type& inventory)
// check if the file is open
if
(
!
mStream
.
is_open
())
{
mStream
.
open
(
mFile
.
c_str
(),
std
::
ios
::
binary
);
mStream
.
open
(
mFile
.
c_str
(),
std
::
ios
::
binary
|
std
::
ios
::
in
);
}
if
(
!
mStream
.
is_open
())
{
...
...
radixio/tests/tstF71Stream.cc
View file @
73f84803
...
...
@@ -8,7 +8,8 @@ using namespace radix;
TEST
(
Radixio
,
F71Stream
)
{
// test reading a scale 6.1 formated f71 file from DELFIC
F71Stream
stream
(
std
::
string
(
dirname
(
__FILE__
)
+
"/data/test.s61.f71"
));
F71Stream
stream
(
radix
::
to_native_path
(
std
::
string
(
dirname
(
__FILE__
)
+
"/data/test.s61.f71"
)));
std
::
vector
<
F71Case
>
cases
;
bool
result
=
true
;
while
(
result
)
...
...
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