PropertyParserString.h 749 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include "../../Include/RmlUi/Core/PropertyParser.h"
  3. namespace Rml {
  4. /**
  5. A passthrough property parser that parses a string.
  6. */
  7. class PropertyParserString : public PropertyParser {
  8. public:
  9. PropertyParserString();
  10. virtual ~PropertyParserString();
  11. /// Called to parse a RCSS string declaration.
  12. /// @param[out] property The property to set the parsed value on.
  13. /// @param[in] value The raw value defined for this property.
  14. /// @param[in] parameters The parameters defined for this property; not used for this parser.
  15. /// @return True if the value was validated successfully, false otherwise.
  16. bool ParseValue(Property& property, const String& value, const ParameterMap& parameters) const override;
  17. };
  18. } // namespace Rml