Make output more verbose while extracting data.
This commit is contained in:
		
							parent
							
								
									051b710484
								
							
						
					
					
						commit
						7c05cf9980
					
				@ -17,19 +17,22 @@ along with this program; if not, write to the Free Software
 | 
			
		||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 | 
			
		||||
or see http://www.gnu.org/licenses/agpl.txt.
 | 
			
		||||
 */
 | 
			
		||||
#ifdef STXXL_VERBOSE_LEVEL
 | 
			
		||||
#undef STXXL_VERBOSE_LEVEL
 | 
			
		||||
#endif
 | 
			
		||||
#define STXXL_VERBOSE_LEVEL -1000
 | 
			
		||||
 | 
			
		||||
#include <cassert>
 | 
			
		||||
#include <climits>
 | 
			
		||||
#include <cstdlib>
 | 
			
		||||
#include <cstdio>
 | 
			
		||||
#include <cstdlib>
 | 
			
		||||
#include <iostream>
 | 
			
		||||
#include <string>
 | 
			
		||||
#include <sstream>
 | 
			
		||||
#include <string>
 | 
			
		||||
#include <vector>
 | 
			
		||||
 | 
			
		||||
#include <libxml/xmlreader.h>
 | 
			
		||||
 | 
			
		||||
#include <google/sparse_hash_map>
 | 
			
		||||
 | 
			
		||||
#include <stxxl.h>
 | 
			
		||||
 | 
			
		||||
#include "typedefs.h"
 | 
			
		||||
@ -147,7 +150,7 @@ int main (int argc, char *argv[])
 | 
			
		||||
		fout.open(name.c_str());
 | 
			
		||||
		//        ifstream inway("_ways", ios::binary);
 | 
			
		||||
 | 
			
		||||
        cout << "Writing used nodes ..." << flush;
 | 
			
		||||
		cout << "Confirming used nodes ..." << flush;
 | 
			
		||||
		NodeID counter = 0;
 | 
			
		||||
		NodeID notfound = 0;
 | 
			
		||||
		STXXLNodeVector::iterator nvit = allNodes.begin();
 | 
			
		||||
@ -171,6 +174,10 @@ int main (int argc, char *argv[])
 | 
			
		||||
				nvit++;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		cout << "ok, after " << get_timestamp() - time << "s" << endl;
 | 
			
		||||
		time = get_timestamp();
 | 
			
		||||
 | 
			
		||||
		cout << "Writing used nodes ..." << flush;
 | 
			
		||||
		fout << confirmedNodes.size() << endl;
 | 
			
		||||
		for(STXXLNodeVector::iterator ut = confirmedNodes.begin(); ut != confirmedNodes.end(); ut++)
 | 
			
		||||
		{
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user