[Gcblue-commits] gcb_wx/src/sqlite sqlite_reader.cpp,1.1,1.2
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2005-04-16 20:44:52
|
Update of /cvsroot/gcblue/gcb_wx/src/sqlite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11335/src/sqlite Modified Files: sqlite_reader.cpp Log Message: housekeeping, networking upgrades, fixed wrapping problems with world map Index: sqlite_reader.cpp =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/src/sqlite/sqlite_reader.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** sqlite_reader.cpp 8 Aug 2004 00:31:35 -0000 1.1 --- sqlite_reader.cpp 16 Apr 2005 20:44:43 -0000 1.2 *************** *** 67,70 **** --- 67,76 ---- } + long reader::getlong(int index) + { + string s = this->getstring(index); + return atol(s.c_str()); + } + std::string reader::getstring(int index) { if(index>(argc-1)) throw out_of_range("index is out of range"); |