|
|
@ -36,10 +36,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
#include <map>
|
|
|
|
#include <map>
|
|
|
|
#include <list>
|
|
|
|
#include <list>
|
|
|
|
#include <limits>
|
|
|
|
#include <limits>
|
|
|
|
|
|
|
|
#include <algorithm> /* std::min and std::max for MSVC 2013 */
|
|
|
|
#if defined(_WIN32) && _MSC_VER >= 1800
|
|
|
|
|
|
|
|
#include <algorithm> /* std::min and std::max */
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "tinyxml.h"
|
|
|
|
#include "tinyxml.h"
|
|
|
|
|
|
|
|
|
|
|
@ -94,7 +91,7 @@ namespace ICS
|
|
|
|
|
|
|
|
|
|
|
|
// from http://www.cplusplus.com/forum/articles/9645/
|
|
|
|
// from http://www.cplusplus.com/forum/articles/9645/
|
|
|
|
template <typename T>
|
|
|
|
template <typename T>
|
|
|
|
T FromString ( const std::string &Text )//Text not by const reference so that the function can be used with a
|
|
|
|
T FromString ( const std::string &Text )//Text not by const reference so that the function can be used with a
|
|
|
|
{ //character array as argument
|
|
|
|
{ //character array as argument
|
|
|
|
std::stringstream ss(Text);
|
|
|
|
std::stringstream ss(Text);
|
|
|
|
T result;
|
|
|
|
T result;
|
|
|
|