CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
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 192 of file OdUnitsFormatter.h.

Constructor & Destructor Documentation

◆ OdUnitsFormatterTool()

OdUnitsFormatterTool::OdUnitsFormatterTool ( )
inline

Definition at line 195 of file OdUnitsFormatter.h.

◆ ~OdUnitsFormatterTool()

OdUnitsFormatterTool::~OdUnitsFormatterTool ( )
inline

Definition at line 196 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 219 of file OdUnitsFormatter.h.

◆ countOccurences()

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

Definition at line 308 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 237 of file OdUnitsFormatter.h.

◆ digit()

static bool OdUnitsFormatterTool::digit ( OdChar  c)
inlinestatic

Definition at line 232 of file OdUnitsFormatter.h.

◆ format()

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

Definition at line 269 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 206 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 227 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 294 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: