#include <stdio.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <stdlib.h>
#include <string.h>
#include "sick_scan/tcp/BasicDatatypes.hpp"
Go to the source code of this file.
Functions | |
std::string | convertMeterToFeetAndInch (double m) |
char | convertNibbleToHexChar (int value, bool useLowerCaseLetters=false) |
void | convertRGBtoHexString (UINT8 r, UINT8 g, UINT8 b, char *buffer) |
void | convertUINT8toHexString (UINT8 byte, char *buffer) |
std::string | doubleToString (double val, int digits_after_decimal_point) |
std::string | doubleToString (double val, int digits_before_decimal_point, int digits_after_decimal_point) |
UINT16 | fromString (const std::string &text) |
int | hexCharToValue (char c) |
std::string | ipAdrToString (UINT32 ipAddress) |
std::string | ipTargetToString (UINT32 ipAddress, UINT16 port) |
double | makeAngleValid (double angle) |
float | memread_float (BYTE *&buffer) |
INT16 | memread_INT16 (BYTE *&buffer) |
INT32 | memread_INT32 (BYTE *&buffer) |
std::string | memread_string (BYTE *&buffer, UINT16 length) |
UINT16 | memread_UINT16 (BYTE *&buffer) |
UINT32 | memread_UINT32 (BYTE *&buffer) |
UINT8 | memread_UINT8 (BYTE *&buffer) |
void | memwrite_float (BYTE *&buffer, float value) |
void | memwrite_INT16 (BYTE *&buffer, INT16 value) |
void | memwrite_INT32 (BYTE *&buffer, INT32 value) |
void | memwrite_INT8 (BYTE *&buffer, INT8 value) |
void | memwrite_string (BYTE *&buffer, std::string text) |
void | memwrite_UINT16 (BYTE *&buffer, UINT16 value) |
void | memwrite_UINT32 (BYTE *&buffer, UINT32 value) |
void | memwrite_UINT8 (BYTE *&buffer, UINT8 value) |
void | stringToIpTarget (std::string ipAdrStr, UINT32 &ipAddress, UINT16 &port) |
std::string | toHexString (UINT32 val) |
std::string | toHexString (UINT16 val) |
std::string | toHexString (UINT8 val) |
std::string | toHexStringNbble (UINT8 val) |
std::string | toLower (const std::string &text) |
std::string | toString (UINT32 val) |
std::string | toString (INT32 val) |
std::string | toString (double val, int digits_after_decimal_point) |
void | traceBuffer (std::string headerText, BYTE *buffer, UINT32 len) |
std::string convertMeterToFeetAndInch | ( | double | m | ) |
Definition at line 129 of file toolbox.cpp.
char convertNibbleToHexChar | ( | int | value, |
bool | useLowerCaseLetters | ||
) |
Konvertierung Zahlenwert -> Hex-Zeichen
Definition at line 201 of file toolbox.cpp.
Konvertiert drei UINT8-Werte (R, G, B) in einen HEX-String, z.B.: R = 0x12, G=0x34, B=0x56 –> String = "123456" Buffer muss mindestens 6 Byte gross sein.
Definition at line 244 of file toolbox.cpp.
void convertUINT8toHexString | ( | UINT8 | byte, |
char * | buffer | ||
) |
Konvertiert einen UINT8-Wert in einen 2-Byte-Hex-Wert, z.B.: b = 0x07, String = "07" Buffer muss mindestens 2 Byte gross sein.
Definition at line 231 of file toolbox.cpp.
std::string doubleToString | ( | double | val, |
int | digits_after_decimal_point | ||
) |
Konvertiere Double-Zahl in String.
Definition at line 348 of file toolbox.cpp.
std::string doubleToString | ( | double | val, |
int | digits_before_decimal_point, | ||
int | digits_after_decimal_point | ||
) |
UINT16 fromString | ( | const std::string & | text | ) |
Definition at line 162 of file toolbox.cpp.
int hexCharToValue | ( | char | c | ) |
Toolbox. Some useful functions.
Konvertierung eines Hex-Zeichens -> Zahlenwert.
Definition at line 177 of file toolbox.cpp.
std::string ipAdrToString | ( | UINT32 | ipAddress | ) |
Definition at line 428 of file toolbox.cpp.
Definition at line 411 of file toolbox.cpp.
double makeAngleValid | ( | double | angle | ) |
Bringt den Winkel in den Bereich ]PI..-PI]
Definition at line 256 of file toolbox.cpp.
float memread_float | ( | BYTE *& | buffer | ) |
Definition at line 527 of file toolbox.cpp.
Definition at line 478 of file toolbox.cpp.
Definition at line 489 of file toolbox.cpp.
Definition at line 502 of file toolbox.cpp.
Definition at line 457 of file toolbox.cpp.
Definition at line 443 of file toolbox.cpp.
Definition at line 468 of file toolbox.cpp.
void memwrite_float | ( | BYTE *& | buffer, |
float | value | ||
) |
Definition at line 538 of file toolbox.cpp.
Definition at line 571 of file toolbox.cpp.
Definition at line 549 of file toolbox.cpp.
Definition at line 599 of file toolbox.cpp.
void memwrite_string | ( | BYTE *& | buffer, |
std::string | text | ||
) |
Definition at line 608 of file toolbox.cpp.
Definition at line 580 of file toolbox.cpp.
Definition at line 558 of file toolbox.cpp.
Definition at line 590 of file toolbox.cpp.
Definition at line 369 of file toolbox.cpp.
std::string toHexString | ( | UINT32 | val | ) |
Definition at line 75 of file toolbox.cpp.
std::string toHexString | ( | UINT16 | val | ) |
Definition at line 83 of file toolbox.cpp.
std::string toHexString | ( | UINT8 | val | ) |
Definition at line 93 of file toolbox.cpp.
std::string toHexStringNbble | ( | UINT8 | val | ) |
std::string toLower | ( | const std::string & | text | ) |
Definition at line 105 of file toolbox.cpp.
std::string toString | ( | UINT32 | val | ) |
Definition at line 285 of file toolbox.cpp.
std::string toString | ( | INT32 | val | ) |
Definition at line 275 of file toolbox.cpp.
std::string toString | ( | double | val, |
int | digits_after_decimal_point | ||
) |
Definition at line 358 of file toolbox.cpp.
Toolbox. Some useful functions.
Definition at line 24 of file toolbox.cpp.