浏览该文件的文档.
60 if (ext.
at(0)<
'0' || ext.
at(0)>
'9')
94 return std::make_unique<ManGenerator>(*
this);
108 term(
"Could not create output directory %s\n",
qPrint(manOutput));
128 if (name.
isEmpty())
return "noname";
130 const char *p=name.
data();
158 if (fileName.
right(manExtension.
length())!=manExtension)
160 fileName+=manExtension;
188 m_t <<
"\" \\\" -*- nroff -*-\n";
297 const char *p=str.
data();
303 case '-':
m_t <<
"\\-";
break;
304 case '.':
m_t <<
"\\&.";
break;
305 case '\\':
m_t <<
"\\\\";
m_col++;
break;
306 case '\n':
m_t <<
"\n";
m_col=0;
break;
322 const char *p=str.
data();
324 int spacesToNextTabStop;
330 case '.':
m_t <<
"\\&.";
break;
331 case '\t': spacesToNextTabStop =
334 m_col+=spacesToNextTabStop;
337 case '\\':
m_t <<
"\\";
m_col++;
break;
353 case '\\':
m_t <<
"\\\\";
break;
355 default:
m_t << c;
break;
364 {
m_t <<
"\n" <<
".PP\n";
437 if (i!=-1) baseName=baseName.
right(baseName.
length()-i-2);
447 std::ofstream linkStream(
fileName.
str(),std::ofstream::out | std::ofstream::binary);
448 if (linkStream.is_open())
490 m_t <<
".SH SYNOPSIS\n.br\n.PP\n";
542 m_t <<
"\n.ti -1c\n.RI \"";
569 m_t <<
"\n.PP\n.RI \"\\fB";
574 m_t <<
"\\fP\"\n.br\n";
609 default:
ASSERT(0);
break;
625 default:
ASSERT(0);
break;
640 {
m_t <<
"\n" <<
".PP\n";
757 m_t <<
"\n.PP\n" <<
".in -1c\n";
764 m_t <<
"\\fP\"\n" <<
".in +1c\n";
832 m_t <<
"\\fC [" << l <<
"]\\fP";
833 if (!isLast)
m_t <<
", ";
virtual QCString getDefFileExtension() const =0
QCString fileName() const
void endInlineMemberType()
void startInlineMemberDoc()
virtual QCString trCompoundMembers()=0
void startInlineMemberName()
void startMemberDoc(const QCString &, const QCString &, const QCString &, const QCString &, int, int, bool)
The common base class of all entity definitions found in the sources.
static QCString getExtension()
static QCString getSubdir()
void startConstraintParam()
Class representing a directory in the file system
void startMemberDocSimple(bool)
uint length() const
Returns the length of the string, not counting the 0-terminator.
void startParagraph(const QCString &classDef)
void startGroupHeader(int)
int findRev(char c, int index=-1, bool cs=TRUE) const
void startDoxyAnchor(const QCString &, const QCString &, const QCString &, const QCString &, const QCString &)
bool isEmpty() const
Returns TRUE iff the string is empty
void endConstraintParam()
void startFile(const QCString &name, const QCString &manName, const QCString &title, int)
Abstract node interface with type information.
void startAnonTypeScope(int)
Concrete visitor implementation for LaTeX output.
void codify(const QCString &text)
void startSubsubsection()
void endIndexItem(const QCString &ref, const QCString &file)
virtual QCString trEnumerationValues()=0
void endMemberGroup(bool)
void startMemberGroupHeader(bool)
char & at(size_t i)
Returns a reference to the character at index i.
void writeString(const QCString &text)
static QCString buildFileName(const QCString &name)
void startMemberHeader(const QCString &, int)
SectionType
enum representing the various types of sections and entities that can be referred to.
void startConstraintType()
void startIndexItem(const QCString &ref, const QCString &file)
void endTitleHead(const QCString &, const QCString &)
A model of a class/file/namespace member symbol.
QCString dateToString(bool includeTime)
#define Config_getInt(name)
virtual std::unique_ptr< OutputGenerator > clone() const
QCString left(size_t len) const
void endMemberDocSimple(bool)
ManGenerator & operator=(const ManGenerator &g)
void startConstraintDocs()
Translator * theTranslator
void endSection(const QCString &, SectionType)
void startMemberGroupDocs()
void startMemberItem(const QCString &, int, const QCString &)
void endCodeFragment(const QCString &)
void startCodeFragment(const QCString &)
void clearSubDirs(const Dir &d)
void endMemberGroupDocs()
void writeLabel(const QCString &l, bool isLast)
void startDescTable(const QCString &t)
Various UTF8 related helper functions.
const char * writeUTF8Char(TextStream &t, const char *s)
Writes the UTF8 character pointed to by s to stream t and returns a pointer to the next character.
Abstract output generator.
QCString mid(size_t index, size_t len=static_cast< size_t >(-1)) const
void writeObjectLink(const QCString &ref, const QCString &file, const QCString &anchor, const QCString &name)
void endAnonTypeScope(int)
#define Config_getBool(name)
void docify(const QCString &text)
void writeCodeLink(CodeSymbolType type, const QCString &ref, const QCString &file, const QCString &anchor, const QCString &name, const QCString &tooltip)
void term(const char *fmt,...)
Minimal replacement for QFileInfo.
void startConstraintList(const QCString &)
const char * qPrint(const char *s)
#define Config_getString(name)
void endInlineMemberDoc()
void startParamList(ParamListTypes, const QCString &title)
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string
void startDescList(SectionTypes)
virtual void accept(DocVisitor *v)=0
void startSection(const QCString &, const QCString &, SectionType)
OutputGenerator & operator=(const OutputGenerator &o)
void startInlineMemberType()
void writeStartAnnoItem(const QCString &type, const QCString &file, const QCString &path, const QCString &name)
void endInlineMemberName()
virtual QCString trExamples()=0
void endMemberGroupHeader()
bool mkdir(const std::string &path, bool acceptsAbsPath=true) const
A bunch of utility functions.
void createSubDirs(const Dir &d)
QCString right(size_t len) const
void startPlainFile(const QCString &name)
void startHtmlLink(const QCString &url)
Generator for Man page output.
QCString & prepend(const char *s)
void writeDoc(DocNode *, const Definition *, const MemberDef *, int)
This is an alternative implementation of QCString.