|
|
|
@ -36,10 +36,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
|
#include <map>
|
|
|
|
|
#include <list>
|
|
|
|
|
#include <limits>
|
|
|
|
|
|
|
|
|
|
#if defined(_WIN32) && _MSC_VER >= 1800
|
|
|
|
|
#include <algorithm> /* std::min and std::max */
|
|
|
|
|
#endif
|
|
|
|
|
#include <algorithm> /* std::min and std::max for MSVC 2013 */
|
|
|
|
|
|
|
|
|
|
#include "tinyxml.h"
|
|
|
|
|
|
|
|
|
@ -94,7 +91,7 @@ namespace ICS
|
|
|
|
|
|
|
|
|
|
// from http://www.cplusplus.com/forum/articles/9645/
|
|
|
|
|
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
|
|
|
|
|
std::stringstream ss(Text);
|
|
|
|
|
T result;
|
|
|
|
|