13 #if defined(__MINGW32__) || defined(__CYGWIN__) 15 # undef __STRICT_ANSI__ 26 #if defined __APPLE__ || defined(__FreeBSD__) 33 # if defined(_WIN32) && !defined(__MINGW32__) 35 # define FMT_POSIX(call) _##call 37 # define FMT_POSIX(call) call 43 # define FMT_POSIX_CALL(call) FMT_SYSTEM(call) 45 # define FMT_SYSTEM(call) call 48 # define FMT_POSIX_CALL(call) ::_##call 50 # define FMT_POSIX_CALL(call) ::call 54 #if FMT_GCC_VERSION >= 407 55 # define FMT_UNUSED __attribute__((unused)) 60 #ifndef FMT_USE_STATIC_ASSERT 61 # define FMT_USE_STATIC_ASSERT 0 64 #if FMT_USE_STATIC_ASSERT || FMT_HAS_FEATURE(cxx_static_assert) || \ 65 (FMT_GCC_VERSION >= 403 && FMT_HAS_GXX_CXX11) || _MSC_VER >= 1600 66 # define FMT_STATIC_ASSERT(cond, message) static_assert(cond, message) 68 # define FMT_CONCAT_(a, b) FMT_CONCAT(a, b) 69 # define FMT_STATIC_ASSERT(cond, message) \ 70 typedef int FMT_CONCAT_(Assert, __LINE__)[(cond) ? 1 : -1] FMT_UNUSED 76 # define FMT_RETRY_VAL(result, expression, error_result) \ 78 result = (expression); \ 79 } while (result == error_result && errno == EINTR) 81 # define FMT_RETRY_VAL(result, expression, error_result) result = (expression) 84 #define FMT_RETRY(result, expression) FMT_RETRY_VAL(result, expression, -1) 123 #if !FMT_USE_RVALUE_REFERENCES 207 int (fileno)()
const;
228 explicit File(
int fd) : fd_(fd) {}
246 #if !FMT_USE_RVALUE_REFERENCES 333 std::size_t
read(
void *buffer, std::size_t
count);
336 std::size_t
write(
const void *buffer, std::size_t count);
340 static File dup(
int fd);
362 #if (defined(LC_NUMERIC_MASK) || defined(_MSC_VER)) && \ 363 !defined(__ANDROID__) && !defined(__CYGWIN__) 373 typedef _locale_t locale_t;
375 enum { LC_NUMERIC_MASK = LC_NUMERIC };
377 static locale_t newlocale(
int category_mask,
const char *locale, locale_t)
379 return _create_locale(category_mask, locale);
382 static void freelocale(locale_t locale)
384 _free_locale(locale);
387 static double strtod_l(
const char *nptr,
char **endptr, _locale_t locale)
389 return _strtod_l(nptr, endptr, locale);
398 typedef locale_t Type;
400 Locale() : locale_(newlocale(LC_NUMERIC_MASK,
"C", NULL))
417 double strtod(
const char *&str)
const 420 double result = strtod_l(str, &end, locale_);
428 #if !FMT_USE_RVALUE_REFERENCES 443 #endif // FMT_POSIX_H_
BufferedFile(Proxy p) FMT_NOEXCEPT
BufferedFile & operator=(Proxy p)
FMT_API void print(std::FILE *f, CStringRef format_str, ArgList args)
BufferedFile(BufferedFile &f) FMT_NOEXCEPT
File & operator=(Proxy p)
int descriptor() const FMT_NOEXCEPT
bool write(ros_opcua_srvs::Write::Request &req, ros_opcua_srvs::Write::Response &res)
ErrorCode(int value=0) FMT_NOEXCEPT
File(Proxy p) FMT_NOEXCEPT
bool read(ros_opcua_srvs::Read::Request &req, ros_opcua_srvs::Read::Response &res)
BufferedFile() FMT_NOEXCEPT
File & operator=(File &other)
BufferedFile & operator=(BufferedFile &other)
void print(CStringRef format_str, const ArgList &args)
File(File &other) FMT_NOEXCEPT
fmt::File & move(fmt::File &f)
FMT_GCC_EXTENSION typedef long long LongLong