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
f130bc85
Commit
f130bc85
authored
Feb 25, 2014
by
Thomas Egger
Browse files
Removing cerr printouts in libsmet
parent
99c544dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
meteoio/plugins/libsmet.cc
View file @
f130bc85
...
...
@@ -865,15 +865,13 @@ void SMETReader::read_header(std::ifstream& fin)
SMETCommon
::
stripComments
(
line
);
SMETCommon
::
readLineToVec
(
line
,
tmpvec
);
checkSignature
(
tmpvec
,
isAscii
);
std
::
cerr
<<
"Line read:"
<<
line
<<
"
\n
"
;
//2. Read Header
while
(
!
fin
.
eof
()
&&
(
fin
.
peek
()
!=
'['
))
{
//skip lines until '[' is found
while
(
!
fin
.
eof
()
&&
(
fin
.
peek
()
!=
'['
))
//skip lines until '[' is found
getline
(
fin
,
line
,
eoln
);
std
::
cerr
<<
"Seek:"
<<
line
<<
"
\n
"
;
}
getline
(
fin
,
line
,
eoln
);
std
::
cerr
<<
"Header line read:"
<<
line
<<
"
\n
"
;
SMETCommon
::
stripComments
(
line
);
SMETCommon
::
trim
(
line
);
SMETCommon
::
toUpper
(
line
);
...
...
@@ -1113,7 +1111,7 @@ void SMETReader::read_data_ascii(std::ifstream& fin, std::vector<std::string>& v
}
current_fpointer
=
tmp_fpointer
;
}
catch
(
SMETException
&
)
{
std
::
cerr
<<
"Error reading file
\"
"
<<
filename
<<
"
\"
at line
\"
"
<<
line
<<
"
\"
"
<<
std
::
endl
;
cerr
<<
"Error reading file
\"
"
<<
filename
<<
"
\"
at line
\"
"
<<
line
<<
"
\"
"
<<
endl
;
throw
;
}
}
else
{
...
...
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