Skip to content
GitLab
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
f6d0a59f
Commit
f6d0a59f
authored
Apr 27, 2020
by
K-H-Ismail
Committed by
Gauthier Quesnel
Apr 28, 2020
Browse files
io: add accumulator_2 writer reader and adapt generator w/r
parent
cd7f081d
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/include/irritator/io.hpp
View file @
f6d0a59f
...
...
@@ -279,9 +279,11 @@ private:
return
true
;
}
bool
read
(
generator
&
/*
dyn
*/
)
noexcept
bool
read
(
generator
&
dyn
)
noexcept
{
return
true
;
return
!!
(
is
>>
dyn
.
default_value
>>
dyn
.
default_period
>>
dyn
.
default_offset
);;
}
bool
read
(
constant
&
dyn
)
noexcept
...
...
@@ -294,6 +296,11 @@ private:
return
!!
(
is
>>
dyn
.
default_threshold
);
}
bool
read
(
accumulator_2
&
/*dyn*/
)
noexcept
{
return
true
;
}
bool
read
(
time_func
&
dyn
)
noexcept
{
if
(
!
(
is
>>
temp_1
))
...
...
@@ -455,9 +462,10 @@ private:
os
<<
"counter
\n
"
;
}
void
write
(
const
generator
&
/*
dyn
*/
)
noexcept
void
write
(
const
generator
&
dyn
)
noexcept
{
os
<<
"generator
\n
"
;
os
<<
"generator"
<<
dyn
.
default_value
<<
' '
<<
dyn
.
default_period
<<
' '
<<
dyn
.
default_offset
<<
'\n'
;;
}
void
write
(
const
constant
&
dyn
)
noexcept
...
...
@@ -470,6 +478,11 @@ private:
os
<<
"cross "
<<
dyn
.
default_threshold
<<
'\n'
;
}
void
write
(
const
accumulator_2
&
/*dyn*/
)
noexcept
{
os
<<
"accumulator_2
\n
"
;
}
void
write
(
const
time_func
&
dyn
)
noexcept
{
os
<<
"time_func "
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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