Usefull common functions
More...
#include <Util.h>
|
static sp2plib::UInt64 | GetCurrentTimeMilisec () |
| Gets current time in milisec.
|
|
static sp2plib::UInt32 | DownloadURL (::std::string URL,::std::ostream *write_stream) |
| Downloads the content from URL.
|
|
::std::string | ConcatTextAndNumber (::std::string Text, int Number) |
| Concatenates ::std::stind and int
|
|
::std::string | intToString (int value) |
| Convaterts int to ::sdt::string
|
|
static const char * | GetOS () |
| Gets the operating system.
|
|
::std::string sp2plib::UTIL::ConcatTextAndNumber |
( |
::std::string |
Text, |
|
|
int |
Number |
|
) |
| |
|
static |
Concatenates ::std::stind and int
- Parameters
-
Text | ::std::stding value |
Number | int value |
static sp2plib::UInt32 sp2plib::UTIL::DownloadURL |
( |
::std::string |
URL, |
|
|
::std::ostream * |
write_stream |
|
) |
| |
|
static |
Downloads the content from URL.
- Parameters
-
URL | URL of the document. |
write_stream | Stream to write data to. |
- Returns
- Numer of bytes read
static sp2plib::UInt64 sp2plib::UTIL::GetCurrentTimeMilisec |
( |
| ) |
|
|
static |
Gets current time in milisec.
- Returns
- The current time in milisec.
static const char* sp2plib::UTIL::GetOS |
( |
| ) |
|
|
static |
Gets the operating system.
- Returns
- null if it fails, else the operating system.
::std::string sp2plib::UTIL::intToString |
( |
int |
value | ) |
|
|
static |
Convaterts int to ::sdt::string
- Parameters
-
The documentation for this class was generated from the following file: