summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-11 01:44:02 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-11 01:44:02 -0500
commit89702662657667460d0e5914794366d190f11534 (patch)
treef5ea5b866bba0095675bcfe0190685b839d0ff4e /lib
parent8d3c1358eeaefec559c4a09995ff5b26393a9620 (diff)
downloadulab-89702662657667460d0e5914794366d190f11534.tar.gz
ulab-89702662657667460d0e5914794366d190f11534.zip
Fix commanalyzer functionality
Diffstat (limited to 'lib')
-rw-r--r--lib/libtqtrla/src/tqtrla.cpp21
-rw-r--r--lib/libtqtrla/src/tqtrla.h9
2 files changed, 30 insertions, 0 deletions
diff --git a/lib/libtqtrla/src/tqtrla.cpp b/lib/libtqtrla/src/tqtrla.cpp
index 96c2274..bda048d 100644
--- a/lib/libtqtrla/src/tqtrla.cpp
+++ b/lib/libtqtrla/src/tqtrla.cpp
@@ -295,6 +295,27 @@ TQDataStream &operator>>( TQDataStream &s, TQFloatArray &data ) {
return s;
}
+TQDataStream &operator<<( TQDataStream &s, const TQDoubleArray &data ) {
+ TQ_UINT32 i;
+ TQ_UINT32 count = data.count();
+ s << count;
+ for (i=0; i<count; i++) {
+ s << data[i];
+ }
+ return s;
+}
+
+TQDataStream &operator>>( TQDataStream &s, TQDoubleArray &data ) {
+ TQ_UINT32 i;
+ TQ_UINT32 count;
+ s >> count;
+ data.resize(count);
+ for (i=0; i<count; i++) {
+ s >> data[i];
+ }
+ return s;
+}
+
bool operator==( const ServiceType &s1, const ServiceType &s2 ) {
bool identical = true;
diff --git a/lib/libtqtrla/src/tqtrla.h b/lib/libtqtrla/src/tqtrla.h
index a982946..faca985 100644
--- a/lib/libtqtrla/src/tqtrla.h
+++ b/lib/libtqtrla/src/tqtrla.h
@@ -102,6 +102,15 @@ Q_EXPORT TQDataStream &operator>>(TQDataStream &, TQFloatArray &);
// =============================================================================
+typedef TQMemArray<double> TQDoubleArray;
+
+#ifndef QT_NO_DATASTREAM
+Q_EXPORT TQDataStream &operator<<(TQDataStream &, const TQDoubleArray &);
+Q_EXPORT TQDataStream &operator>>(TQDataStream &, TQDoubleArray &);
+#endif
+
+// =============================================================================
+
class ServiceType
{
public: