util.cpp

utilities for rcg data Source File. [詳細]

#include <rcsc/rcg/types.h>
#include <cmath>

ネームスペース

namespace  rcsc
namespace  rcsc::rcg

関数

int rcsc::rcg::nstohi (const Int16 val)
 convert network short value -> integer
Int16 rcsc::rcg::hitons (const int val)
 convert local integer value -> network byte order short value
bool rcsc::rcg::nstohb (const Int16 val)
 convert network byte order short value to bool
Int16 rcsc::rcg::hbtons (const bool val)
 convert local boolean value -> network byte order short value
double rcsc::rcg::nstohd (const Int16 val)
 convert network byte order short value to floating point number
float rcsc::rcg::nstohf (const Int16 val)
 convert network byte order short value to floating point number
Int16 rcsc::rcg::hdtons (const double &val)
 convert local floating point value to thnetwork byte order short value
Int16 rcsc::rcg::hftons (const float &val)
 convert local floating point value to thnetwork byte order short value
double rcsc::rcg::nltohd (const Int32 &val)
 convert network byte order long value to floating point number for rcsmonitor v2 protocol
float rcsc::rcg::nltohf (const Int32 &val)
 convert network byte order long value to floating point number for rcsmonitor v2 protocol
Int32 rcsc::rcg::hdtonl (const double &val)
 convert a floating point number to the network byte order long value for rcsmonitor v2 protocol
Int32 rcsc::rcg::hftonl (const float &val)
 convert a floating point number to the network byte order long value for rcsmonitor v2 protocol
Int32 rcsc::rcg::nstonl (const Int16 val)
 convert network byle order short value to network byte order long value v1 protocol -> v2 protocol.
Int16 rcsc::rcg::nltons (const Int32 &val)
 convert network byte order long value to network byte order short value convert v2 protocol -> v1 protocol


説明

utilities for rcg data Source File.


librcscに対してThu May 1 15:41:24 2008に生成されました。  doxygen 1.5.0