Plugins
ug::DocuGen Namespace Reference

App for generating documentation of registered classes and methods. More...

Namespaces

 Doxygen
 Organization unit for Doxygen commands.
 

Classes

class  ClassHierarchyProvider
 
class  CppGenerator
 Generator to produce valid but dummy C++ files from registered classes and functions. More...
 
class  UGDocuClassDescription
 
class  UGRegistryGroup
 

Functions

void AddLuaDebugCompletions (ostream &f)
 
bool ClassGroupDescSort (const ClassGroupDesc *i, const ClassGroupDesc *j)
 
std::string ConstructorInfoHTML (std::string classname, const bridge::ExportedConstructor &thefunc, std::string group)
 
string ConstructorInfoHTML (string classname, const bridge::ExportedConstructor &thefunc, string group)
 
bool ExportedClassSort (const IExportedClass *i, const IExportedClass *j)
 
bool ExportedFunctionsGroupSort (const bridge::ExportedFunction *i, const bridge::ExportedFunction *j)
 
bool ExportedFunctionsSort (const bridge::ExportedFunctionBase *i, const bridge::ExportedFunctionBase *j)
 
string FunctionInfoHTML (const bridge::ExportedFunctionBase &thefunc, const char *group)
 
string FunctionInfoHTML (const bridge::ExportedFunctionBase &thefunc, const IExportedClass *c, bool bConst)
 
std::string GetBeautifiedTag (std::string tag)
 
string GetBeautifiedTag (string tag)
 
string GetClassGroup (string classname)
 
string GetClassGroupStd (string classname)
 
std::string GetFilenameForGroup (std::string s, std::string dir="")
 
string GetFilenameForGroup (string s, string dir)
 
void GetGroups (std::map< string, UGRegistryGroup > &g)
 
void GetGroups (std::vector< UGDocuClassDescription > &classes, std::vector< UGDocuClassDescription > &classesAndGroups, std::vector< UGDocuClassDescription > &classesAndGroupsAndImplementations)
 
UGDocuClassDescriptionGetUGDocuClassDescription (std::vector< UGDocuClassDescription > &classes, const IExportedClass *c)
 
bool GroupNameSortFunction (const UGDocuClassDescription &i, const UGDocuClassDescription &j)
 
bool IsPluginGroup (std::string g)
 
bool IsPluginGroup (string g)
 
bool NameSortFunction (const UGDocuClassDescription &i, const UGDocuClassDescription &j)
 
void ParameterToString (ostream &file, const bridge::ParameterInfo &par, int i, bool bHTML)
 
void ParameterToString (std::ostream &file, const bridge::ParameterInfo &par, int i, bool bHTML)
 
void PrintClassFunctionsHMTL (ostream &file, const IExportedClass *c, bool bInherited)
 
void PrintClassFunctionsHMTL (std::ostream &file, const bridge::IExportedClass *c, bool bInherited)
 
template<typename T >
void remove_doubles (vector< T > &v)
 
std::string tohtmlstring (const std::string &str)
 
string tohtmlstring (const string &str)
 
void WriteClassCompleter (ostream &classhtml, UGDocuClassDescription *d, ClassHierarchy &hierarchy)
 
void WriteClassHierarchy (const char *dir, ClassHierarchy &hierarchy)
 
void WriteClassHierarchy (ostream &file, ClassHierarchy &c)
 
void WriteClassHierarchy (std::ostream &file, bridge::ClassHierarchy &c)
 
void WriteClassHTML (const char *dir, UGDocuClassDescription *d, ClassHierarchy &hierarchy)
 
void WriteClassIndex (const char *dir, std::vector< UGDocuClassDescription > &classesAndGroups, bool bGroup)
 
bool WriteClassUsageExact (const std::string &preamble, std::ostream &file, const char *classname, bool OutParameters)
 
bool WriteClassUsageExact (const string &preamble, ostream &file, const char *classname, bool OutParameters)
 
void WriteCompletionList (std::vector< UGDocuClassDescription > &classesAndGroupsAndImplementations, bool bSilent, ClassHierarchy &hierarchy)
 
void WriteCompletionList (std::vector< UGDocuClassDescription > classesAndGroupsAndImplementations, bool bSilent)
 
