Commit 4b7f0b8a authored by lw's avatar lw

*** empty log message ***

parent ec4d7ed4
......@@ -338,3 +338,36 @@ wb_vrepdbs::delete_wb_orepdbs(void *p)
{
free(p);
}
void
wb_vrepdbs::objectName(wb_orep *o, char *str) const
{
#if 0
*str = 0;
// Count ancestors
int cnt = 0;
wb_wblnode *n = ((wb_orepwbl *)o)->wblNode();
while ( n) {
cnt++;
n = n->o_fth;
}
wb_wblnode **vect = (wb_wblnode **) calloc( cnt, sizeof(vect));
n = ((wb_orepwbl *)o)->wblNode();
for ( int i = 0; i < cnt; i++) {
vect[i] = n;
n = n->o_fth;
}
for ( int i = cnt - 1; i >= 0; i--) {
strcat( str, vect[i]->name);
if ( i == cnt - 1)
strcat( str, ":");
else if ( i != 0)
strcat( str, "-");
}
free( vect);
#endif
}
......@@ -24,6 +24,8 @@ public:
wb_vrepdbs(wb_erep *erep, const char *fileName);
dbs_sEnv *dbsenv();
bool load();
void objectName(wb_orep *o, char *str) const;
virtual void unref();
virtual wb_vrep *ref();
......
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