1
0

PieceGenerator: Added rotation-aware vertical connectors.

This commit is contained in:
Mattes D
2017-02-13 16:50:35 +01:00
parent 043aa4e574
commit 585571d78c
15 changed files with 952 additions and 49 deletions

View File

@@ -220,10 +220,10 @@ bool StringToInteger(const AString & a_str, T & a_Num)
/** Returns an integer from a key-value string map.
Returns a_Default if the key is not present or the value is not an int. */
/** Returns a number (of any integer type T) from a key-value string map.
Returns a_Default if the key is not present or the value is not a number representable in type T. */
template <typename T>
int GetStringMapInteger(const AStringMap & a_Map, const AString & a_Key, T a_Default)
T GetStringMapInteger(const AStringMap & a_Map, const AString & a_Key, T a_Default)
{
// Try to locate the key:
auto itr = a_Map.find(a_Key);