added hability to print in the serialization process

This commit is contained in:
csoler 2017-04-04 14:00:17 +02:00
parent 75a3cf0f3b
commit 059dfcff47
4 changed files with 29 additions and 7 deletions

View file

@ -65,5 +65,13 @@ uint32_t RsSerializer::size(RsItem *item)
return ctx.mSize ;
}
void RsSerializer::print(RsItem *item)
{
SerializeContext ctx(NULL,0);
std::cerr << "***** RsItem class: \"" << typeid(*item).name() << "\" *****" << std::endl;
item->serial_process(RsItem::PRINT, ctx) ;
std::cerr << "******************************" << std::endl;
}