summaryrefslogtreecommitdiff
path: root/framework/inc/stdtypes.h
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2003-04-04 15:01:16 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2003-04-04 15:01:16 +0000
commit9e7cc81e5a610cd5193f4d284415a3afaf4b82f1 (patch)
tree2ddbfbd87c418f7a4ba53570ef120d694b3d4b5e /framework/inc/stdtypes.h
parentb9dddabd68879a605714a832d3855848f574066d (diff)
INTEGRATION: CWS xmlfilter01 (1.3.10.1.16); FILE MERGED
2003/03/07 12:34:34 cl 1.3.10.1.16.2: RESYNC: (1.3.10.1-1.3.10.2); FILE MERGED 2003/03/06 13:57:06 as 1.3.10.1.16.1: #107711# full read/write access for types, filters, detect service
Diffstat (limited to 'framework/inc/stdtypes.h')
-rw-r--r--framework/inc/stdtypes.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/framework/inc/stdtypes.h b/framework/inc/stdtypes.h
index a6927a2e582d..3fcffe865737 100644
--- a/framework/inc/stdtypes.h
+++ b/framework/inc/stdtypes.h
@@ -2,9 +2,9 @@
*
* $RCSfile: stdtypes.h,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: hr $ $Date: 2003-03-25 18:19:28 $
+ * last change: $Author: hr $ $Date: 2003-04-04 16:01:16 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -123,6 +123,12 @@ class OUStringList : public ::std::vector< ::rtl::OUString >
insert( begin(), sElement );
}
+ // search for given element
+ iterator find( const ::rtl::OUString& sElement )
+ {
+ return ::std::find(begin(), end(), sElement);
+ }
+
// the only way to free used memory realy!
void free()
{
@@ -164,6 +170,14 @@ class BaseHash : public ::std::hash_map< ::rtl::OUString ,
//_________________________________________________________________________________________________________________
/**
+ Basic OUString hash.
+ Key and values are OUStrings.
+*/
+typedef BaseHash< ::rtl::OUString > OUStringHash;
+
+//_________________________________________________________________________________________________________________
+
+/**
It can be used to map names (e.g. of properties) to her corresponding handles.
Our helper class OPropertySetHelper works optimized with handles but sometimes we have only a property name.
Mapping between these two parts of a property should be done in the fastest way :-)