Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenVolumeMesh
OpenVolumeMesh
Commits
77d3df03
Commit
77d3df03
authored
Oct 11, 2016
by
Max Lyon
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mheistermann/OpenVolumeMesh-serialization-errhandling'
parents
13fa0e32
ce70a000
Pipeline
#3023
passed with stage
in 3 minutes and 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
src/OpenVolumeMesh/FileManager/FileManagerT.cc
src/OpenVolumeMesh/FileManager/FileManagerT.cc
+8
-1
No files found.
src/OpenVolumeMesh/FileManager/FileManagerT.cc
View file @
77d3df03
...
...
@@ -513,8 +513,15 @@ void FileManager::writeProps(std::ostream& _ostr, const IteratorT& _begin, const
continue
;
}
std
::
string
type_name
;
try
{
type_name
=
(
*
p_it
)
->
typeNameWrapper
();
}
catch
(
std
::
runtime_error
&
e
)
{
// type not serializable
std
::
cerr
<<
"Failed to save property, skipping: "
<<
e
.
what
()
<<
std
::
endl
;
continue
;
}
_ostr
<<
(
*
p_it
)
->
entityType
()
<<
" "
;
_ostr
<<
(
*
p_it
)
->
type
N
ame
Wrapper
()
<<
" "
;
_ostr
<<
type
_n
ame
<<
" "
;
_ostr
<<
"
\"
"
<<
(
*
p_it
)
->
name
()
<<
"
\"
"
<<
std
::
endl
;
(
*
p_it
)
->
serialize
(
_ostr
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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