Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

void Impala::Application::VideoExcel::TableDataSourceSqliteDb::Init ( std::string  database,
bool  readonly 
) [inline, private]

Definition at line 238 of file TableDataSourceSqliteDb.h.

References Impala::Application::VideoExcel::TableDataSource::AddColumn(), GetNrOfImages(), ILOG_DEBUG, mBuffer, mDatabaseFile, mDbOpened, Impala::Application::VideoExcel::TableDataSource::mFilteredRows, mMaxBufferSize, mQueryBuffer, mSqlDb, mTHeight, Impala::Application::VideoExcel::TableDataSource::mTotalRows, mTWidth, OpenDb(), Impala::Application::VideoExcel::TableDataSource::TYPE_IMAGE, and Impala::Application::VideoExcel::TableDataSource::TYPE_TEXT.

00239     {
00240         ILOG_DEBUG("initializing TableDataSourceSqliteDb...");
00241 
00242         mSqlDb = new CppSQLite3DB();
00243         mMaxBufferSize = 256000;
00244         mBuffer = new char[mMaxBufferSize];
00245         mQueryBuffer = new CppSQLite3Buffer();
00246         mDatabaseFile = database;
00247         mDbOpened = OpenDb(database, readonly);
00248         
00249         if (!mDbOpened)
00250         {
00251             return;
00252         }
00253 
00254         mTotalRows = GetNrOfImages();
00255         mFilteredRows = mTotalRows;
00256 
00257         mTWidth = 512;
00258         mTHeight = 512;
00259 
00260         AddColumn("id", TYPE_TEXT, 50);
00261         AddColumn("image", TYPE_IMAGE, 120);
00262         AddColumn("filename", TYPE_TEXT, 300);
00263         AddColumn("timestamp", TYPE_TEXT, 120);
00264         AddColumn("width", TYPE_TEXT, 120);
00265         AddColumn("height", TYPE_TEXT, 120);
00266 
00267     }

Here is the call graph for this function:


Generated on Fri Mar 19 10:52:28 2010 for ImpalaSrc by  doxygen 1.5.1