Commit 41e8907d authored by K-H-Ismail's avatar K-H-Ismail Committed by Gauthier Quesnel
Browse files

io: add flow model io (minimal and not working)

parent 405a9097
......@@ -146,6 +146,11 @@ private:
return true;
}
if (dynamics_name == "flow") {
*type = dynamics_type::flow;
return true;
}
return false;
}
......@@ -359,6 +364,11 @@ private:
return true;
}
bool read(flow& dyn) noexcept
{
return !!(is >> dyn.default_value);
}
};
struct writer
......@@ -587,6 +597,11 @@ private:
os << "time_func "
<< (dyn.default_f == &time_function ? "time\n" : "square\n");
}
void write(const flow& dyn) noexcept
{
os << "flow " << dyn.default_value << '\n';
}
};
class dot_writer
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment