Doxygen
Loading...
Searching...
No Matches
CodeParserOptions Struct Reference

Options to configure the code parser. More...

#include <src/parserintf.h>

Collaboration diagram for CodeParserOptions:

Public Member Functions

bool isExample () const
DString exampleName () const
const FileDef * fileDef () const
int startLine () const
int endLine () const
bool inlineFragment () const
const MemberDef * memberDef () const
bool showLineNumbers () const
const Definition * searchCtx () const
bool collectXRefs () const
CodeParserOptions & setExample (bool isExample, const DString &name)
 Associate this comment block with a given example.
CodeParserOptions & setFileDef (const FileDef *fd)
CodeParserOptions & setStartLine (int lineNr)
CodeParserOptions & setEndLine (int lineNr)
CodeParserOptions & setInlineFragment (bool enable)
CodeParserOptions & setMemberDef (const MemberDef *md)
CodeParserOptions & setShowLineNumbers (bool enable)
CodeParserOptions & setSearchCtx (const Definition *d)
CodeParserOptions & setCollectXRefs (bool enable)

Private Attributes

bool m_isExample = false
DString m_exampleName
const FileDef * m_fileDef = nullptr
int m_startLine = -1
int m_endLine = -1
bool m_inlineFragment = false
const MemberDef * m_memberDef = nullptr
bool m_showLineNumbers = true
const Definition * m_searchCtx = nullptr
bool m_collectXRefs = true

Detailed Description

Options to configure the code parser.

Definition at line 76 of file parserintf.h.

Member Function Documentation

◆ collectXRefs()

bool CodeParserOptions::collectXRefs ( ) const
inline

◆ endLine()

◆ exampleName()

◆ fileDef()

◆ inlineFragment()

◆ isExample()

◆ memberDef()

const MemberDef * CodeParserOptions::memberDef ( ) const
inline

Definition at line 86 of file parserintf.h.

86{ return m_memberDef; }
const MemberDef * m_memberDef
Definition parserintf.h:128

References m_memberDef.

Referenced by CCodeParser::parseCode(), LexCodeParser::parseCode(), and VHDLCodeParser::parseCode().

◆ searchCtx()

const Definition * CodeParserOptions::searchCtx ( ) const
inline

◆ setCollectXRefs()

CodeParserOptions & CodeParserOptions::setCollectXRefs ( bool enable)
inline

Definition at line 118 of file parserintf.h.

119 { m_collectXRefs = enable; return *this; }

References m_collectXRefs.

Referenced by handleCCode(), and CodeFragmentManager::parseCodeFragment().

◆ setEndLine()

CodeParserOptions & CodeParserOptions::setEndLine ( int lineNr)
inline

Definition at line 103 of file parserintf.h.

104 { m_endLine = lineNr; return *this; }

References m_endLine.

Referenced by DefinitionImpl::writeInlineCode(), and VhdlDocGen::writeSource().

◆ setExample()

CodeParserOptions & CodeParserOptions::setExample ( bool isExample,
const DString & name )
inline

Associate this comment block with a given example.

Definition at line 94 of file parserintf.h.

95 { m_isExample=isExample; m_exampleName = name; return *this; }
bool isExample() const
Definition parserintf.h:80

References isExample(), m_exampleName, and m_isExample.

◆ setFileDef()

◆ setInlineFragment()

◆ setMemberDef()

CodeParserOptions & CodeParserOptions::setMemberDef ( const MemberDef * md)
inline

Definition at line 109 of file parserintf.h.

110 { m_memberDef = md; return *this; }

References m_memberDef.

Referenced by handleCCode(), DefinitionImpl::writeInlineCode(), and VhdlDocGen::writeSource().

◆ setSearchCtx()

CodeParserOptions & CodeParserOptions::setSearchCtx ( const Definition * d)
inline

Definition at line 115 of file parserintf.h.

116 { m_searchCtx = d; return *this; }

References m_searchCtx.

Referenced by handleCCode(), HtmlDocVisitor::operator()(), HtmlDocVisitor::operator()(), and HtmlDocVisitor::operator()().

◆ setShowLineNumbers()

◆ setStartLine()

◆ showLineNumbers()

◆ startLine()

Member Data Documentation

◆ m_collectXRefs

bool CodeParserOptions::m_collectXRefs = true
private

Definition at line 131 of file parserintf.h.

Referenced by collectXRefs(), and setCollectXRefs().

◆ m_endLine

int CodeParserOptions::m_endLine = -1
private

Definition at line 126 of file parserintf.h.

Referenced by endLine(), and setEndLine().

◆ m_exampleName

DString CodeParserOptions::m_exampleName
private

Definition at line 123 of file parserintf.h.

Referenced by exampleName(), and setExample().

◆ m_fileDef

const FileDef* CodeParserOptions::m_fileDef = nullptr
private

Definition at line 124 of file parserintf.h.

Referenced by fileDef(), and setFileDef().

◆ m_inlineFragment

bool CodeParserOptions::m_inlineFragment = false
private

Definition at line 127 of file parserintf.h.

Referenced by inlineFragment(), and setInlineFragment().

◆ m_isExample

bool CodeParserOptions::m_isExample = false
private

Definition at line 122 of file parserintf.h.

Referenced by isExample(), and setExample().

◆ m_memberDef

const MemberDef* CodeParserOptions::m_memberDef = nullptr
private

Definition at line 128 of file parserintf.h.

Referenced by memberDef(), and setMemberDef().

◆ m_searchCtx

const Definition* CodeParserOptions::m_searchCtx = nullptr
private

Definition at line 130 of file parserintf.h.

Referenced by searchCtx(), and setSearchCtx().

◆ m_showLineNumbers

bool CodeParserOptions::m_showLineNumbers = true
private

Definition at line 129 of file parserintf.h.

Referenced by setShowLineNumbers(), and showLineNumbers().

◆ m_startLine

int CodeParserOptions::m_startLine = -1
private

Definition at line 125 of file parserintf.h.

Referenced by setStartLine(), and startLine().


The documentation for this struct was generated from the following file: