17 #ifndef mitkPropertyDescriptions_h
18 #define mitkPropertyDescriptions_h
32 const std::string &description,
33 const std::string &className,
34 bool overwrite)
override;
36 const std::string &description,
37 const std::string &className,
38 bool overwrite)
override;
40 const std::string &className,
41 bool overwrite)
const override;
42 bool HasDescription(
const std::string &propertyName,
const std::string &className,
bool overwrite)
const override;
44 void RemoveDescription(
const std::string &propertyName,
const std::string &className)
override;
47 typedef std::map<std::string, std::string> DescriptionMap;
48 typedef DescriptionMap::const_iterator DescriptionMapConstIterator;
49 typedef DescriptionMap::iterator DescriptionMapIterator;
54 std::map<std::string, DescriptionMap> m_Descriptions;
55 std::map<std::string, DescriptionMap> m_DescriptionsRegEx;
void RemoveAllDescriptions(const std::string &className) override
Remove all descriptions.
bool HasDescription(const std::string &propertyName, const std::string &className, bool overwrite) const override
Check if a specific property has a description.
bool AddDescription(const std::string &propertyName, const std::string &description, const std::string &className, bool overwrite) override
Add a description for a specific property.
DataCollection - Class to facilitate loading/accessing structured data.
bool AddDescriptionRegEx(const std::string &propertyRegEx, const std::string &description, const std::string &className, bool overwrite) override
Add a description for all properties matching the property regulary expression.
Interface of property descriptions service.
std::string GetDescription(const std::string &propertyName, const std::string &className, bool overwrite) const override
Get the description for a specific property.
void RemoveDescription(const std::string &propertyName, const std::string &className) override
Remove description of specific property.