31PropertySetInfo::PropertySetInfo() noexcept
37 maPropertyMap.reserve(pMap.size());
38 for (
const auto & rEntry : pMap)
41 assert(maPropertyMap.find(rEntry.maName) == maPropertyMap.end());
44 assert(!rEntry.maName.isEmpty());
46 maPropertyMap.emplace(rEntry.maName, &rEntry);
50PropertySetInfo::~PropertySetInfo() noexcept
56 maPropertyMap.reserve(maPropertyMap.size() + pMap.size());
57 for (
const auto & rEntry : pMap)
60 assert(maPropertyMap.find(rEntry.maName) == maPropertyMap.end());
63 assert(!rEntry.maName.isEmpty());
65 maPropertyMap.emplace(rEntry.maName, &rEntry);
74 maPropertyMap.erase(
aName );
78Sequence< css::beans::Property > SAL_CALL PropertySetInfo::getProperties()
88 for(
const auto& rProperty : maPropertyMap )
92 propIter->Name = pEntry->
maName;
94 propIter->Type = pEntry->
maType;
103Property SAL_CALL PropertySetInfo::getPropertyByName(
const OUString& aName )
105 PropertyMap::iterator aIter = maPropertyMap.find( aName );
107 if( maPropertyMap.end() == aIter )
108 throw UnknownPropertyException( aName );
112 return Property( aName, pEntry->mnHandle, pEntry->maType, pEntry->mnAttributes );
115sal_Bool SAL_CALL PropertySetInfo::hasPropertyByName(
const OUString& aName )
117 return maPropertyMap.find( aName ) != maPropertyMap.end();
SvGenericNameContainerMapImpl maProperties
OUStringBuffer & remove(OUStringBuffer &rIn, sal_Unicode c)
Removes all occurrences of a character from within the source string.
std::pair< OUString const, DataAccessDescriptorProperty > PropertyMapEntry
sal_Int16 mnAttributes
flag bitmap,