1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
|
#ifndef _UMLCLASS_H
#define _UMLCLASS_H
#include "UmlBaseClass.h"
#include <qcstring.h>
#include "Vector.h"
#include <qvaluelist.h>
class UmlActualParameter;
class UmlFormalParameter;
// This class manages 'classes', notes that the class 'ClassItem'
// is a mother class of the class's children.
//
// You can modify it as you want (except the constructor)
class UmlClass : public UmlBaseClass {
public:
UmlClass(void * id, const QCString & n) : UmlBaseClass(id, n) { inherited_opers = 0; };
//returns a string indicating the king of the element
virtual QCString sKind();
//set he html ref
//set the classes list
//set the operations list including inherited ones
//set the daugther inheritance classes list
virtual void memo_ref();
//entry to produce the html code receiving chapter number
//path, rank in the mother and level in the browser tree
virtual void html(QCString pfix, unsigned int rank, unsigned int level);
//generate the html definition in an own file
void html();
//generate the html definition except header/chapter in the current file
void gen_html(QCString pfix, unsigned int rank, unsigned int level);
//write a html ref to the class
virtual void write();
//write a html ref to the class going to an other html file
virtual void write(QCString target);
static void ref_index();
static void generate_index();
private:
void add_inherited_opers(Vector * ops);
protected:
Vector * inherited_opers;
static Vector classes;
private:
//produce the definition in C++
void gen_cpp_decl(QCString s, bool descr);
//produce the definition in Java
void gen_java_decl(QCString s, bool descr);
//produce the definition in Php
void gen_php_decl(QCString s, bool descr);
//produce the definition in Python
void gen_python_decl(QCString s, bool descr);
void generate(const QValueList<UmlActualParameter> a, UmlClass * mother, bool cpp);
void generate(const QValueList<UmlFormalParameter> f);
void generics();
public:
static void generate();
protected:
Vector subClasses;
public:
virtual bool chapterp();
};
#endif
|