From 7942dcbd4a2f7abde0acc5225e3aa335688638d4 Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Fri, 2 Nov 2007 15:45:41 +0000 Subject: INTEGRATION: CWS adc18 (1.4.32); FILE MERGED 2007/10/19 10:37:29 np 1.4.32.1: #i81775# --- autodoc/source/inc/luxenum.hxx | 30 ++++-------------------------- 1 file changed, 4 insertions(+), 26 deletions(-) (limited to 'autodoc/source/inc/luxenum.hxx') diff --git a/autodoc/source/inc/luxenum.hxx b/autodoc/source/inc/luxenum.hxx index 0f6ba0cb2430..068d9c9566fb 100644 --- a/autodoc/source/inc/luxenum.hxx +++ b/autodoc/source/inc/luxenum.hxx @@ -4,9 +4,9 @@ * * $RCSfile: luxenum.hxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: hr $ $Date: 2006-06-19 12:02:11 $ + * last change: $Author: hr $ $Date: 2007-11-02 16:45:41 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -49,7 +49,7 @@ namespace lux { -typedef std::map< intt, udmstri > EnumValueMap; +typedef std::map< intt, String > EnumValueMap; template @@ -90,44 +90,22 @@ class Enum // : public Template_Base { nValue = i_rEnum.nValue; return *this; } operator DIFF() const { return DIFF(nValue); } -// self & operator++() { if ( uintt(nValue) < Sequence_().size() - 1) nValue = Sequence_()[nValue+1]; return *this; } -// self & operator--() { if ( uintt(nValue) > 0) nValue = Sequence_()[nValue-1]; } - - DIFF operator()() const { return nValue; } - const udmstri & Text() const { return Values_()[nValue]; } -// virtual const Agent & -// GetSpecialAgent() const; + const String & Text() const { return Values_()[nValue]; } private: static EnumValueMap & Values_(); -// static std::vector< DIFF > & -// Sequence_(); bool CheckIntt( intt i_nNumber ) { return Values_().find(i_nNumber) != Values_().end(); } - // DATA intt nValue; }; -// IMPLEMENTATION -/* -// Dummy - has t be overwritten by specialisation, if used: -template -const Agent & -Enum::GetSpecialAgent() const -{ - csv_assert(false); - return *(const udm::Agent*)0; -} -*/ } // namespace lux - - #endif -- cgit