Public Member Functions | Private Attributes | List of all members
XRefDummyCodeGenerator Class Reference
Inheritance diagram for XRefDummyCodeGenerator:
CodeOutputInterface

Public Member Functions

 XRefDummyCodeGenerator (FileDef *fd)
 
 ~XRefDummyCodeGenerator ()
 
void codify (const char *)
 
void writeCodeLink (const char *, const char *, const char *, const char *, const char *)
 
void writeLineNumber (const char *, const char *, const char *, int)
 
virtual void writeTooltip (const char *, const DocLinkInfo &, const char *, const char *, const SourceLinkInfo &, const SourceLinkInfo &)
 
void startCodeLine (bool)
 
void endCodeLine ()
 
void startCodeAnchor (const char *)
 
void endCodeAnchor ()
 
void startFontClass (const char *)
 
void endFontClass ()
 
void writeCodeAnchor (const char *)
 
void setCurrentDoc (Definition *, const char *, bool)
 
void addWord (const char *, bool)
 
void linkableSymbol (int l, const char *sym, Definition *symDef, Definition *context)
 
- Public Member Functions inherited from CodeOutputInterface
virtual ~CodeOutputInterface ()
 

Private Attributes

FileDefm_fd
 

Detailed Description

Definition at line 42 of file doxyapp.cpp.

Constructor & Destructor Documentation

XRefDummyCodeGenerator::XRefDummyCodeGenerator ( FileDef fd)
inline

Definition at line 45 of file doxyapp.cpp.

45 : m_fd(fd) {}
XRefDummyCodeGenerator::~XRefDummyCodeGenerator ( )
inline

Definition at line 46 of file doxyapp.cpp.

46 {}

Member Function Documentation

void XRefDummyCodeGenerator::addWord ( const char *  ,
bool   
)
inlinevirtual

Implements CodeOutputInterface.

Definition at line 64 of file doxyapp.cpp.

64 {}
void XRefDummyCodeGenerator::codify ( const char *  s)
inlinevirtual

Writes an code fragment to the output. This function should keep spaces visible, should break lines at a newline and should convert tabs to the right number of spaces.

Implements CodeOutputInterface.

Definition at line 50 of file doxyapp.cpp.

50 {}
void XRefDummyCodeGenerator::endCodeAnchor ( )
inline

Definition at line 59 of file doxyapp.cpp.

59 {}
void XRefDummyCodeGenerator::endCodeLine ( )
inlinevirtual

Ends a line of code started with startCodeLine()

Implements CodeOutputInterface.

Definition at line 57 of file doxyapp.cpp.

57 {}
void XRefDummyCodeGenerator::endFontClass ( )
inlinevirtual

Ends a block started with startFontClass()

Implements CodeOutputInterface.

Definition at line 61 of file doxyapp.cpp.

61 {}
void XRefDummyCodeGenerator::linkableSymbol ( int  l,
const char *  sym,
Definition symDef,
Definition context 
)
inline

Definition at line 67 of file doxyapp.cpp.

