mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 18:30:06 +00:00
Parse coded information from text product content
This commit is contained in:
parent
8f3baaa7c3
commit
56cda08b0d
5 changed files with 115 additions and 9 deletions
|
|
@ -234,5 +234,20 @@ bool CodedTimeMotionLocation::Parse(const StringRange& lines,
|
|||
return dataValid;
|
||||
}
|
||||
|
||||
std::optional<CodedTimeMotionLocation>
|
||||
CodedTimeMotionLocation::Create(const StringRange& lines,
|
||||
const std::string& wfo)
|
||||
{
|
||||
std::optional<CodedTimeMotionLocation> motion =
|
||||
std::make_optional<CodedTimeMotionLocation>();
|
||||
|
||||
if (!motion->Parse(lines, wfo))
|
||||
{
|
||||
motion.reset();
|
||||
}
|
||||
|
||||
return motion;
|
||||
}
|
||||
|
||||
} // namespace awips
|
||||
} // namespace scwx
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue