My Project
Classes | Public Member Functions | List of all members
ParaEngine::CReport Class Reference

this is a default report class. More...

#include <Report.h>

Public Member Functions

double GetValue (const char *strItemName)
 get the value of a named item. More...
 
void SetValue (const char *strItemName, double dValue)
 set the value of a named item. More...
 
void SetString (const char *strItemName, const char *str)
 set the string of a named item. More...
 
void GetItemReport (const char *strItemName, char *pReport)
 get report string for a specified item. More...
 
void GetAllReport (string &sReport)
 get report string for all items. More...
 

Detailed Description

this is a default report class.

for simplicity, it uses a list to store items. So do not save too many items inside a single report instance.

Member Function Documentation

§ GetAllReport()

void CReport::GetAllReport ( string &  sReport)

get report string for all items.

: [out] pReport contains the report

§ GetItemReport()

void CReport::GetItemReport ( const char *  strItemName,
char *  pReport 
)

get report string for a specified item.

if nothing is found, return "" : [out] pReport contains the report

§ GetValue()

double CReport::GetValue ( const char *  strItemName)

get the value of a named item.

If the item does not exist, 0 is returned.

§ SetString()

void CReport::SetString ( const char *  strItemName,
const char *  str 
)

set the string of a named item.

If the item does not exist, it shall be created and then saved.

§ SetValue()

void CReport::SetValue ( const char *  strItemName,
double  dValue 
)

set the value of a named item.

If the item does not exist, it shall be created and then saved.


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