# HG changeset patch # User Nicolas Saunier # Date 1317336580 14400 # Node ID 4eb13ed73d840e2a6f51fd681a85ac3293116295 # Parent 50964af05a803896f7ccce62395804b54864d408 tests on reading and printing trajectories from database diff -r 50964af05a80 -r 4eb13ed73d84 c/feature-based-tracking.cpp --- a/c/feature-based-tracking.cpp Thu Sep 29 03:12:59 2011 -0400 +++ b/c/feature-based-tracking.cpp Thu Sep 29 18:49:40 2011 -0400 @@ -17,7 +17,6 @@ #include #include -//#include #include using namespace std; @@ -258,8 +257,11 @@ cout << trajectories.size() << endl; success = trajectoryDB->read(trajectories, "positions"); cout << trajectories.size() << endl; - cout << trajectories[0]->size() << endl; - //cout << trajectories[0]->getPoint(0) << endl; + for (int i=0; i<5; ++i) { + stringstream ss; + ss << *trajectories[i]; + cout << ss.str() << endl; + } trajectoryDB->endTransaction(); trajectoryDB->disconnect(); }