mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-01 16:29:43 -05:00
Cleanup of SpiceManager by introducing exceptions
Catch exceptions in RenderableShadowCylinder and LabelParser Catch exceptions in RenderableFov and Hongkangparser
This commit is contained in:
@@ -211,7 +211,14 @@ bool LabelParser::create() {
|
||||
read = line.substr(0, line.find_first_of(" "));
|
||||
if (read == "STOP_TIME"){
|
||||
std::string stop = line.substr(line.find("=") + 2);
|
||||
stop.erase(std::remove(stop.begin(), stop.end(), ' '), stop.end());
|
||||
stop.erase(
|
||||
std::remove_if(
|
||||
stop.begin(),
|
||||
stop.end(),
|
||||
[](char c) { return c == ' ' || c == '\r'; }
|
||||
),
|
||||
stop.end()
|
||||
);
|
||||
openspace::SpiceManager::ref().getETfromDate(stop, _stopTime);
|
||||
count++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user