diff options
Diffstat (limited to 'src/docparser.h')
-rw-r--r-- | src/docparser.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/docparser.h b/src/docparser.h index 1beadcd..15180f9 100644 --- a/src/docparser.h +++ b/src/docparser.h @@ -608,13 +608,24 @@ class DocIncOperator : public DocNode enum Type { Line, SkipLine, Skip, Until }; DocIncOperator(DocNode *parent,Type t,const QCString &pat, const QCString &context,bool isExample,const QCString &exampleFile) : - m_type(t), m_pattern(pat), m_context(context), + m_type(t), m_pattern(pat), m_context(context), m_isFirst(FALSE), m_isLast(FALSE), m_isExample(isExample), m_exampleFile(exampleFile) { m_parent = parent; } Kind kind() const { return Kind_IncOperator; } Type type() const { return m_type; } + const char *typeAsString() const + { + switch(m_type) + { + case Line: return "line"; + case SkipLine: return "skipline"; + case Skip: return "skip"; + case Until: return "until"; + } + return ""; + } int line() const { return m_line; } - bool lineno() const { return m_lineno; } + bool showLineNo() const { return m_showLineNo; } QCString text() const { return m_text; } QCString pattern() const { return m_pattern; } QCString context() const { return m_context; } @@ -631,7 +642,7 @@ class DocIncOperator : public DocNode private: Type m_type; int m_line; - bool m_lineno; + bool m_showLineNo; QCString m_text; QCString m_pattern; QCString m_context; |