From f4ffe085097fe3c7d74f445c1ca1446e6919db3d Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Fri, 2 Nov 2007 16:37:59 +0000 Subject: INTEGRATION: CWS adc18 (1.6.38); FILE MERGED 2007/09/20 12:16:13 np 1.6.38.1: #i81775# --- cosv/inc/cosv/comfunc.hxx | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) (limited to 'cosv') 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 + + + namespace csv { + class String; -class String; // min, max and range functions template @@ -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 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 -- cgit