Add string sanitization to property description

This commit is contained in:
Alexander Bock
2018-11-06 16:56:05 -05:00
parent 06426c01c2
commit 9dfb87e220
5 changed files with 86 additions and 14 deletions

View File

@@ -465,7 +465,7 @@ public:
*
* \return The metadata information text for the property
*/
virtual std::string generateMetaDataJsonDescription() const;
std::string generateMetaDataJsonDescription() const;
/**
* Creates the information that is specific to each subclass of Property%s. If a
@@ -530,6 +530,9 @@ private:
#endif
};
/// This function sanitizes an incoming string for JSON control characters
std::string sanitizeString(const std::string& str);
} // namespace openspace::properties
#endif // __OPENSPACE_CORE___PROPERTY___H__