30 if (getContextPointer() || getControlInfo())
31 throw cRuntimeError(
this,
"netPack(): cannot pack object with "
32 "contextPointer or controlInfo set");
33 if (getParList().size() > 0) {
35 b->packObject(&getParList());
48 if (netBuffer != NULL) {
53 ASSERT(getShareCount() == 0);
56 cArray *parlistptr =
static_cast<cArray*
>(b->unpackObject());
57 std::cout <<
"still there: " << *parlistptr << std::endl;
58 for (
int i=0; i<parlistptr->size(); i++) {
59 std::cout <<
"i: " << i <<
" " << parlistptr->get(i) << std::endl;
60 addObject(static_cast<cObject*>(parlistptr->get(i)->dup()));
66 encapsulate((cPacket *) b->unpackObject());