#include #include #include #include "tdb.h" #include "s.C" int main(int ac, char **av) { int ret; setbuf(stdout,0); theDb db; db.open(av[1]); //db.access(av[1], 34543, 0); if( !db.opened() || db.error() ) exit(1); Video_frameLoc::rkey_Frame_weight key(db.video_frame); if( !(ret=key.First()) ) do { printf("%6d %f %f %f %f %f\n", db.video_frame.id(), db.video_frame.Frame_mean(), db.video_frame.Frame_std_dev(), db.video_frame.Frame_cx(), db.video_frame.Frame_cy(), db.video_frame.Frame_moment()); } while( !(ret=key.Next()) ); db.close(); return 0; }