// ----------------------------------------------------------------------------- // ----- ----- // ----- CbmFormatDecHexPrintout ----- // ----- Created 11.09.2019 by P.-A. Loizeau ----- // ----- ----- // ----------------------------------------------------------------------------- #ifndef CbmFormatDecHexPrintout_H #define CbmFormatDecHexPrintout_H #include #include #include /** ** Replaces the following block of code which generate warnings depending on the OS Form( "%llu", static_cast(val) ); Form( "%lu", static_cast(val) ); Form( "%0llu", static_cast(val) ); Form( "%0lu", static_cast(val) ); Form( "%016llu", static_cast(val) ); Form( "%016lu", static_cast(val) ); **/ std::string FormatDecPrintout( uint64_t ulVal, char cFill = 0, uint uWidth = 0 ); /** ** Replaces the following block of code which generate warnings depending on the OS Form( "%llx", static_cast(val) ); Form( "%lx", static_cast(val) ); Form( "%0llx", static_cast(val) ); Form( "%0lx", static_cast(val) ); Form( "%016llx", static_cast(val) ); Form( "%016lx", static_cast(val) ); **/ std::string FormatHexPrintout( uint64_t ulVal, char cFill = 0, uint uWidth = 0, bool bUppercase = false ); #endif