Namespaces | Functions
Mavutils

Some useful utils. More...

Collaboration diagram for Mavutils:

Namespaces

 mavconn
 
 mavconn::utils
 

Functions

template<typename... Args>
std::string mavconn::utils::format (const std::string &fmt, Args...args)
 Make printf-formatted std::string. More...
 
constexpr size_t mavconn::utils::operator""_KiB (unsigned long long sz)
 
template<typename... Args>
bool mavconn::utils::set_this_thread_name (const std::string &name, Args &&...args)
 Set name to current thread, printf-like. More...
 
template<typename T >
const std::string mavconn::utils::to_string_ss (T &obj)
 Convert to string objects with operator <<. More...
 

Detailed Description

Some useful utils.

Function Documentation

template<typename... Args>
std::string mavconn::utils::format ( const std::string &  fmt,
Args...  args 
)

Make printf-formatted std::string.

Definition at line 35 of file thread_utils.h.

constexpr size_t mavconn::utils::operator""_KiB ( unsigned long long  sz)

Definition at line 78 of file thread_utils.h.

template<typename... Args>
bool mavconn::utils::set_this_thread_name ( const std::string &  name,
Args &&...  args 
)

Set name to current thread, printf-like.

Parameters
[in]namename for thread
Returns
true if success
Note
Only for Linux target
Todo:
add for other posix system

Definition at line 55 of file thread_utils.h.

template<typename T >
const std::string mavconn::utils::to_string_ss ( T &  obj)
inline

Convert to string objects with operator <<.

Definition at line 71 of file thread_utils.h.



libmavconn
Author(s): Vladimir Ermakov
autogenerated on Mon Jul 8 2019 03:20:07