AbstractInterface.h File Reference
#include <memory>
#include <string>
#include "BinaryLogger.h"
#include "Types.h"
+ Include dependency graph for AbstractInterface.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AbstractInterface
 

Macros

#define hi(x)
 
#define lo(x)
 
#define make_float(result, byteptr)
 
#define make_int(lowbyte, mid1, mid2, highbyte)
 
#define make_short(lowbyte, highbyte)
 
#define make_signed_short(lowbyte, highbyte)
 
#define MSG_PREAMBLE_BYTE   0xaa
 
#define MSG_PREAMBLE_LEN   3
 

Functions

std::ostream & operator<< (std::ostream &strm, const AbstractInterface &a)
 

Macro Definition Documentation

◆ hi

#define hi ( x)
Value:
(unsigned char)(((x) >> 8) & 0xff)
This file offers overloads of toIce() and fromIce() functions for STL container types.

Definition at line 46 of file AbstractInterface.h.

◆ lo

#define lo ( x)
Value:
(unsigned char)((x) & 0xff)

Definition at line 47 of file AbstractInterface.h.

◆ make_float

#define make_float ( result,
byteptr )
Value:
memcpy(&result, byteptr, sizeof(float))

Definition at line 43 of file AbstractInterface.h.

◆ make_int

#define make_int ( lowbyte,
mid1,
mid2,
highbyte )
Value:
((unsigned int)lowbyte | ((unsigned int)mid1 << 8) | ((unsigned int)mid2 << 16) | \
((unsigned int)highbyte << 24))

Definition at line 40 of file AbstractInterface.h.

◆ make_short

#define make_short ( lowbyte,
highbyte )
Value:
((unsigned short)lowbyte | ((unsigned short)highbyte << 8))

Definition at line 37 of file AbstractInterface.h.

◆ make_signed_short

#define make_signed_short ( lowbyte,
highbyte )
Value:
((signed short)((unsigned short)lowbyte | ((unsigned short)highbyte << 8)))

Definition at line 38 of file AbstractInterface.h.

◆ MSG_PREAMBLE_BYTE

#define MSG_PREAMBLE_BYTE   0xaa

Definition at line 33 of file AbstractInterface.h.

◆ MSG_PREAMBLE_LEN

#define MSG_PREAMBLE_LEN   3

Definition at line 34 of file AbstractInterface.h.

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream & strm,
const AbstractInterface & a )

Definition at line 87 of file AbstractInterface.cpp.