void WriteConstructorCompleter (ostream &f, string classname, const bridge::ExportedConstructor &thefunc, string group)
 
void WriteFooter (fstream &file)
 
void WriteFooter (std::fstream &file)
 
void WriteFunctionCompleter (ostream &f, const char *desc, const bridge::ExportedFunctionBase &thefunc, string group, const char *pClass=NULL, bool bConst=false)
 
void WriteFunctionHTMLCompleter (ostream &file, const bridge::ExportedFunctionBase &thefunc, const char *group, const char *pClass)
 
template<typename TSortFunction >
void WriteGlobalFunctions (const char *dir, const char *filename, TSortFunction sortFunction)
 
void WriteGroups (const char *dir, std::vector< UGDocuClassDescription > &classesAndGroups)
 
void WriteHeader (fstream &file, const string &title)
 
void WriteHeader (std::fstream &file, const std::string &title)
 
void WriteHTMLDocu (std::vector< UGDocuClassDescription > &classes, std::vector< UGDocuClassDescription > &classesAndGroups, const char *dir, ClassHierarchy &hierarchy)
 
template<typename T >
static void WriteParametersIn (std::ostream &file, const T &thefunc, bool bHTML=true)
 
template<typename T >
static void WriteParametersOut (std::ostream &file, const T &thefunc, bool bHTML=true)
 
void WriteUGDocuCSS (const char *dir)
 

Variables

vector< UGDocuClassDescriptionclasses
 
vector< UGDocuClassDescriptionclassesAndGroups
 
vector< UGDocuClassDescriptionclassesAndGroupsAndImplementations
 

Detailed Description

App for generating documentation of registered classes and methods.

Function Documentation

◆ ConstructorInfoHTML()

string ug::DocuGen::ConstructorInfoHTML ( string  classname,
const bridge::ExportedConstructor thefunc,
string  group 
)

◆ GetBeautifiedTag()

string ug::DocuGen::GetBeautifiedTag ( string  tag)

References ReplaceAll().

Referenced by WriteClassHTML().

◆ GetClassGroup()

◆ GetClassGroupStd()

◆ GetFilenameForGroup()

string ug::DocuGen::GetFilenameForGroup ( string  s,
string  dir 
)

References IsPluginGroup(), ReplaceAll(), and s.

Referenced by WriteClassHTML(), and WriteGroups().

◆ GetGroups() [1/2]

◆ GetGroups() [2/2]

◆ GetUGDocuClassDescription()

UGDocuClassDescription * ug::DocuGen::GetUGDocuClassDescription ( std::vector< UGDocuClassDescription > &  classes,
const IExportedClass c 
)

◆ GroupNameSortFunction()

bool ug::DocuGen::GroupNameSortFunction ( const UGDocuClassDescription i,
const UGDocuClassDescription j 
)

◆ IsPluginGroup()

bool ug::DocuGen::IsPluginGroup ( string  g)

References StartsWith().

Referenced by GetFilenameForGroup(), and WriteGroups().

◆ NameSortFunction()

bool ug::DocuGen::NameSortFunction ( const UGDocuClassDescription i,
const UGDocuClassDescription j 
)

◆ ParameterToString()

void ug::DocuGen::ParameterToString ( ostream &  file,
const bridge::ParameterInfo par,
int  i,
bool  bHTML 
)

◆ PrintClassFunctionsHMTL()

◆ remove_doubles()

template<typename T >
void ug::DocuGen::remove_doubles ( vector< T > &  v)

◆ tohtmlstring()

string ug::DocuGen::tohtmlstring ( const string &  str)

Referenced by WriteHeader().

◆ WriteClassHierarchy()

void ug::DocuGen::WriteClassHierarchy ( ostream &  file,
ClassHierarchy c 
)

◆ WriteClassUsageExact()

◆ WriteFooter()

void ug::DocuGen::WriteFooter ( fstream &  file)

◆ WriteGlobalFunctions()

template<typename TSortFunction >
void ug::DocuGen::WriteGlobalFunctions ( const char *  dir,
const char *  filename,
TSortFunction  sortFunction 
)

◆ WriteGroups()

◆ WriteHeader()

void ug::DocuGen::WriteHeader ( fstream &  file,
const string &  title 
)