summaryrefslogtreecommitdiff
path: root/tvision/classes/tsortedc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tvision/classes/tsortedc.cc')
-rw-r--r--tvision/classes/tsortedc.cc40
1 files changed, 40 insertions, 0 deletions
diff --git a/tvision/classes/tsortedc.cc b/tvision/classes/tsortedc.cc
new file mode 100644
index 0000000..a7a2f0e
--- /dev/null
+++ b/tvision/classes/tsortedc.cc
@@ -0,0 +1,40 @@
+/*
+ * Turbo Vision - Version 2.0
+ *
+ * Copyright (c) 1994 by Borland International
+ * All Rights Reserved.
+ *
+
+Modified by Robert H”hne to be used for RHIDE.
+
+ *
+ *
+ */
+
+#define Uses_opstream
+#define Uses_ipstream
+#define Uses_TSortedCollection
+#include <tv.h>
+
+#if !defined( NO_STREAM )
+void TSortedCollection::write( opstream& os )
+{
+ TCollection::write( os );
+ os << (int)duplicates;
+}
+
+void *TSortedCollection::read( ipstream& is )
+{
+ TCollection::read( is );
+ int temp;
+ is >> temp;
+ duplicates = Boolean(temp);
+ return this;
+}
+
+TSortedCollection::TSortedCollection( StreamableInit ) :
+ TCollection( streamableInit )
+{
+}
+#endif // NO_STREAM
+