Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
OPAL
src
Commits
ae6eeff9
Commit
ae6eeff9
authored
Feb 17, 2020
by
kraus
Browse files
much simpler solution
parent
5c4029a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
37 deletions
+1
-37
src/Structure/SDDSColumn.cpp
src/Structure/SDDSColumn.cpp
+1
-37
No files found.
src/Structure/SDDSColumn.cpp
View file @
ae6eeff9
...
...
@@ -38,43 +38,7 @@ void SDDSColumn::writeValue(std::ostream& os) const {
"value for column '"
+
name_m
+
"' isn't set"
);
}
std
::
set
<
std
::
ios_base
::
fmtflags
>
independentFlags
({
std
::
ios_base
::
boolalpha
,
std
::
ios_base
::
showbase
,
std
::
ios_base
::
showpoint
,
std
::
ios_base
::
showpos
,
std
::
ios_base
::
skipws
,
std
::
ios_base
::
unitbuf
,
std
::
ios_base
::
uppercase
});
std
::
set
<
std
::
ios_base
::
fmtflags
>
numericalBase
({
std
::
ios_base
::
dec
,
std
::
ios_base
::
hex
,
std
::
ios_base
::
oct
});
std
::
set
<
std
::
ios_base
::
fmtflags
>
floatFormat
({
std
::
ios_base
::
fixed
,
std
::
ios_base
::
scientific
});
std
::
set
<
std
::
ios_base
::
fmtflags
>
adjustmentFlags
({
std
::
ios_base
::
internal
,
std
::
ios_base
::
left
,
std
::
ios_base
::
right
});
for
(
std
::
ios_base
::
fmtflags
flag
:
independentFlags
){
if
(
writeFlags_m
&
flag
)
{
os
.
setf
(
flag
);
}
}
for
(
std
::
ios_base
::
fmtflags
flag
:
numericalBase
)
{
if
(
writeFlags_m
&
flag
)
{
os
.
setf
(
flag
,
std
::
ios_base
::
basefield
);
}
}
for
(
std
::
ios_base
::
fmtflags
flag
:
floatFormat
)
{
if
(
writeFlags_m
&
flag
)
{
os
.
setf
(
flag
,
std
::
ios_base
::
floatfield
);
}
}
for
(
std
::
ios_base
::
fmtflags
flag
:
adjustmentFlags
)
{
if
(
writeFlags_m
&
flag
)
{
os
.
setf
(
flag
,
std
::
ios_base
::
adjustfield
);
}
}
os
.
flags
(
writeFlags_m
);
os
.
precision
(
writePrecision_m
);
os
<<
value_m
<<
std
::
setw
(
10
)
<<
"
\t
"
;
set_m
=
false
;
...
...
kraus
@kraus
mentioned in commit
07a0788e
·
Feb 18, 2020
mentioned in commit
07a0788e
mentioned in commit 07a0788ed7436385df85cfc94fab142159e6b500
Toggle commit list
kraus
@kraus
mentioned in merge request
!285 (merged)
·
Feb 18, 2020
mentioned in merge request
!285 (merged)
mentioned in merge request !285
Toggle commit list
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