Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
df83aa03
Kaydet (Commit)
df83aa03
authored
Haz 27, 2007
tarafından
Jens-Heiner Rechtien
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
INTEGRATION: CWS sdblogging (1.5.18); FILE MERGED
2007/05/22 19:15:45 fs 1.5.18.1: #i76119# +size/empty/remove
üst
5589b386
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
2 deletions
+33
-2
namedvaluecollection.hxx
comphelper/inc/comphelper/namedvaluecollection.hxx
+33
-2
No files found.
comphelper/inc/comphelper/namedvaluecollection.hxx
Dosyayı görüntüle @
df83aa03
...
...
@@ -4,9 +4,9 @@
*
* $RCSfile: namedvaluecollection.hxx,v $
*
* $Revision: 1.
5
$
* $Revision: 1.
6
$
*
* last change: $Author:
vg $ $Date: 2007-01-15 14:44:08
$
* last change: $Author:
hr $ $Date: 2007-06-27 14:54:05
$
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
...
...
@@ -111,6 +111,12 @@ namespace comphelper
impl_assign
(
_rArguments
);
}
/// returns the number of elements in the collection
size_t
size
()
const
;
/// determines whether the collection is empty
bool
empty
()
const
;
/** retrieves a value with a given name from the collection, if it is present
@param _pAsciiValueName
...
...
@@ -169,6 +175,11 @@ namespace comphelper
return
get
(
::
rtl
::
OUString
::
createFromAscii
(
_pAsciiValueName
)
);
}
/** retrieves a (untyped) value with a given name
If the collection does not contain a value with the given name, an empty
Any is returned.
*/
const
::
com
::
sun
::
star
::
uno
::
Any
&
get
(
const
::
rtl
::
OUString
&
_rValueName
)
const
{
return
impl_get
(
_rValueName
);
...
...
@@ -186,6 +197,24 @@ namespace comphelper
return
impl_has
(
_rValueName
);
}
/** removes the value with the given name from the collection
@return <TRUE/> if and only if a value with the given name existed in the collection.
*/
inline
bool
remove
(
const
sal_Char
*
_pAsciiValueName
)
{
return
impl_remove
(
::
rtl
::
OUString
::
createFromAscii
(
_pAsciiValueName
)
);
}
/** removes the value with the given name from the collection
@return <TRUE/> if and only if a value with the given name existed in the collection.
*/
inline
bool
remove
(
const
::
rtl
::
OUString
&
_rValueName
)
{
return
impl_remove
(
_rValueName
);
}
private
:
void
impl_assign
(
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
uno
::
Any
>&
_rArguments
);
void
impl_assign
(
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
beans
::
PropertyValue
>&
_rArguments
);
...
...
@@ -201,6 +230,8 @@ namespace comphelper
impl_get
(
const
::
rtl
::
OUString
&
_rValueName
)
const
;
bool
impl_has
(
const
::
rtl
::
OUString
&
_rValueName
)
const
;
bool
impl_remove
(
const
::
rtl
::
OUString
&
_rValueName
);
};
//........................................................................
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment