Commit 617a312c authored by ml's avatar ml

*** empty log message ***

parent b4c01e7f
...@@ -71,7 +71,7 @@ int wb_adef::offset() ...@@ -71,7 +71,7 @@ int wb_adef::offset()
return m_adrep->offset(); return m_adrep->offset();
} }
int wb_adef::type() pwr_eType wb_adef::type()
{ {
check(); check();
return m_adrep->type(); return m_adrep->type();
...@@ -89,6 +89,12 @@ int wb_adef::index() ...@@ -89,6 +89,12 @@ int wb_adef::index()
return m_adrep->index(); return m_adrep->index();
} }
int wb_adef::flags()
{
check();
return m_adrep->flags();
}
pwr_tOid wb_adef::aoid() pwr_tOid wb_adef::aoid()
{ {
check(); check();
......
...@@ -35,9 +35,10 @@ public: ...@@ -35,9 +35,10 @@ public:
pwr_sAttrRef aref(); pwr_sAttrRef aref();
size_t size(); // get objects runtime body size size_t size(); // get objects runtime body size
int offset(); int offset();
int type(); pwr_eType type();
int nElement(); int nElement();
int index(); int index();
int flags();
pwr_tOid aoid(); pwr_tOid aoid();
pwr_tAix aix(); pwr_tAix aix();
pwr_tCid cid(); pwr_tCid cid();
......
...@@ -76,7 +76,8 @@ wb_cdef& wb_cdef::operator=(const wb_cdef& x) ...@@ -76,7 +76,8 @@ wb_cdef& wb_cdef::operator=(const wb_cdef& x)
void wb_cdef::check() const 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() size_t wb_cdef::size()
......
...@@ -90,11 +90,15 @@ wb_object::operator wb_orep*() const ...@@ -90,11 +90,15 @@ wb_object::operator wb_orep*() const
const char *wb_object::name() const char *wb_object::name()
{ {
check("wb_object::name()");
return m_orep->name(); return m_orep->name();
} }
wb_name wb_object::longName() wb_name wb_object::longName()
{ {
check("wb_object::longName()");
return m_orep->longName(); return m_orep->longName();
} }
...@@ -176,6 +180,19 @@ wb_object wb_object::first() ...@@ -176,6 +180,19 @@ wb_object wb_object::first()
return o; 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. // 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