haiku/headers/os/locale/FloatFormatImpl.h
Oliver Tappe 723383c0f4 Applied patch by PulkoMandy, adjusted and extended by myself:
* integrating most of the locale kit into the build (and image)
* removed LocaleBuild.h and _IMPEXP_LOCALE since that does not make
  sense for elf (which usually exports all symbols anyway)
* added a couple of locale kit related pseudo targets for convenience
Hey, some of that stuff already seems to work :-)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30545 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-01 21:56:16 +00:00

40 lines
1.0 KiB
C++

#ifndef _B_FLOAT_FORMAT_IMPL_H_
#define _B_FLOAT_FORMAT_IMPL_H_
#include <NumberFormatImpl.h>
struct format_field_position;
class BFloatFormatParameters;
class BString;
class BFloatFormatImpl : public BNumberFormatImpl {
public:
BFloatFormatImpl();
virtual ~BFloatFormatImpl();
// formatting
virtual status_t Format(const BFloatFormatParameters *parameters,
double number, BString *buffer) const = 0;
virtual status_t Format(const BFloatFormatParameters *parameters,
double number, BString *buffer,
format_field_position *positions,
int32 positionCount = 1,
int32 *fieldCount = NULL,
bool allFieldPositions = false) const = 0;
// TODO: ...
virtual BNumberFormatParameters *DefaultNumberFormatParameters();
virtual const BNumberFormatParameters *DefaultNumberFormatParameters()
const;
virtual BFloatFormatParameters *DefaultFloatFormatParameters() = 0;
virtual const BFloatFormatParameters *DefaultFloatFormatParameters()
const = 0;
};
#endif // _B_FLOAT_FORMAT_IMPL_H_