Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: src/DatastructConversion/conversions.h
- Revision:
- 4:91fa1c5ebbe1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/DatastructConversion/conversions.h Wed Mar 27 06:08:17 2019 +0000 @@ -0,0 +1,22 @@ +/******************************************************************************* + * Copyright (c) 2018-2019, Sensors and IoT Capability Centre (SIOT) at GovTech. + * + * Contributor(s): + * Lau Lee Hong lau_lee_hong@tech.gov.sg + * Lee Tze Han + *******************************************************************************/ +#ifndef CONVERSIONS_H +#define CONVERSIONS_H + +#include <string> +#include <stdint.h> + +char* StringToChar(const std::string& str); +std::string IntToHex(uint32_t i); +std::string IntToString(int v); +char* DoubleToChar(char* str, double v, int decimalDigits); +int StringToInt(const std::string& str); +//std::string TimeToString(const std::time_t time); +//std::time_t StringToTime(const std::string& str); + +#endif // CONVERSIONS_H \ No newline at end of file