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 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)
 
static unsigned long int getCrc (char *buf, size_t len)
 

Detailed Description

Various utilities related to types and formats.

Definition at line 28 of file NetType.h.

Member Function Documentation

◆ getCrc()

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

Definition at line 250 of file NetType.cpp.

◆ netInt() [1/2]

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

Definition at line 96 of file NetType.cpp.

◆ netInt() [2/2]

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

Definition at line 104 of file NetType.cpp.

◆ toFloat32() [1/2]

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

Definition at line 176 of file NetType.cpp.

◆ toFloat32() [2/2]

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

Definition at line 186 of file NetType.cpp.

◆ toFloat64() [1/2]

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

Definition at line 181 of file NetType.cpp.

◆ toFloat64() [2/2]

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

Definition at line 191 of file NetType.cpp.

◆ toHexString() [1/3]

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

Definition at line 116 of file NetType.cpp.

◆ toHexString() [2/3]

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

Definition at line 123 of file NetType.cpp.

◆ toHexString() [3/3]

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

Definition at line 130 of file NetType.cpp.

◆ toInt()

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

Definition at line 160 of file NetType.cpp.

◆ toString() [1/5]

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

Definition at line 138 of file NetType.cpp.

◆ toString() [2/5]

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

Definition at line 145 of file NetType.cpp.

◆ toString() [3/5]

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

Definition at line 152 of file NetType.cpp.

◆ toString() [4/5]

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

Definition at line 166 of file NetType.cpp.

◆ toString() [5/5]

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

Definition at line 171 of file NetType.cpp.


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