查看单个帖子
旧 2009-05-04, 07:15 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】decompose oddbblockreference

decompose oddbblockreference?
decompose oddbblockreference?
hello!
is there any way to decompose a oddbblockreference to get all the entities in it as single?
i use dd 1.13.02
thanks!
jörg

oddbblockreference::explode()
sincerely yours,
george udov

thanks, now it works!
here is my code:
code:
voidfff"> dump(oddbentity* pent, std(ostream) & os) const
{
oddbblockreferenceptr pblkref = pent;
odrxobjectptrarray entityset;
pblkref->explode(entityset);
oddbentityptr psubent;
forfff">(intfff"> i = 0; i < entityset.length(); i++)
{
psubent = entityset.at(i);

// retrieve the registered protocol extension object
// registered for this object type
odsmartptr<oddbentity_dumper> pentdumper = psubent;
pentdumper->dump(psubent, os);
}
}
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)