Пример #1
0
pwr_sAttrRef wb_bdrep::aref()
{
  pwr_tStatus sts;
  pwr_sObjBodyDef body;

  m_orep->vrep()->readBody( &sts, m_orep, pwr_eBix_sys, (void *) &body);
  if ( EVEN(sts)) throw wb_error(sts);

  pwr_sAttrRef aref;
  
  aref.Objid = pwr_cNOid;
  aref.Body = cdh_oixToBix( m_orep->oid().oix);
  aref.Offset = 0;
  aref.Size = body.Size;
  aref.Flags.m = 0;  // ?? Is this right?

  return aref;
}
Пример #2
0
pwr_eBix wb_adrep::bix()
{
  return (pwr_eBix) cdh_oixToBix( m_orep->oid().oix);
}