|
My Project
|
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... | |
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.
| void CReport::GetAllReport | ( | string & | sReport | ) |
get report string for all items.
: [out] pReport contains the report
| 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
| double CReport::GetValue | ( | const char * | strItemName | ) |
get the value of a named item.
If the item does not exist, 0 is returned.
| 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.
| 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.
1.8.12