7 #include "cppformat/format.h" 10 #ifndef ARP_INSIDE_ARP_H 11 #error Never include 'BasicFormatter.hxx' directly, just include 'Arp.h' 20 template<
typename C,
typename A = std::allocator<C>>
26 using ExceptionHandler = std::function<void(const char*, const char*)>;
29 template<
typename... Args>
32 template<
typename... Args>
33 static StringType FormatCommon(ExceptionHandler exceptionHandler,
const CharType* format,
const Args& ... args);
35 template<
typename... Args>
38 template<
typename... Args>
39 static StringType FormatPrintf(ExceptionHandler exceptionHandler,
const CharType* format,
const Args& ... args);
45 template<
typename C,
typename A>
46 template<
typename... Args>
53 template<
typename C,
typename A>
54 template<
typename... Args>
59 return fmt::format(format, args...);
61 catch (std::exception& e)
63 exceptionHandler(format, e.what());
69 template<
typename C,
typename A>
70 template<
typename... Args>
77 template<
typename C,
typename A>
78 template<
typename... Args>
83 return fmt::sprintf(format, args...);
85 catch (std::exception& e)
87 exceptionHandler(format, e.what());
Definition: BasicFormatter.hxx:18
Root namespace for the PLCnext API