Commit 617a312c authored by ml's avatar ml

*** empty log message ***

parent b4c01e7f
......@@ -71,7 +71,7 @@ int wb_adef::offset()
return m_adrep->offset();
}
int wb_adef::type()
pwr_eType wb_adef::type()
{
check();
return m_adrep->type();
......@@ -89,6 +89,12 @@ int wb_adef::index()
return m_adrep->index();
}
int wb_adef::flags()
{
check();
return m_adrep->flags();
}
pwr_tOid wb_adef::aoid()
{
check();
......
......@@ -35,9 +35,10 @@ public:
pwr_sAttrRef aref();
size_t size(); // get objects runtime body size
int offset();
int type();
pwr_eType type();
int nElement();
int index();
int flags();
pwr_tOid aoid();
pwr_tAix aix();
pwr_tCid cid();
......
......@@ -76,7 +76,8 @@ wb_cdef& wb_cdef::operator=(const wb_cdef& x)
void wb_cdef::check() const
{
if ( !m_cdrep) throw wb_error(m_sts);
if ( !m_cdrep)
throw wb_error(m_sts);
}
size_t wb_cdef::size()
......
......@@ -90,11 +90,15 @@ wb_object::operator wb_orep*() const
const char *wb_object::name()
{
check("wb_object::name()");
return m_orep->name();
}
wb_name wb_object::longName()
{
check("wb_object::longName()");
return m_orep->longName();
}
......@@ -176,6 +180,19 @@ wb_object wb_object::first()
return o;
}
//
// Get the child with the given name.
//
wb_object wb_object::child( const char* name)
{
check("wb_object::child()");
pwr_tStatus sts = LDH__SUCCESS;
wb_orep *orep = m_orep->child(&sts, name);
wb_object o(sts, orep);
return o;
}
//
// Get the last child of the current object.
//
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment