X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/90e389f6ec12e60a62c362296ffcf314feb5b03d..6c3114a1ec31d54d935f4d8395ef4816ae250295:/stglibs/common.lib/common.h diff --git a/stglibs/common.lib/common.h b/stglibs/common.lib/common.h index 3752822a..ac091147 100644 --- a/stglibs/common.lib/common.h +++ b/stglibs/common.lib/common.h @@ -98,6 +98,15 @@ std::string & Trim(std::string & val); std::string IconvString(const std::string & source, const std::string & from, const std::string & to); +int ParseInt(const std::string & str, int * val); +int ParseUnsigned(const std::string & str, unsigned * val); +int ParseIntInRange(const std::string & str, int min, int max, int * val); +int ParseUnsignedInRange(const std::string & str, unsigned min, + unsigned max, unsigned * val); +int ParseYesNo(const std::string & str, bool * val); + +bool WaitPackets(int sd); + //----------------------------------------------------------------------------- template int str2x(const std::string & str, varT & x)