Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
d7aa181a
Commit
d7aa181a
authored
Aug 23, 2005
by
Amy Squillacote
Browse files
BUG: fixing bug #2175 - tabs are valid as whitespace in EnSight case files
parent
3486bf78
Changes
2
Hide whitespace changes
Inline
Side-by-side
IO/vtkEnSightReader.cxx
View file @
d7aa181a
...
...
@@ -28,7 +28,7 @@
#include
<vtkstd/string>
#include
<vtkstd/vector>
vtkCxxRevisionMacro
(
vtkEnSightReader
,
"1.56"
);
vtkCxxRevisionMacro
(
vtkEnSightReader
,
"1.56
.2.1
"
);
//----------------------------------------------------------------------------
typedef
vtkstd
::
vector
<
vtkSmartPointer
<
vtkIdList
>
>
vtkEnSightReaderCellIdsTypeBase
;
...
...
@@ -516,14 +516,14 @@ int vtkEnSightReader::ReadCaseFile()
{
if
(
strncmp
(
line
,
"model:"
,
6
)
==
0
)
{
if
(
sscanf
(
line
,
" %*s %d%*[ ]%d%*[ ]%s"
,
&
timeSet
,
&
fileSet
,
subLine
)
==
3
)
if
(
sscanf
(
line
,
" %*s %d%*[
\t
]%d%*[
\t
]%s"
,
&
timeSet
,
&
fileSet
,
subLine
)
==
3
)
{
this
->
GeometryTimeSet
=
timeSet
;
this
->
GeometryFileSet
=
fileSet
;
this
->
SetGeometryFileName
(
subLine
);
vtkDebugMacro
(
<<
this
->
GetGeometryFileName
());
}
else
if
(
sscanf
(
line
,
" %*s %d%*[ ]%s"
,
&
timeSet
,
subLine
)
==
2
)
else
if
(
sscanf
(
line
,
" %*s %d%*[
\t
]%s"
,
&
timeSet
,
subLine
)
==
2
)
{
this
->
GeometryTimeSet
=
timeSet
;
this
->
SetGeometryFileName
(
subLine
);
...
...
@@ -537,14 +537,14 @@ int vtkEnSightReader::ReadCaseFile()
}
else
if
(
strncmp
(
line
,
"measured:"
,
9
)
==
0
)
{
if
(
sscanf
(
line
,
" %*s %d%*[ ]%d%*[ ]%s"
,
&
timeSet
,
&
fileSet
,
subLine
)
==
3
)
if
(
sscanf
(
line
,
" %*s %d%*[
\t
]%d%*[
\t
]%s"
,
&
timeSet
,
&
fileSet
,
subLine
)
==
3
)
{
this
->
MeasuredTimeSet
=
timeSet
;
this
->
MeasuredFileSet
=
fileSet
;
this
->
SetMeasuredFileName
(
subLine
);
vtkDebugMacro
(
<<
this
->
GetMeasuredFileName
());
}
else
if
(
sscanf
(
line
,
" %*s %d%*[ ]%s"
,
&
timeSet
,
subLine
)
==
2
)
else
if
(
sscanf
(
line
,
" %*s %d%*[
\t
]%s"
,
&
timeSet
,
subLine
)
==
2
)
{
this
->
MeasuredTimeSet
=
timeSet
;
this
->
SetMeasuredFileName
(
subLine
);
...
...
IO/vtkGenericEnSightReader.cxx
View file @
d7aa181a
...
...
@@ -30,7 +30,7 @@
#include
<assert.h>
#include
<ctype.h>
/* isspace */
vtkCxxRevisionMacro
(
vtkGenericEnSightReader
,
"1.72"
);
vtkCxxRevisionMacro
(
vtkGenericEnSightReader
,
"1.72
.2.1
"
);
vtkStandardNewMacro
(
vtkGenericEnSightReader
);
vtkCxxSetObjectMacro
(
vtkGenericEnSightReader
,
TimeSets
,
...
...
@@ -354,7 +354,7 @@ int vtkGenericEnSightReader::DetermineEnSightVersion()
fileSet
=
xfileSet
;
this
->
SetGeometryFileName
(
subLine
);
}
else
if
(
sscanf
(
line
,
" %*s %d%*[ ]%s"
,
&
xtimeSet
,
subLine
)
==
2
)
else
if
(
sscanf
(
line
,
" %*s %d%*[
\t
]%s"
,
&
xtimeSet
,
subLine
)
==
2
)
{
timeSet
=
xtimeSet
;
this
->
SetGeometryFileName
(
subLine
);
...
...
@@ -455,7 +455,7 @@ int vtkGenericEnSightReader::DetermineEnSightVersion()
fileSet
=
xfileSet
;
this
->
SetGeometryFileName
(
subLine
);
}
else
if
(
sscanf
(
line
,
" %*s %d%*[ ]%s"
,
&
xtimeSet
,
subLine
)
==
2
)
else
if
(
sscanf
(
line
,
" %*s %d%*[
\t
]%s"
,
&
xtimeSet
,
subLine
)
==
2
)
{
timeSet
=
xtimeSet
;
this
->
SetGeometryFileName
(
subLine
);
...
...
Write
Preview
Supports
Markdown
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