CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
OdUnitsFormatterTool Class Reference

#include <OdUnitsFormatter.h>

Public Member Functions

 OdUnitsFormatterTool ()
 
 ~OdUnitsFormatterTool ()
 

Static Public Member Functions

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 double number (const OdChar *&buf, bool *pHasDot=0, bool *pHasExponent=0)
 
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 &degs, 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=',')
 

Detailed Description

This class defines the interface for a Units Formatter.

<group Other_Classes>

Definition at line 317 of file OdUnitsFormatter.h.

Constructor & Destructor Documentation

◆ OdUnitsFormatterTool()

OdUnitsFormatterTool::OdUnitsFormatterTool ( )
inline

Definition at line 320 of file OdUnitsFormatter.h.

◆ ~OdUnitsFormatterTool()

OdUnitsFormatterTool::~OdUnitsFormatterTool ( )
inline

Definition at line 321 of file OdUnitsFormatter.h.

Member Function Documentation

◆ angle()

static double OdUnitsFormatterTool::angle ( const OdChar *& buf,
bool refuseDots = false )
static

◆ base_denominator()

static double OdUnitsFormatterTool::base_denominator ( int prec,
double base )
inlinestatic

Definition at line 344 of file OdUnitsFormatter.h.

◆ countOccurences()

static int OdUnitsFormatterTool::countOccurences ( const OdString & string,
OdChar delim = ',' )
inlinestatic

Definition at line 433 of file OdUnitsFormatter.h.

◆ decomp()

static void OdUnitsFormatterTool::decomp ( double v,
int & degs,
int & mins,
double & secs,
int prec )
static

◆ denominator()

static double OdUnitsFormatterTool::denominator ( int prec)
inlinestatic

Definition at line 362 of file OdUnitsFormatter.h.

◆ digit()

static bool OdUnitsFormatterTool::digit ( OdChar c)
inlinestatic

Definition at line 357 of file OdUnitsFormatter.h.

◆ format()

static OdString OdUnitsFormatterTool::format ( int degs,
int mins,
double secs,
int prec )
inlinestatic

Definition at line 394 of file OdUnitsFormatter.h.

◆ 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

Definition at line 331 of file OdUnitsFormatter.h.

◆ 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

Definition at line 352 of file OdUnitsFormatter.h.

◆ negative()

static bool OdUnitsFormatterTool::negative ( const OdChar *& buf)
static

◆ next()

static OdString OdUnitsFormatterTool::next ( OdString & list,
const OdChar * delim = OD_T(",") )
inlinestatic

Definition at line 419 of file OdUnitsFormatter.h.

◆ number()

static double OdUnitsFormatterTool::number ( const OdChar *& buf,
bool * pHasDot = 0,
bool * pHasExponent = 0 )
static

◆ 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: