X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f3998820a3a8770d705828e542f1b774703f4fc1..b640fa17f3359e2766232e5dae3922de28236bde:/utils/ifacecheck/src/xmlparser.h?ds=sidebyside diff --git a/utils/ifacecheck/src/xmlparser.h b/utils/ifacecheck/src/xmlparser.h index 7f0cf3e3c2..f491bf0b08 100644 --- a/utils/ifacecheck/src/xmlparser.h +++ b/utils/ifacecheck/src/xmlparser.h @@ -16,6 +16,7 @@ #include #include #include +#include /* @@ -30,24 +31,8 @@ // ...fix description... */ - - -// helper macros -#define LogMessage(fmt, ...) { if (g_bLogEnabled) { wxPrintf(fmt "\n", __VA_ARGS__); fflush(stdout); }} -#define LogWarning(fmt, ...) { if (g_bLogEnabled) { wxPrintf(fmt "\n", __VA_ARGS__); fflush(stdout); }} -#define LogError(fmt, ...) { if (g_bLogEnabled) { wxPrintf("ERROR: " fmt "\n", __VA_ARGS__); fflush(stdout); }} -#define wxPrint(str) { wxPrintf(str); fflush(stdout); } - -// enable/disable logging -extern bool g_bLogEnabled; - -class LogNull -{ -public: - LogNull() { g_bLogEnabled = false; } - ~LogNull() { g_bLogEnabled = true; } -}; - +// NOTE: all messages in this way are printed on the stderr +//#define wxLogWarning wxLogMessage // ---------------------------------------------------------------------------- @@ -213,11 +198,14 @@ public: // getters { return m_retType==wxEmptyType && !m_strName.StartsWith("~"); } bool IsDtor() const { return m_retType==wxEmptyType && m_strName.StartsWith("~"); } + bool IsOperator() const + { return m_strName.StartsWith("operator"); } bool IsDeprecated() const { return m_bDeprecated; } + public: // setters void SetReturnType(const wxType& t) @@ -263,6 +251,7 @@ public: // misc // argument, thus is able to act also as default ctor bool ActsAsDefaultCtor() const; + // dumps the contents of this class in the given stream void Dump(wxTextOutputStream& stream) const; protected: @@ -441,9 +430,10 @@ public: wxClassPtrArray FindClassesDefinedIn(const wxString& headerfile) const; void ShowProgress() - { /*wxPrint(".");*/ } + { /*wxFprintf(stderr, ".");*/ } - bool CheckParseResults() const; + // is this interface coherent? + bool CheckConsistency() const; protected: wxClassArray m_classes;