Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Kirill Terekhov
INMOST
Commits
d2562ffa
Commit
d2562ffa
authored
Oct 20, 2020
by
Kirill Terekhov
Browse files
fix file options for tags from previous commit
parent
d075c63f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/IO/mesh_file.cpp
View file @
d2562ffa
...
...
@@ -79,16 +79,20 @@ namespace INMOST
split_string
(
file_options
[
k
].
first
,
name_split
,
":"
);
if
(
name_split
[
0
]
==
"Tag"
)
{
//~ std::cout << "Tag option " << file_options[k].first << " value " << file_options[k].second << " tag " << name_split[1] << " searching " << name << std::endl;
split_string
(
file_options
[
k
].
second
,
value_split
,
","
);
for
(
size_t
q
=
0
;
q
<
value_split
.
size
();
++
q
)
{
if
(
value_split
[
q
]
==
name
)
{
//~ std::cout << "found!" << std::endl;
ret
.
insert
(
name_split
[
1
]);
break
;
}
}
value_split
.
clear
();
}
name_split
.
clear
();
}
return
ret
;
}
...
...
@@ -106,7 +110,7 @@ namespace INMOST
bool
Mesh
::
CheckSaveSkip
(
std
::
string
name
,
const
std
::
set
<
std
::
string
>
&
nosave
,
const
std
::
set
<
std
::
string
>
&
saveonly
)
const
{
bool
skip
=
false
;
if
(
saveonly
.
empty
()
&&
saveonly
.
find
(
name
)
==
saveonly
.
end
()
)
if
(
!
saveonly
.
empty
()
&&
saveonly
.
find
(
name
)
==
saveonly
.
end
()
)
skip
=
true
;
else
if
(
nosave
.
find
(
name
)
!=
nosave
.
end
()
)
skip
=
true
;
...
...
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