EV3RT CXX API Reference [English]
An RTOS-based development platform for LEGO Mindstorms EV3.
ev3cxx_format.h File Reference

API for formating data to output (display, bluetooth, file) More...

#include <type_traits>
#include "ev3api.h"
#include <string>

Go to the source code of this file.

Data Structures

class  format_impl< Stream, Pattern >
 
class  string_literal_range
 

Namespaces

 ev3cxx
 

Functions

template<typename Stream >
void send (Stream &s, char const *str)
 
template<typename Stream >
void send (Stream &s, const std::string &str)
 
template<typename Stream >
void send_bool (Stream &s, bool value)
 
template<typename Stream , typename Unsigned >
void send_bin_text (Stream &s, Unsigned v, uint8_t width=0, char fill='0')
 
template<typename Stream , typename Unsigned >
void send_hex (Stream &s, Unsigned v, uint8_t width=0, char fill='0')
 
template<typename Stream , typename Signed >
void send_shex (Stream &s, Signed v, uint8_t width=0, char fill=' ')
 
template<typename Stream , typename Integer >
void send_int (Stream &s, Integer v, uint8_t width=0, char fill=' ')
 
template<typename Stream , typename T >
void send_bin (Stream &s, T const &t)
 
template<typename Stream >
uint8_t readline (Stream &s, uint8_t *buffer, uint8_t len)
 
template<int N>
bool bufcmp (uint8_t const *buf, uint8_t len, char const (&pattern)[N])
 
template<typename Stream >
detail::format_impl< Stream, detail::string_literal_range > format (Stream &out, char const *pattern)
 

Detailed Description

API for formating data to output (display, bluetooth, file)

Author
Jakub Streit, Jaroslav Páral (jarekparal)

Definition in file ev3cxx_format.h.