Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gauthier Quesnel
irritator
Commits
a5f5e678
Commit
a5f5e678
authored
Apr 28, 2020
by
Gauthier Quesnel
Browse files
io: fix generator read/write operator
parent
a89e122c
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/include/irritator/io.hpp
View file @
a5f5e678
...
...
@@ -157,6 +157,11 @@ private:
return
true
;
}
if
(
dynamics_name
==
"accumulator_2"
)
{
*
type
=
dynamics_type
::
accumulator_2
;
return
true
;
}
if
(
dynamics_name
==
"time_func"
)
{
*
type
=
dynamics_type
::
time_func
;
return
true
;
...
...
@@ -282,8 +287,7 @@ private:
bool
read
(
generator
&
dyn
)
noexcept
{
return
!!
(
is
>>
dyn
.
default_value
>>
dyn
.
default_period
>>
dyn
.
default_offset
);;
dyn
.
default_offset
);
}
bool
read
(
constant
&
dyn
)
noexcept
...
...
@@ -464,8 +468,9 @@ private:
void
write
(
const
generator
&
dyn
)
noexcept
{
os
<<
"generator"
<<
dyn
.
default_value
<<
' '
<<
dyn
.
default_period
<<
' '
<<
dyn
.
default_offset
<<
'\n'
;;
os
<<
"generator "
<<
dyn
.
default_value
<<
' '
<<
dyn
.
default_period
<<
' '
<<
dyn
.
default_offset
<<
'\n'
;
;
}
void
write
(
const
constant
&
dyn
)
noexcept
...
...
@@ -576,4 +581,3 @@ public:
}
// namespace irt
#endif
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