All Classes Namespaces Files Functions Variables Enumerations Enumerator
Functions
libs/range_sensor/scip_samples/ScipUtils.cpp File Reference

Reception of SCIP 2.0 response. More...

#include "ScipUtils.h"
#include "Connection.h"
#include "ConnectionUtils.h"
#include <cstdlib>
Include dependency graph for ScipUtils.cpp:

Go to the source code of this file.

Functions

int decode (const char code[], int byte)
 Decoding of SCIP data.
int recvReply (qrk::Connection *con, int timeout, std::vector< std::string > *lines)
 Simple command transmission.

Detailed Description

Reception of SCIP 2.0 response.

Author:
Satofumi KAMIMURA
Id:
ScipUtils.cpp 1701 2010-02-16 05:33:25Z satofumi

Definition in file ScipUtils.cpp.


Function Documentation

int decode ( const char  code[],
int  byte 
)

Decoding of SCIP data.

Parameters:
[in]codeCharacters to be decoded
[in]byteNumber of decoding characters
Return values:
Decodingresult

Definition at line 20 of file ScipUtils.cpp.

int recvReply ( qrk::Connection con,
int  timeout,
std::vector< std::string > *  lines = NULL 
)

Simple command transmission.

Parameters:
[in]conConnection object
timeoutReceived timestamp [msec]
[out]linesTo store received data
Return values:
0Normal retval < 0 Error
Examples:
scip_20_cr.cpp, scip_20_gd.cpp, and scip_20_tm.cpp.

Definition at line 44 of file ScipUtils.cpp.