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
|
#ifndef _UMLBASECLASSITEM_H
#define _UMLBASECLASSITEM_H
#include "UmlItem.h"
#include <qcstring.h>
// Mother class of the all the class's items including the class themself
class UmlBaseClassItem : public UmlItem {
public:
#ifdef WITHCPP
// return the C++ declaration
const QCString & cppDecl();
// to set the C++ declaration
//
// On error return FALSE in C++, produce a RuntimeException in Java
bool set_CppDecl(const char * s);
#endif
#ifdef WITHJAVA
// return the Java defininition
const QCString & javaDecl();
// to set the Java definition
//
// On error return FALSE in C++, produce a RuntimeException in Java
bool set_JavaDecl(const char * s);
#endif
#ifdef WITHIDL
// return the IDL declaration
const QCString & idlDecl();
// set the IDL declaration
//
// On error return FALSE in C++, produce a RuntimeException in Java
bool set_IdlDecl(const char * s);
#endif
virtual void unload(bool = FALSE, bool = FALSE);
friend class UmlBaseAttribute;
friend class UmlBaseOperation;
friend class UmlBaseRelation;
private:
#ifdef WITHCPP
QCString _cpp_decl;
#endif
#ifdef WITHJAVA
QCString _java_decl;
#endif
#ifdef WITHIDL
QCString _idl_decl;
#endif
protected:
UmlBaseClassItem(void * id, const QCString & n) : UmlItem(id, n) {};
#ifdef WITHCPP
//internal, do NOT use it
virtual void read_cpp_();
#endif
#ifdef WITHJAVA
//internal, do NOT use it
virtual void read_java_();
#endif
#ifdef WITHIDL
//internal, do NOT use it
virtual void read_idl_();
#endif
friend class UmlBaseClassMember;
friend class UmlBaseExtraClassMember;
friend class UmlBaseClass;
};
#endif
|