#include <OdUnitsFormatter.h>
|
static OdString | formatDecimal (double value, int precision, int dimzin, const OdChar *decsep, const OdChar *thsep=0) |
|
static double | angle (const OdChar *&buf, bool refuseDots=false) |
|
static int | toInt (const OdString &sValue, int nMinValid=INT_MIN, int nMaxValid=INT_MAX) |
|
static bool | isZero (double v, int precision) |
|
static OdString | formatArchitectural (bool isNegative, int feet, int entier, int numerator, int denominator, int dimzin, int mode) |
|
static bool | negative (const OdChar *&buf) |
|
static double | integer (const OdChar *&buf) |
|
static void | fraction (double value, int &entier, int &numerator, int &denominator, int precision) |
|
static double | base_denominator (int prec, double base) |
|
static double | linear_denominator (int prec) |
|
static bool | digit (OdChar c) |
|
static double | denominator (int prec) |
|
static void | decomp (double v, int °s, int &mins, double &secs, int prec) |
|
static OdString | format (int degs, int mins, double secs, int prec) |
|
static OdString | next (OdString &list, const OdChar *delim=OD_T(",")) |
|
static int | countOccurences (const OdString &string, OdChar delim=',') |
|
This class defines the interface for a Units Formatter.
<group Other_Classes>
Definition at line 190 of file OdUnitsFormatter.h.
◆ OdUnitsFormatterTool()
OdUnitsFormatterTool::OdUnitsFormatterTool |
( |
| ) |
|
|
inline |
◆ ~OdUnitsFormatterTool()
OdUnitsFormatterTool::~OdUnitsFormatterTool |
( |
| ) |
|
|
inline |
◆ angle()
static double OdUnitsFormatterTool::angle |
( |
const OdChar *& |
buf, |
|
|
bool |
refuseDots = false |
|
) |
| |
|
static |
◆ base_denominator()
static double OdUnitsFormatterTool::base_denominator |
( |
int |
prec, |
|
|
double |
base |
|
) |
| |
|
inlinestatic |
◆ countOccurences()
static int OdUnitsFormatterTool::countOccurences |
( |
const OdString & |
string, |
|
|
OdChar |
delim = ',' |
|
) |
| |
|
inlinestatic |
◆ decomp()
static void OdUnitsFormatterTool::decomp |
( |
double |
v, |
|
|
int & |
degs, |
|
|
int & |
mins, |
|
|
double & |
secs, |
|
|
int |
prec |
|
) |
| |
|
static |
◆ denominator()
static double OdUnitsFormatterTool::denominator |
( |
int |
prec | ) |
|
|
inlinestatic |
◆ digit()
static bool OdUnitsFormatterTool::digit |
( |
OdChar |
c | ) |
|
|
inlinestatic |
◆ format()
static OdString OdUnitsFormatterTool::format |
( |
int |
degs, |
|
|
int |
mins, |
|
|
double |
secs, |
|
|
int |
prec |
|
) |
| |
|
inlinestatic |
◆ formatArchitectural()
static OdString OdUnitsFormatterTool::formatArchitectural |
( |
bool |
isNegative, |
|
|
int |
feet, |
|
|
int |
entier, |
|
|
int |
numerator, |
|
|
int |
denominator, |
|
|
int |
dimzin, |
|
|
int |
mode |
|
) |
| |
|
static |
◆ formatDecimal()
static OdString OdUnitsFormatterTool::formatDecimal |
( |
double |
value, |
|
|
int |
precision, |
|
|
int |
dimzin, |
|
|
const OdChar * |
decsep, |
|
|
const OdChar * |
thsep = 0 |
|
) |
| |
|
static |
◆ fraction()
static void OdUnitsFormatterTool::fraction |
( |
double |
value, |
|
|
int & |
entier, |
|
|
int & |
numerator, |
|
|
int & |
denominator, |
|
|
int |
precision |
|
) |
| |
|
inlinestatic |
◆ integer()
static double OdUnitsFormatterTool::integer |
( |
const OdChar *& |
buf | ) |
|
|
static |
◆ isZero()
static bool OdUnitsFormatterTool::isZero |
( |
double |
v, |
|
|
int |
precision |
|
) |
| |
|
static |
◆ linear_denominator()
static double OdUnitsFormatterTool::linear_denominator |
( |
int |
prec | ) |
|
|
inlinestatic |
◆ negative()
static bool OdUnitsFormatterTool::negative |
( |
const OdChar *& |
buf | ) |
|
|
static |
◆ next()
◆ toInt()
static int OdUnitsFormatterTool::toInt |
( |
const OdString & |
sValue, |
|
|
int |
nMinValid = INT_MIN , |
|
|
int |
nMaxValid = INT_MAX |
|
) |
| |
|
static |
The documentation for this class was generated from the following file: