summaryrefslogtreecommitdiff
path: root/cosv
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-11-02 16:37:59 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-11-02 16:37:59 +0000
commitf4ffe085097fe3c7d74f445c1ca1446e6919db3d (patch)
tree521417a119cba4faa8efa74a18443f3755925913 /cosv
parentb6238e23879227e545e74b1a49a1148faf0e175a (diff)
INTEGRATION: CWS adc18 (1.6.38); FILE MERGED
2007/09/20 12:16:13 np 1.6.38.1: #i81775#
Diffstat (limited to 'cosv')
-rw-r--r--cosv/inc/cosv/comfunc.hxx30
1 files changed, 25 insertions, 5 deletions
diff --git a/cosv/inc/cosv/comfunc.hxx b/cosv/inc/cosv/comfunc.hxx
index 4b9b5f1bfd38..0a08fa153fbf 100644
--- a/cosv/inc/cosv/comfunc.hxx
+++ b/cosv/inc/cosv/comfunc.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: comfunc.hxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 07:53:19 $
+ * last change: $Author: hr $ $Date: 2007-11-02 17:37:59 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -38,10 +38,13 @@
#include <stdlib.h>
+
+
+
namespace csv
{
+ class String;
-class String;
// min, max and range functions
template <class E>
@@ -70,7 +73,21 @@ void date2str(String & out_Str, int day, int month, int year);
bool str2time(const char * str, int & out_hour, int & out_min, int & out_sec);
void time2str(String & out_Str, int hour, int min, int sec);
+class noncopyable
+{
+ protected:
+ noncopyable() {}
+ ~noncopyable() {}
+ private:
+ // Private to make copying impossible:
+ noncopyable(const noncopyable&);
+ noncopyable & operator=(const noncopyable&);
+};
+
+
+
+// IMPLEMENTATION
template <class E>
inline E
max(E in1, E in2) { return in1 < in2 ? in2 : in1; }
@@ -102,12 +119,15 @@ switch_endian( NUMTYPE & o_rNumber,
}
-
} // namespace csv
-#endif
+#define NON_COPYABLE(xy) \
+ private: xy(const xy &); xy & operator=(const xy &)
+
+
+#endif