11#ifndef LIMA_COMMON_PROPERTYCODE_PROPERTYMANAGER_H
12#define LIMA_COMMON_PROPERTYCODE_PROPERTYMANAGER_H
48 const std::map<std::string,LinguisticCode> symbol2code);
96 const std::map<LinguisticCode,std::string>&
getCode2Symbol()
const;
102 const std::map<std::string,LinguisticCode>&
getSymbol2Code()
const;
111 std::unique_ptr<PropertyManagerPrivate> m_d;
114#define GET_PROPERTY_MANAGER(language, property) \
115 static_cast<const Lima::Common::MediaticData::LanguageData&>(\
116 Lima::Common::MediaticData::MediaticData::single().mediaData( language ))\
117 .getPropertyCodeManager().getPropertyManager( property );
119#define GET_PROPERTY_ACCESSOR(language, property) \
120 static_cast<const Lima::Common::MediaticData::LanguageData&>(\
121 Lima::Common::MediaticData::MediaticData::single().mediaData( language ))\
122 .getPropertyCodeManager().getPropertyAccessor( property )
#define LIMA_PROPERTYCODE_EXPORT
Provide function to read write and check a property.
const std::map< LinguisticCode, std::string > & getCode2Symbol() const
Get the Code -> Symbol mapping.
LinguisticCode getEmptyNessMask() const
The emptyNessMask is the mask use to check if property is empty.
const std::string & getPropertySymbolicValue(const LinguisticCode &value) const
The coded property value can hold several property data.
PropertyManager(const std::string &name, const LinguisticCode &mask, const LinguisticCode &emptyNessMask, const std::map< std::string, LinguisticCode > symbol2code)
constructor
size_t getNbValues() const
give the number of values for this property
LinguisticCode getMask() const
Get the property mask.
const PropertyAccessor & getPropertyAccessor() const
give the corresponding PropertyAccessor
const std::map< std::string, LinguisticCode > & getSymbol2Code() const
Get the Symbol -> Code mapping.
LinguisticCode getPropertyValue(const std::string &symbolicValue) const
Get the coded property value from the symbolic value.
friend class PropertyManagerPrivate
PropertyManager & operator=(const PropertyManager &)