Back to index

QTMPipeLink.cpp File Reference
#include "tm_link.hpp"
#include "QTMPipeLink.hpp"
#include <QByteArray>

Go to the source code of this file.


static string debug_io_string (QByteArray s)

Function Documentation

static string debug_io_string ( QByteArray  s) [static]

Definition at line 17 of file QTMPipeLink.cpp.

  int i, n= s.size ();
  string r;
  for (i=0; i<n; i++) {
    unsigned char c= (unsigned char) s[i];
    if (c == DATA_BEGIN) r << "[BEGIN]";
    else if (c == DATA_END) r << "[END]";
    else if (c == DATA_COMMAND) r << "[COMMAND]";
    else if (c == DATA_ESCAPE) r << "[ESCAPE]";
    else r << s[i];
  return r;

Here is the caller graph for this function: