Classes | Namespaces | Functions
utils.h File Reference
#include <iostream>
#include <string>
#include <cassert>
#include <cstdlib>
#include "../common/types.h"
Include dependency graph for utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Aseba::UnifiedTime
 Time or durations, in milliseconds. More...

Namespaces

namespace  Aseba

Functions

uint16 Aseba::crcXModem (const uint16 oldCrc, const std::wstring &s)
 Update the XModem CRC (x^16 + x^12 + x^5 + 1 (0x1021)) with a wstring.
uint16 Aseba::crcXModem (const uint16 oldCrc, const uint16 v)
 Update the XModem CRC (x^16 + x^12 + x^5 + 1 (0x1021)) with a uint16 value.
void Aseba::dumpTime (std::ostream &stream, bool raw=false)
 Dump the current time to a stream.
template<typename Derived , typename Base >
static Derived Aseba::polymorphic_downcast (Base base)
 Asserts a dynamic cast. Similar to the one in boost/cast.hpp.
template<typename Derived , typename Base >
static Derived Aseba::polymorphic_downcast_or_null (Base base)
 Asserts a dynamic cast or a null. Similar to the one in boost/cast.hpp.
std::wstring Aseba::UTF8ToWString (const std::string &s)
 Transform a UTF8 string into a wstring, this function is thread-safe.
std::string Aseba::WStringToUTF8 (const std::wstring &s)
 Transform a wstring into an UTF8 string, this function is thread-safe.


aseba
Author(s): Stéphane Magnenat
autogenerated on Thu Jan 2 2014 11:17:17