68  {
69  QCString ctx;
70  if (context) // the context of the symbol is known
71  {
72  if (context->definitionType()==Definition::TypeMember) // it is inside a member
73  {
74  Definition *parentContext = context->getOuterScope();
75  if (parentContext && parentContext->definitionType()==Definition::TypeClass)
76  // it is inside a member of a class
77  {
78  ctx.sprintf("inside %s %s of %s %s",
79  ((MemberDef *)context)->memberTypeName().data(),
80  context->name().data(),
81  ((ClassDef*)parentContext)->compoundTypeString().data(),
82  parentContext->name().data());
83  }
84  else if (parentContext==Doxygen::globalScope) // it is inside a global member
85  {
86  ctx.sprintf("inside %s %s",
87  ((MemberDef *)context)->memberTypeName().data(),
88  context->name().data());
89  }
90  }
91  if (ctx.isEmpty()) // it is something else (class, or namespace member, ...)
92  {
93  ctx.sprintf("in %s",context->name().data());
94  }
95  }
96  printf("Found symbol %s at line %d of %s %s\n",
97  sym,l,m_fd->getDefFileName().data(),ctx.data());
98  if (symDef && context) // in this case the definition of the symbol is
99  // known to doxygen.
100  {
101  printf("-> defined at line %d of %s\n",
102  symDef->getDefLine(),symDef->getDefFileName().data());
103  }
104  }
bool isEmpty() const
Definition: qcstring.h:189
static QStrList * l
Definition: config.cpp:1044
QCString getDefFileName() const
static NamespaceDef * globalScope
Definition: doxygen.h:128
virtual DefType definitionType() const =0
const QCString & name() const
Definition: definition.h:114
int getDefLine() const
Definition: definition.h:188
const char * data() const
Definition: qcstring.h:207
QCString & sprintf(const char *format,...)
Definition: qcstring.cpp:27
virtual Definition * getOuterScope() const
void XRefDummyCodeGenerator::setCurrentDoc ( Definition ,
const char *  ,
bool   
)
inlinevirtual

Implements CodeOutputInterface.

Definition at line 63 of file doxyapp.cpp.

63 {}
void XRefDummyCodeGenerator::startCodeAnchor ( const char *  )
inline

Definition at line 58 of file doxyapp.cpp.

58 {}
void XRefDummyCodeGenerator::startCodeLine ( bool  )
inlinevirtual

Implements CodeOutputInterface.

Definition at line 56 of file doxyapp.cpp.

56 {}
void XRefDummyCodeGenerator::startFontClass ( const char *  clsName)
inlinevirtual

Starts a block with a certain meaning. Used for syntax highlighting, which elements of the same type are rendered using the same 'font class'.

Parameters
clsNameThe category name.

Implements CodeOutputInterface.

Definition at line 60 of file doxyapp.cpp.

60 {}
void XRefDummyCodeGenerator::writeCodeAnchor ( const char *  name)
inlinevirtual

Write an anchor to a source listing.

Parameters
nameThe name of the anchor.

Implements CodeOutputInterface.

Definition at line 62 of file doxyapp.cpp.

62 {}
void XRefDummyCodeGenerator::writeCodeLink ( const char *  ref,
const char *  file,
const char *  anchor,
const char *  name,
const char *  tooltip 
)
inlinevirtual

Writes a link to an object in a code fragment.

Parameters
refIf this is non-zero, the object is to be found in an external documentation file.
fileThe file in which the object is located.
anchorThe anchor uniquely identifying the object within the file.
nameThe text to display as a placeholder for the link.
tooltipThe tooltip to display when the mouse is on the link.

Implements CodeOutputInterface.

Definition at line 51 of file doxyapp.cpp.

51 {}
void XRefDummyCodeGenerator::writeLineNumber ( const char *  ref,
const char *  file,
const char *  anchor,
int  lineNumber 
)
inlinevirtual

Writes the line number of a source listing

Parameters
refExternal reference (when imported from a tag file)
fileThe file part of the URL pointing to the docs.
anchorThe anchor part of the URL pointing to the docs.
lineNumberThe line number to write

Implements CodeOutputInterface.

Definition at line 52 of file doxyapp.cpp.

52 {}
virtual void XRefDummyCodeGenerator::writeTooltip ( const char *  id,
const DocLinkInfo docInfo,
const char *  decl,
const char *  desc,
const SourceLinkInfo defInfo,
const SourceLinkInfo declInfo 
)
inlinevirtual

Writes a tool tip definition

Parameters
idunique identifier for the tooltip
docInfoInfo about the symbol's documentation.
declfull declaration of the symbol (for functions)
descbrief description for the symbol
defInfoInfo about the symbol's definition in the source code
declInfoInfo about the symbol's declaration in the source code

Implements CodeOutputInterface.

Definition at line 53 of file doxyapp.cpp.

55  {}

Member Data Documentation

FileDef* XRefDummyCodeGenerator::m_fd
private

Definition at line 106 of file doxyapp.cpp.


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