MOOS 0.2375
|
00001 #include <string> 00002 #include <vector> 00003 #include <cstdio> 00004 #include <cstdlib> 00005 00006 #include "alogTools/indexWriter.h" 00007 00008 using namespace std; 00009 00011 void processAlogFile( std::string alogFileName ) 00012 { 00013 indexWriter idxWriter; 00014 00015 idxWriter.parseAlogFile(alogFileName); 00016 idxWriter.writeIndexFile( alogFileName + string( ".idx" ) ); 00017 } 00018 00019 int main(int argc, char**argv) 00020 { 00021 if( argc < 2 ) 00022 { 00023 printf("Usage: %s /path/to/filename.alog\n",argv[0]); 00024 exit(0); 00025 } 00026 00027 processAlogFile( argv[1] ); 00028 } 00029