initial implementation
This commit is contained in:
commit
51818852a4
11 changed files with 1181 additions and 0 deletions
32
src/simulator/SourceTimestamp.cpp
Normal file
32
src/simulator/SourceTimestamp.cpp
Normal 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", ref::rp<ReactorSource>(src_));
|
||||
os << ">";
|
||||
} /*display*/
|
||||
|
||||
std::string
|
||||
SourceTimestamp::display_string() const
|
||||
{
|
||||
return tostr(*this);
|
||||
} /*display_string*/
|
||||
} /*namespace sim*/
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end SourceTimestamp.cpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue