YARP
Yet Another Robot Platform
yarp::os::NetType Class Reference

Various utilities related to types and formats. More...

#include <yarp/os/NetType.h>

Static Public Member Functions

static int netInt (const yarp::os::Bytes &code)
 
static bool netInt (int data, yarp::os::Bytes &code)
 
static unsigned long int getCrc (char *buf, size_t len)
 
static std::string toHexString (int x)
 
static std::string toHexString (long x)
 
static std::string toHexString (unsigned int x)
 
static std::string toString (int x)
 
static std::string toString (long x)
 
static std::string toString (unsigned int x)
 
static std::string toString (yarp::conf::float32_t x)
 
static std::string toString (yarp::conf::float64_t x)
 
static yarp::conf::float32_t toFloat32 (const std::string &s)
 
static yarp::conf::float64_t toFloat64 (const std::string &s)
 
static yarp::conf::float32_t toFloat32 (std::string &&s)
 
static yarp::conf::float64_t toFloat64 (std::string &&s)
 
static int toInt (const std::string &x)
 

Detailed Description

Various utilities related to types and formats.

Definition at line 25 of file NetType.h.

Member Function Documentation

◆ getCrc()

unsigned long NetType::getCrc ( char *  buf,
size_t  len 
)
static

Definition at line 169 of file NetType.cpp.

◆ netInt() [1/2]

int NetType::netInt ( const yarp::os::Bytes code)
static

Definition at line 27 of file NetType.cpp.

◆ netInt() [2/2]

bool NetType::netInt ( int  data,
yarp::os::Bytes code 
)
static

Definition at line 35 of file NetType.cpp.

◆ toFloat32() [1/2]

yarp::conf::float32_t NetType::toFloat32 ( const std::string &  s)
static

Definition at line 95 of file NetType.cpp.

◆ toFloat32() [2/2]

yarp::conf::float32_t NetType::toFloat32 ( std::string &&  s)
static

Definition at line 105 of file NetType.cpp.

◆ toFloat64() [1/2]

yarp::conf::float64_t NetType::toFloat64 ( const std::string &  s)
static

Definition at line 100 of file NetType.cpp.

◆ toFloat64() [2/2]

yarp::conf::float64_t NetType::toFloat64 ( std::string &&  s)
static

Definition at line 110 of file NetType.cpp.

◆ toHexString() [1/3]

std::string NetType::toHexString ( int  x)
static

Definition at line 48 of file NetType.cpp.

◆ toHexString() [2/3]

std::string NetType::toHexString ( long  x)
static

Definition at line 53 of file NetType.cpp.

◆ toHexString() [3/3]

std::string NetType::toHexString ( unsigned int  x)
static

Definition at line 58 of file NetType.cpp.

◆ toInt()

int NetType::toInt ( const std::string &  x)
static

Definition at line 79 of file NetType.cpp.

◆ toString() [1/5]

std::string NetType::toString ( int  x)
static

Definition at line 63 of file NetType.cpp.

◆ toString() [2/5]

std::string NetType::toString ( long  x)
static

Definition at line 68 of file NetType.cpp.

◆ toString() [3/5]

std::string NetType::toString ( unsigned int  x)
static

Definition at line 73 of file NetType.cpp.

◆ toString() [4/5]

std::string NetType::toString ( yarp::conf::float32_t  x)
static

Definition at line 85 of file NetType.cpp.

◆ toString() [5/5]

std::string NetType::toString ( yarp::conf::float64_t  x)
static

Definition at line 90 of file NetType.cpp.


The documentation for this class was generated from the following files: