FactDev  0.1
Models::Unit Class Reference

The Unit class An unity for billing calculs. More...

#include <unit.h>

Public Member Functions

 Unit (TypeUnit type)
 Unit Construct an unit with init type. More...
 
 Unit ()
 Unit Construct an unit.
 
QString toString (const bool plurial=false)
 toString Return String for unit type. More...
 
TypeUnit getype () const
 getype The unit Type More...
 
void setType (const TypeUnit &type)
 setType Change the unit Type More...
 
bool operator== (const Unit &u)
 operator == define the operator "==" to compare two Unit More...
 
bool operator!= (const Unit &u)
 operator != define the operator "!=" to compare two Unit More...
 

Detailed Description

The Unit class An unity for billing calculs.

Constructor & Destructor Documentation

Models::Unit::Unit ( TypeUnit  type)

Unit Construct an unit with init type.

Parameters
typeThe unit Type;

Member Function Documentation

TypeUnit Models::Unit::getype ( ) const

getype The unit Type

Returns
The unit Type
bool Models::Unit::operator!= ( const Unit u)

operator != define the operator "!=" to compare two Unit

Parameters
cthe Unit to compare with the current Contributory
Returns
true if the Unit are different else false
bool Models::Unit::operator== ( const Unit u)

operator == define the operator "==" to compare two Unit

Parameters
cthe Unit to compare with the current Contributory
Returns
true if the Unit are equals else false
void Models::Unit::setType ( const TypeUnit type)

setType Change the unit Type

Parameters
typeThe new unit type.
QString Models::Unit::toString ( const bool  plurial = false)

toString Return String for unit type.

Returns
The unit in String

The documentation for this class was generated from the following files: