WSL/SLF GitLab Repository
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
snow-models
meteoio
Commits
8bc969e1
Commit
8bc969e1
authored
Apr 14, 2014
by
Nander Wever
Browse files
Correcting a rather persistent (and irritating) typo.
parent
82fbd7ce
Changes
5
Hide whitespace changes
Inline
Side-by-side
meteoio/plugins/ARCIO.cc
View file @
8bc969e1
...
...
@@ -182,7 +182,7 @@ void ARCIO::read2DGrid_internal(Grid2DObject& grid_out, const std::string& full_
fin
.
open
(
full_name
.
c_str
(),
ifstream
::
in
);
if
(
fin
.
fail
())
{
ostringstream
ss
;
ss
<<
"Error open
n
ing file
\"
"
<<
full_name
<<
"
\"
, possible reason: "
<<
strerror
(
errno
);
ss
<<
"Error opening file
\"
"
<<
full_name
<<
"
\"
, possible reason: "
<<
strerror
(
errno
);
throw
FileAccessException
(
ss
.
str
(),
AT
);
}
...
...
@@ -335,7 +335,7 @@ void ARCIO::write2DGrid(const Grid2DObject& grid_in, const std::string& name)
fout
.
open
(
full_name
.
c_str
());
if
(
fout
.
fail
())
{
ostringstream
ss
;
ss
<<
"Error open
n
ing file
\"
"
<<
full_name
<<
"
\"
, possible reason: "
<<
strerror
(
errno
);
ss
<<
"Error opening file
\"
"
<<
full_name
<<
"
\"
, possible reason: "
<<
strerror
(
errno
);
throw
FileAccessException
(
ss
.
str
(),
AT
);
}
...
...
meteoio/plugins/GRIBIO.cc
View file @
8bc969e1
...
...
@@ -431,7 +431,7 @@ void GRIBIO::read2DGrid(Grid2DObject& grid_out, const std::string& i_name)
fp
=
fopen
(
filename
.
c_str
(),
"r"
);
if
(
fp
==
NULL
)
{
ostringstream
ss
;
ss
<<
"Error open
n
ing file
\"
"
<<
filename
<<
"
\"
, possible reason: "
<<
strerror
(
errno
);
ss
<<
"Error opening file
\"
"
<<
filename
<<
"
\"
, possible reason: "
<<
strerror
(
errno
);
throw
FileAccessException
(
ss
.
str
(),
AT
);
}
...
...
@@ -458,7 +458,7 @@ void GRIBIO::indexFile(const std::string& filename)
fp
=
fopen
(
filename
.
c_str
(),
"r"
);
if
(
fp
==
NULL
)
{
ostringstream
ss
;
ss
<<
"Error open
n
ing file
\"
"
<<
filename
<<
"
\"
, possible reason: "
<<
strerror
(
errno
);
ss
<<
"Error opening file
\"
"
<<
filename
<<
"
\"
, possible reason: "
<<
strerror
(
errno
);
throw
FileAccessException
(
ss
.
str
(),
AT
);
}
...
...
meteoio/plugins/PGMIO.cc
View file @
8bc969e1
...
...
@@ -114,7 +114,7 @@ void PGMIO::read2DGrid_internal(Grid2DObject& grid_out, const std::string& full_
fin
.
open
(
full_name
.
c_str
(),
ifstream
::
in
);
if
(
fin
.
fail
())
{
ostringstream
ss
;
ss
<<
"Error open
n
ing file
\"
"
<<
full_name
<<
"
\"
, possible reason: "
<<
strerror
(
errno
);
ss
<<
"Error opening file
\"
"
<<
full_name
<<
"
\"
, possible reason: "
<<
strerror
(
errno
);
throw
FileAccessException
(
ss
.
str
(),
AT
);
}
...
...
@@ -249,7 +249,7 @@ void PGMIO::write2DGrid(const Grid2DObject& grid_in, const std::string& name)
fout
.
open
(
full_name
.
c_str
());
if
(
fout
.
fail
())
{
ostringstream
ss
;
ss
<<
"Error open
n
ing file
\"
"
<<
full_name
<<
"
\"
, possible reason: "
<<
strerror
(
errno
);
ss
<<
"Error opening file
\"
"
<<
full_name
<<
"
\"
, possible reason: "
<<
strerror
(
errno
);
throw
FileAccessException
(
ss
.
str
(),
AT
);
}
...
...
meteoio/plugins/PNGIO.cc
View file @
8bc969e1
...
...
@@ -320,7 +320,7 @@ void PNGIO::setFile(const std::string& filename, png_structp& png_ptr, png_infop
fp
=
fopen
(
filename
.
c_str
(),
"wb"
);
if
(
fp
==
NULL
)
{
ostringstream
ss
;
ss
<<
"Error open
n
ing file
\"
"
<<
filename
<<
"
\"
, possible reason: "
<<
strerror
(
errno
);
ss
<<
"Error opening file
\"
"
<<
filename
<<
"
\"
, possible reason: "
<<
strerror
(
errno
);
throw
FileAccessException
(
ss
.
str
(),
AT
);
}
...
...
meteoio/plugins/libsmet.cc
View file @
8bc969e1
...
...
@@ -420,7 +420,7 @@ void SMETWriter::write(const std::vector<std::string>& vec_timestamp, const std:
fout
.
open
(
filename
.
c_str
(),
ios
::
binary
);
if
(
fout
.
fail
())
{
ostringstream
ss
;
ss
<<
"Error open
n
ing file
\"
"
<<
filename
<<
"
\"
for writing, possible reason: "
<<
strerror
(
errno
);
ss
<<
"Error opening file
\"
"
<<
filename
<<
"
\"
for writing, possible reason: "
<<
strerror
(
errno
);
throw
SMETException
(
ss
.
str
(),
SMET_AT
);
}
...
...
@@ -466,7 +466,7 @@ void SMETWriter::write(const std::vector<double>& data)
fout
.
open
(
filename
.
c_str
(),
ios
::
binary
);
if
(
fout
.
fail
())
{
ostringstream
ss
;
ss
<<
"Error open
n
ing file
\"
"
<<
filename
<<
"
\"
for writing, possible reason: "
<<
strerror
(
errno
);
ss
<<
"Error opening file
\"
"
<<
filename
<<
"
\"
for writing, possible reason: "
<<
strerror
(
errno
);
throw
SMETException
(
ss
.
str
(),
SMET_AT
);
}
...
...
@@ -663,7 +663,7 @@ SMETReader::SMETReader(const std::string& in_fname)
fin
.
open
(
filename
.
c_str
(),
ios
::
in
|
ios
::
binary
);
//ascii does end of line translation, which messes up the pointer code
if
(
fin
.
fail
())
{
ostringstream
ss
;
ss
<<
"Error open
n
ing file
\"
"
<<
filename
<<
"
\"
for reading, possible reason: "
<<
strerror
(
errno
);
ss
<<
"Error opening file
\"
"
<<
filename
<<
"
\"
for reading, possible reason: "
<<
strerror
(
errno
);
ss
<<
" Please check file existence and permissions!"
;
throw
SMETException
(
ss
.
str
(),
SMET_AT
);
}
...
...
@@ -968,7 +968,7 @@ void SMETReader::read(std::vector<std::string>& vec_timestamp, std::vector<doubl
fin
.
open
(
filename
.
c_str
(),
ios
::
in
|
ios
::
binary
);
//ascii mode messes up pointer code on windows (automatic eol translation)
if
(
fin
.
fail
())
{
ostringstream
ss
;
ss
<<
"Error open
n
ing file
\"
"
<<
filename
<<
"
\"
for reading, possible reason: "
<<
strerror
(
errno
);
ss
<<
"Error opening file
\"
"
<<
filename
<<
"
\"
for reading, possible reason: "
<<
strerror
(
errno
);
throw
SMETException
(
ss
.
str
(),
SMET_AT
);
}
...
...
@@ -1019,7 +1019,7 @@ void SMETReader::read(std::vector<double>& vec_data)
fin
.
open
(
filename
.
c_str
(),
mode
);
if
(
fin
.
fail
())
{
ostringstream
ss
;
ss
<<
"Error open
n
ing file
\"
"
<<
filename
<<
"
\"
for reading, possible reason: "
<<
strerror
(
errno
);
ss
<<
"Error opening file
\"
"
<<
filename
<<
"
\"
for reading, possible reason: "
<<
strerror
(
errno
);
throw
SMETException
(
ss
.
str
(),
SMET_AT
);
}
...
...
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