repo.or.cz
/
marnav.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
NMEA: detectio of the optional tag block in front of a sentence, ignoring it for...
[marnav.git]
/
src
/
marnav
/
nmea
/
waypoint.cpp
blob
1b6fba61b5a346a81b2170c6a4f58c7d05e33f7e
1
#include
"waypoint.hpp"
2
#include <stdexcept>
3
4
namespace
marnav
5
{
6
namespace
nmea
7
{
8
/// Checks the specified ID if it is valid or not.
9
waypoint
::
waypoint
(
const
std
::
string
&
id
)
10
:
id_
(
id
)
11
{
12
if
(
id
.
size
() >
8
)
13
throw
std
::
invalid_argument
{
"string size to large (max 8)"
};
14
}
15
}
16
}