FreeDebks  1.0.3
 All Classes Files Functions Variables Friends Pages
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
FdItemResults Class Reference

Items for FdModelResults. More...

#include <FdItemResults.hpp>

Public Member Functions

 FdItemResults (QString id, QString label="", QString calculation="", double previousResult=0, double result=0)
QString id () const
QString label () const
QString calculation () const
double result () const
double previousResult () const
void setId (QString id)
void setLabel (QString label)
void setCalculation (QString calculation)
void setResult (double result)
void setPreviousResult (double result)
bool isEmpty () const
bool parseCalculation ()
QDomElement toXml (QDomDocument &document) const

Static Public Member Functions

static FdItemResults_p pointer (QDomElement &calculation)
static FdItemResults_p pointer (FdItemResults_p model)

Private Attributes

QString mId
QString mLabel
QString mCalculation
double mResult
double mPreviousResult

Detailed Description

Items for FdModelResults.

A FdItemResults is one line of tab FdModelResults.

Definition at line 31 of file FdItemResults.hpp.

Constructor & Destructor Documentation

FdItemResults::FdItemResults ( QString  id,
QString  label = "",
QString  calculation = "",
double  previousResult = 0,
double  result = 0 
)

Definition at line 23 of file FdItemResults.cpp.

Member Function Documentation

QString FdItemResults::calculation ( ) const

Definition at line 60 of file FdItemResults.cpp.

QString FdItemResults::id ( ) const

Definition at line 50 of file FdItemResults.cpp.

bool FdItemResults::isEmpty ( ) const

Returns true if there is no label and no calculation.

Definition at line 103 of file FdItemResults.cpp.

QString FdItemResults::label ( ) const

Definition at line 55 of file FdItemResults.cpp.

bool FdItemResults::parseCalculation ( )
FdItemResults_p FdItemResults::pointer ( QDomElement &  calculation)
static

Creates a new item from the xml source.

Definition at line 31 of file FdItemResults.cpp.

FdItemResults_p FdItemResults::pointer ( FdItemResults_p  model)
static

Copy function to create a new item with the given parent, based on model.

Definition at line 42 of file FdItemResults.cpp.

double FdItemResults::previousResult ( ) const

Definition at line 70 of file FdItemResults.cpp.

double FdItemResults::result ( ) const

Definition at line 65 of file FdItemResults.cpp.

void FdItemResults::setCalculation ( QString  calculation)

Definition at line 85 of file FdItemResults.cpp.

void FdItemResults::setId ( QString  id)

Definition at line 75 of file FdItemResults.cpp.

void FdItemResults::setLabel ( QString  label)

Definition at line 80 of file FdItemResults.cpp.

void FdItemResults::setPreviousResult ( double  result)

Definition at line 95 of file FdItemResults.cpp.

void FdItemResults::setResult ( double  result)

Definition at line 90 of file FdItemResults.cpp.

QDomElement FdItemResults::toXml ( QDomDocument &  document) const

Definition at line 111 of file FdItemResults.cpp.

Member Data Documentation

QString FdItemResults::mCalculation
private

How the result will be calculated. This line is a sequence of operation between ids of FdItemCoa, of other results and scalars.

Access functions :

Definition at line 60 of file FdItemResults.hpp.

QString FdItemResults::mId
private

Unique user defined identifier of the calculation.

Access functions :

Definition at line 42 of file FdItemResults.hpp.

QString FdItemResults::mLabel
private

Unique user defined label of the calculation.

Access functions :

Definition at line 51 of file FdItemResults.hpp.

double FdItemResults::mPreviousResult
private

Previous year result of the calculation.

Access functions :

Definition at line 78 of file FdItemResults.hpp.

double FdItemResults::mResult
private

Actual result of the calculation.

Access functions :

Definition at line 69 of file FdItemResults.hpp.


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