mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-06 00:01:11 +00:00
Revert "Indicate at which point of the text stream is the failure"
This reverts commit 4f9fd340f0
.
This commit is contained in:
parent
4f9fd340f0
commit
65eb5c4af2
1 changed files with 1 additions and 6 deletions
|
@ -134,15 +134,11 @@ bool loadZobov(const char *descName, const char *adjName, const char *voidsName,
|
||||||
}
|
}
|
||||||
|
|
||||||
cout << "Loading description" << endl;
|
cout << "Loading description" << endl;
|
||||||
int lineid = 1;
|
|
||||||
|
|
||||||
string line;
|
string line;
|
||||||
getline(descFile, line);
|
getline(descFile, line);
|
||||||
lineid++;
|
|
||||||
getline(descFile, line);
|
getline(descFile, line);
|
||||||
lineid++;
|
|
||||||
getline(descFile, line);
|
getline(descFile, line);
|
||||||
lineid++;
|
|
||||||
while (!descFile.eof())
|
while (!descFile.eof())
|
||||||
{
|
{
|
||||||
istringstream lineStream(line.c_str());
|
istringstream lineStream(line.c_str());
|
||||||
|
@ -164,7 +160,7 @@ bool loadZobov(const char *descName, const char *adjName, const char *voidsName,
|
||||||
>> probability;
|
>> probability;
|
||||||
if (!lineStream)
|
if (!lineStream)
|
||||||
{
|
{
|
||||||
cerr << "Error in text stream at line " << lineid << endl;
|
cerr << "Error in text stream" << endl;
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -191,7 +187,6 @@ bool loadZobov(const char *descName, const char *adjName, const char *voidsName,
|
||||||
<< actualNumber << ")" << endl;
|
<< actualNumber << ")" << endl;
|
||||||
}
|
}
|
||||||
getline(descFile, line);
|
getline(descFile, line);
|
||||||
lineid++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cout << "Done loading" << endl;
|
cout << "Done loading" << endl;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue