2 * Copyright 2015, Rene Gollent, rene@gollent.com.
3 * Distributed under the terms of the MIT License.
5 #ifndef FLOAT_VALUE_FORMATTER_H
6 #define FLOAT_VALUE_FORMATTER_H
9 #include "ValueFormatter.h"
16 class FloatValueFormatter
: public ValueFormatter
{
18 FloatValueFormatter();
19 virtual ~FloatValueFormatter();
21 virtual Settings
* GetSettings() const
24 virtual status_t
FormatValue(Value
* value
, BString
& _output
);
26 virtual bool SupportsValidation() const;
28 virtual bool ValidateFormattedValue(
30 type_code type
) const;
32 virtual status_t
GetValueFromFormattedInput(
33 const BString
& input
, type_code type
,
34 Value
*& _output
) const;
37 status_t
_PerformValidation(const BString
& input
,
40 bool wantsValue
) const;
44 #endif // FLOAT_VALUE_FORMATTER_H