xo-alloc/xo-process/src/process/UpxEvent.cpp
Roland Conybeare 2450ab4ed9 Add 'xo-process/' from commit '7cfc560f02'
git-subtree-dir: xo-process
git-subtree-mainline: abd08e3491
git-subtree-split: 7cfc560f02
2025-05-11 16:10:34 -05:00

45 lines
1 KiB
C++

/* @file UpxEvent.cpp */
#include "UpxEvent.hpp"
#include "xo/reflect/StructReflector.hpp"
#include "xo/indentlog/scope.hpp"
#include "xo/indentlog/print/tag.hpp"
namespace xo {
using xo::reflect::StructReflector;
using xo::tostr;
using xo::xtag;
namespace process {
UpxEvent::UpxEvent() = default;
void
UpxEvent::reflect_self()
{
StructReflector<UpxEvent> sr;
if (sr.is_incomplete()) {
//REFLECT_MEMBER(sr, contents);
REFLECT_MEMBER(sr, tm);
REFLECT_MEMBER(sr, upx);
}
} /*reflect_self*/
void
UpxEvent::display(std::ostream & os) const
{
os << "<UpxEvent"
<< xtag("tm", this->tm())
<< xtag("x", this->upx())
<< ">";
} /*display*/
std::string
UpxEvent::display_string() const {
return tostr(*this);
} /*display_string*/
} /*namespace process*/
} /*namespace xo*/
/* end UpxEvent.cpp */