summaryrefslogtreecommitdiffstats
path: root/lib/libtqtrla/src/tqtrla.cpp
diff options
context:
space:
mode:
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 4e024d3..96c2274 100644
--- a/lib/libtqtrla/src/tqtrla.cpp
+++ b/lib/libtqtrla/src/tqtrla.cpp
@@ -274,6 +274,27 @@ namespace KParts
}
}
+TQDataStream &operator<<( TQDataStream &s, const TQFloatArray &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, TQFloatArray &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;