haiku/headers/private/debugger/value/value_formatters/FloatValueFormatter.h
Rene Gollent fce4895d18 Debugger: Split into core library and application.
- Add subfolder src/kits/debugger which contains the debugger's core
  functionality and lower layers. Correspondingly add headers/private/debugger
  for shared headers to be used by clients such as the Debugger application
  and eventual remote_debug_server. Adjust various files to account for
  differences as a result of the split and moves.
- Add libdebugger.so to minimal Jamfile.
2016-06-04 13:18:39 -04:00

45 lines
969 B
C++

/*
* Copyright 2015, Rene Gollent, rene@gollent.com.
* Distributed under the terms of the MIT License.
*/
#ifndef FLOAT_VALUE_FORMATTER_H
#define FLOAT_VALUE_FORMATTER_H
#include "ValueFormatter.h"
class Settings;
class Value;
class FloatValueFormatter : public ValueFormatter {
public:
FloatValueFormatter();
virtual ~FloatValueFormatter();
virtual Settings* GetSettings() const
{ return NULL; }
virtual status_t FormatValue(Value* value, BString& _output);
virtual bool SupportsValidation() const;
virtual bool ValidateFormattedValue(
const BString& input,
type_code type) const;
virtual status_t GetValueFromFormattedInput(
const BString& input, type_code type,
Value*& _output) const;
private:
status_t _PerformValidation(const BString& input,
type_code type,
::Value*& _output,
bool wantsValue) const;
};
#endif // FLOAT_VALUE_FORMATTER_H