/* 
../xa/tst_ut_DB.c
*/


#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>

#include <stdarg.h>


/*
DB_dump_dbo 
UT3D_dump_dbo
UTO_dump_s_
*/


//================================================================
  int DB_dump_dbo (int typ, long dbi, char *txx) {
//================================================================
/// DB_dump_dbo              dump DB-object
// see also UT3D_dump_dbo UTO_dump_s_


  int     i1, iNr, oSiz;
  char    oid[40],  *data;


  printf("DB_dump_dbo %d %ld |%s|\n",typ,dbi,txx);

  APED_oid_dbo__  (oid, typ, dbi);

  // get data for dbo
  typ = DB_GetObjDat ((void**)&data, &iNr, typ, dbi);

  oSiz = UTO_siz_stru (typ);

  UTO_dump_s_ (data, txx);

/*
  // dump data
  for(i1=0; i1<iNr; ++i1) {
    UT3D_stru_dump (typ, (void*)data, " %s %s",oid,txx);
    data += oSiz;
  }
*/


  return 0;


}


