/**
*******************************************************************************
- * Copyright (C) 2001-2003, International Business Machines Corporation. *
+ * Copyright (C) 2001-2004, International Business Machines Corporation. *
* All Rights Reserved. *
*******************************************************************************
*/
#else
-#include "unicode/uobject.h"
#include "unicode/unistr.h"
-#include "unicode/chariter.h"
#include "unicode/locid.h"
-#include "unicode/ubrk.h"
#include "hash.h"
#include "uvector.h"
class ICUServiceFactory;
class SimpleFactory;
class ServiceListener;
-class ICUServiceEnumeration;
class ICUService;
class DNCache;
*/
static UnicodeString& parseSuffix(UnicodeString& result);
- public:
+public:
/**
* UObject RTTI boilerplate.
*/
- static inline UClassID getStaticClassID() {
- return (UClassID)&fgClassID;
- }
+ static UClassID U_EXPORT2 getStaticClassID();
/**
* UObject RTTI boilerplate.
*/
- virtual UClassID getDynamicClassID() const {
- return getStaticClassID();
- }
+ virtual UClassID getDynamicClassID() const;
#ifdef SERVICE_DEBUG
public:
virtual UnicodeString& debugClass(UnicodeString& result) const;
#endif
- private:
- static const char fgClassID;
};
/*******************************************************************
/**
* UObject RTTI boilerplate.
*/
- static inline UClassID getStaticClassID() {
- return (UClassID)&fgClassID;
- }
+ static UClassID U_EXPORT2 getStaticClassID();
/**
* UObject RTTI boilerplate.
*/
- virtual UClassID getDynamicClassID() const {
- return getStaticClassID();
- }
+ virtual UClassID getDynamicClassID() const;
#ifdef SERVICE_DEBUG
public:
virtual UnicodeString& debugClass(UnicodeString& toAppendTo) const;
#endif
- private:
- static const char fgClassID;
};
/*
/**
* UObject RTTI boilerplate.
*/
- static inline UClassID getStaticClassID() {
- return (UClassID)&fgClassID;
- }
+ static UClassID U_EXPORT2 getStaticClassID();
/**
* UObject RTTI boilerplate.
*/
- virtual UClassID getDynamicClassID() const {
- return getStaticClassID();
- }
+ virtual UClassID getDynamicClassID() const;
-private:
- static const char fgClassID;
};
/*
* Deleter for StringPairs
*/
U_CAPI void U_EXPORT2
-deleteStringPair(void *obj);
+userv_deleteStringPair(void *obj);
/**
* Opaque type returned by registerInstance and registerFactory.
* the key, until either a factory returns a service object, or the key
* has no fallback. If no object is found, the result of handleDefault
* is returned.</p>
- *
- * <p>Subclasses can override this method to further customize the
- * result before returning it.
+ *
+ * <p>Subclasses can override this method to further customize the
+ * result before returning it.
*
* @param key the key.
* @param actualReturn a pointer to a UnicodeString to hold the matched descriptor, or NULL.
* <p>This version of getKey is only called by ICUServiceFactories within the scope
* of a previous getKey call, to determine what previously-registered factories would
* have returned. For details, see getKey(ICUServiceKey&, UErrorCode&). Subclasses
- * should not call it directly, but call through one of the other get functions.</p>
+ * should not call it directly, but call through one of the other get functions.</p>
*
* @param key the key.
* @param actualReturn a pointer to a UnicodeString to hold the matched descriptor, or NULL.