| 1 |
#include "function.h" |
| 2 |
|
| 3 |
clFunction::clFunction() { Reset(); } |
| 4 |
|
| 5 |
clFunction::~clFunction() {} |
| 6 |
|
| 7 |
void clFunction::Reset() |
| 8 |
{ |
| 9 |
m_name = ""; |
| 10 |
m_scope = ""; |
| 11 |
m_returnValue.Reset(); |
| 12 |
m_name = ""; |
| 13 |
m_signature = ""; |
| 14 |
m_lineno = 0; |
| 15 |
m_retrunValusConst = ""; |
| 16 |
m_isVirtual = false; |
| 17 |
m_isPureVirtual = false; |
| 18 |
m_isConst = false; |
| 19 |
m_isFinal = false; |
| 20 |
} |
| 21 |
|
| 22 |
void clFunction::Print() |
| 23 |
{ |
| 24 |
fprintf(stdout, |
| 25 |
"{m_name=%s, m_isConst=%s, m_lineno=%d, m_scope=%s, m_signature=%s, m_isVirtual=%s, m_isPureVirtual=%s, " |
| 26 |
"m_isFinal=%s, m_retrunValusConst=%s, m_throws=%s\nm_returnValue=", |
| 27 |
m_name.c_str(), |
| 28 |
m_isConst ? "yes" : "no", |
| 29 |
m_lineno, |
| 30 |
m_scope.c_str(), |
| 31 |
m_signature.c_str(), |
| 32 |
m_isVirtual ? "yes" : "no", |
| 33 |
m_isPureVirtual ? "yes" : "no", |
| 34 |
m_isFinal ? "yes" : "no", |
| 35 |
m_retrunValusConst.c_str(), |
| 36 |
m_throws.c_str()); |
| 37 |
|
| 38 |
m_returnValue.Print(); |
| 39 |
fprintf(stdout, "}\n"); |
| 40 |
fflush(stdout); |
| 41 |
} |