QArm4/arm4qt.h
Go to the documentation of this file.
00001 //-*-Mode: C++;-*- 00002 #ifndef ARM4_CPP_H 00003 #define ARM4_CPP_H 1 00004 00010 #include <inttypes.h> 00011 #include <cstring> 00012 #include <QString> 00013 #include <QVector> 00014 #include <QByteArray> 00015 00016 // include the official ARM 4.1 C header file 00017 #include <arm4.h> 00018 #include <arm41.h> 00019 #include <arm41ext.h> 00020 00021 // check if we are compiling with inlining enabled? 00022 #if defined(QARM4_INLINING) 00023 #define QARM4_INLINE inline 00024 #else 00025 #define QARM4_INLINE 00026 #endif 00027 00028 #if __cplusplus >= 201103L 00029 #define ARM4_CPP_CXX11_DELETED_FUNCTION = delete 00030 #else 00031 #define ARM4_CPP_CXX11_DELETED_FUNCTION 00032 #endif 00033 00037 namespace arm4 00038 { 00039 00043 const QString NullString; 00044 00049 const QVector<QString> NullVector; 00050 00051 // Convert vector of strings into vector of bytearray 00052 QVector<QByteArray> convStrToBaVector(const QVector<QString>& strVec); 00053 00054 00055 // Helper function to convert a float into counter/divisor. 00056 void calculateCntrDivr(float value, int32_t& cntr, int32_t& divr); 00057 00058 } 00059 00423 #endif
