Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

pUtils Class Reference

Utility function class. More...

#include <putils.h>

List of all members.

Public Methods

 pUtils ()
 Constructor.

 ~pUtils ()
 Deconstructor.


Static Public Methods

QString roman (int num, bool uppercase)
 Generates roman numerals for a number.

QString getImageName (QString *hrefname)
 Gets the Image name based off the hashed URL value.

unsigned int intsqrt (unsigned long val)
 Generates a square root to the nearest integer.

int intsin (int val)
 Returns sin of an angle.

int intcos (int val)
 Returns cos of an angle.

int inttan (int val)
 Returns tan of an angle.

int qfsqrt (int val)
 Returns square root of a number between 0 and 1.


Static Private Methods

int genroman (int i, int j, char c, QString *s)
 Generates roman numerals. Internal use only.


Static Private Attributes

QAsciiDict< char > * dict
 Ascii dictionary of image names by hrefname.


Detailed Description

Author:
Ryan Rusaw

Definition at line 30 of file putils.h.


Constructor & Destructor Documentation

pUtils::pUtils  
 

pUtils::~pUtils   [inline]
 

Definition at line 40 of file putils.h.

00040 {};


Member Function Documentation

int pUtils::genroman int    i,
int    j,
char    c,
QString *    s
[static, private]
 

QString pUtils::getImageName QString *    hrefname [static]
 

Parameters:
hrefname  Key to search for in dictionary
Returns:
The value for the given key

int pUtils::intcos int    val [static]
 

Parameters:
val  angle as a 10 * angle in degrees to the nearest integer.
Returns:
the cos*1000 to the nearest integer

int pUtils::intsin int    val [static]
 

Parameters:
val  angle as a 10 * angle in degrees to the nearest integer.
Returns:
the sin*1000 to the nearest integer

unsigned int pUtils::intsqrt unsigned long    val [static]
 

Parameters:
val  The value to find the qsuare root of.
Returns:
the qsuare root to the nearest integer

int pUtils::inttan int    val [static]
 

Parameters:
val  angle as a 10 * angle in degrees to the nearest integer.
Returns:
the tan*1000 to the nearest integer

int pUtils::qfsqrt int    val [static]
 

Parameters:
val  number * 1000 to the nearest integer.
Returns:
square root * 1000 to the nearest integer

QString pUtils::roman int    num,
bool    uppercase
[static]
 

Parameters:
num  The number
uppercase  Generates uppercase numeral if true
Returns:
The numeral as a QString


Member Data Documentation

QAsciiDict<char>* pUtils::dict [static, private]
 

Definition at line 92 of file putils.h.


The documentation for this class was generated from the following file:
Generated on Sun Feb 2 21:28:30 2003 for PoqetPresenter by doxygen1.2.18