summaryrefslogtreecommitdiffstats
path: root/lib/libtqtrla/src/tqtrla.cpp
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/libtqtrla/src/tqtrla.cpp
parent8d3c1358eeaefec559c4a09995ff5b26393a9620 (diff)
downloadulab-89702662657667460d0e5914794366d190f11534.tar.gz
ulab-89702662657667460d0e5914794366d190f11534.zip
Fix commanalyzer functionality
Diffstat (limited to 'lib/libtqtrla/src/tqtrla.cpp')
-rw-r--r--lib/libtqtrla/src/tqtrla.cpp21
1 files changed, 21 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;