Add 'xo-simulator/' from commit '3452e68e0c'

git-subtree-dir: xo-simulator
git-subtree-mainline: c9893dfb89
git-subtree-split: 3452e68e0c
This commit is contained in:
Roland Conybeare 2025-05-11 16:00:50 -05:00
commit 77d12d4b91
15 changed files with 1522 additions and 0 deletions

View file

@ -0,0 +1,32 @@
/* file SourceTimestamp.cpp
*
* author: Roland Conybeare, Sep 2022
*/
#include "SourceTimestamp.hpp"
#include "xo/indentlog/print/tag.hpp"
#include "xo/indentlog/print/tostr.hpp"
namespace xo {
using xo::xtag;
using xo::tostr;
namespace sim {
void
SourceTimestamp::display(std::ostream & os) const
{
os << "<SourceTimestamp";
os << xtag("t0", t0_);
os << xtag("src", rp<ReactorSource>(src_));
os << ">";
} /*display*/
std::string
SourceTimestamp::display_string() const
{
return tostr(*this);
} /*display_string*/
} /*namespace sim*/
} /*namespace xo*/
/* end SourceTimestamp.cpp */