umbrello
2.35.0
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
Go to the documentation of this file.
9 #include "tree_parser.h"
12 #include <QStringList>
56 virtual void parseDeclaration2(GroupAST* funSpec, GroupAST* storageSpec, TypeSpecifierAST* typeSpec, InitDeclaratorAST* decl);
57 virtual void parseFunctionDeclaration(GroupAST* funSpec, GroupAST* storageSpec, TypeSpecifierAST* typeSpec, InitDeclaratorAST* decl);
65 QStringList
scopeOfName(NameAST*
id,
const QStringList& scope);
GNU GENERAL PUBLIC LICENSE June Free Software Inc Franklin Fifth USA Everyone is permitted to copy and distribute verbatim copies of this license document
Definition: GPL-2.0-only.txt:8
#define DEBUG_REGISTER(src)
Definition: debug_utils.h:129
UMLAttribute * insertAttribute(UMLClassifier *owner, Uml::Visibility::Enum scope, const QString &name, UMLClassifier *attrType, const QString &comment, bool isStatic)
Definition: import_utils.cpp:452
#define logDebug1(s, a)
Definition: uml.h:541
Definition: cpptree2uml.h:21
bool isDestructorOperation() const
Definition: operation.cpp:391
bool m_inSignals
Definition: cpptree2uml.h:75
DeclaratorAST * m_currentDeclarator
Definition: cpptree2uml.h:82
void setRootPath(const QString &rootPath)
Definition: cpptree2uml.cpp:69
void setInline(bool b)
Definition: operation.cpp:486
QString typeOfDeclaration(TypeSpecifierAST *typeSpec, DeclaratorAST *declarator)
Definition: cpptree2uml.cpp:726
UMLObject * createArtifact(const QString &name, UMLFolder *parentPkg, const QString &comment)
Definition: import_utils.cpp:703
QStringList scopeOfName(NameAST *id, const QStringList &scope)
Definition: cpptree2uml.cpp:776
Non-graphical information for a Datatype.
Definition: datatype.h:20
@ ot_Class
Definition: umlobject.h:85
virtual QString getTypeName() const
Definition: classifierlistitem.cpp:108
virtual void parseSimpleDeclaration(SimpleDeclarationAST *)
Definition: cpptree2uml.cpp:267
UMLAssociation * createGeneralization(UMLClassifier *child, UMLClassifier *parent)
Definition: import_utils.cpp:627
#define logError0(s)
Definition: uml.h:539
@ ot_Interface
Definition: umlobject.h:82
CodeImpThread * m_thread
Definition: cpptree2uml.h:88
UMLObject * m_type
Definition: model_utils.h:113
#define logError1(s, a)
Definition: uml.h:545
UMLOperationList getOpList(bool includeInherited=false, UMLClassifierSet *alreadyTraversed=0) const
Definition: classifier.cpp:939
virtual void parseElaboratedTypeSpecifier(ElaboratedTypeSpecifierAST *)
Definition: cpptree2uml.cpp:526
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &inName, UMLPackage *parentPkg, const QString &comment, const QString &stereotype, bool searchInParentPackageOnly, bool remapParent)
Definition: import_utils.cpp:184
bool isStatic() const
Definition: umlobject.cpp:362
CppTree2Uml(const QString &fileName, CodeImpThread *thread=0)
Definition: cpptree2uml.cpp:38
@ ot_Package
Definition: umlobject.h:81
int m_nsCnt
stack top for m_currentNamespace
Definition: cpptree2uml.h:86
virtual void parseNamespace(NamespaceAST *)
Definition: cpptree2uml.cpp:106
void insertMethod(UMLClassifier *klass, UMLOperation *&op, Uml::Visibility::Enum scope, const QString &type, bool isStatic, bool isAbstract, bool isFriend, bool isConstructor, bool isDestructor, const QString &comment)
Definition: import_utils.cpp:524
void flushTemplateParams(UMLClassifier *klass)
Definition: cpptree2uml.cpp:801
@ ot_UMLObject
Definition: umlobject.h:78
c Accompany it with the information you received as to the offer to distribute corresponding source complete source code means all the source code for all modules it contains
Definition: GPL-2.0-only.txt:149
The base class for UML objects.
Definition: umlobject.h:69
bool isAbstract() const
Definition: umlobject.cpp:344
QLinkedList< NameAndType > NameAndType_List
Auxiliary type for OpDescriptor.
Definition: model_utils.h:124
QString m_rootPath
root path of project
Definition: cpptree2uml.h:89
void putAtGlobalScope(bool yesno)
Definition: import_utils.cpp:80
Model_Utils::NameAndType_List m_templateParams
Definition: cpptree2uml.h:80
OptionState & optionState()
Definition: optionstate.cpp:357
UMLDatatype * asUMLDatatype()
Definition: umlobject.cpp:1425
Uml::Visibility::Enum m_currentAccess
Definition: cpptree2uml.h:73
@ Public
Definition: basictypes.h:46
void operator=(const CppTree2Uml &source)
void setConst(bool b)
Definition: operation.cpp:422
UMLDoc * m_doc
Definition: cpptree2uml.h:91
void setFinal(bool b)
Definition: operation.cpp:454
UMLPackage * asUMLPackage()
Definition: umlobject.cpp:1438
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two distribute and or modify the software for each author s protection and we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed we want its recipients to know that what they have is not the so that any problems introduced by others will not reflect on the original authors reputations any free program is threatened constantly by software patents We wish to avoid the danger that redistributors of a free program will individually obtain patent in effect making the program proprietary To prevent we have made it clear that any patent must be licensed for everyone s free use or not licensed at all The precise terms and conditions for distribution and modification follow TERMS AND CONDITIONS FOR DISTRIBUTION AND MODIFICATION This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License The refers to any such program or and a work based on the Program means either the Program or any derivative work under copyright a work containing the Program or a portion of it
Definition: GPL-2.0-only.txt:64
UMLFolder * rootFolder(Uml::ModelType::Enum mt) const
Definition: umldoc.cpp:3264
QStringList m_currentScope
Definition: cpptree2uml.h:72
int m_anon
Definition: cpptree2uml.h:76
it is up to the author donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License If the distribution and or use of the Library is restricted in certain countries either by patents or by copyrighted the original copyright holder who places the Library under this License may add an geographical distribution limitation excluding those so that distribution is permitted only in or among countries not thus excluded In such this License incorporates the limitation as if written in the body of this License The Free Software Foundation may publish revised and or new versions of the Library General Public License from time to time Such new versions will be similar in spirit to the present but may differ in detail to address new problems or concerns Each version is given a distinguishing version number If the Library specifies a version number of this License which applies to it and any later you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation If the Library does not specify a license version number
Definition: LGPL-2.0-only.txt:368
virtual void parseClassSpecifier(ClassSpecifierAST *)
Definition: cpptree2uml.cpp:398
@ Component
Definition: basictypes.h:30
void setBaseType(UMLObject::ObjectType ot)
Definition: classifier.cpp:81
UMLFolder * createSubDir(const QString &name, UMLFolder *parentPkg, const QString &comment)
Definition: import_utils.cpp:658
virtual void setType(UMLObject *type)
Definition: classifierlistitem.cpp:123
virtual void parseFunctionDeclaration(GroupAST *funSpec, GroupAST *storageSpec, TypeSpecifierAST *typeSpec, InitDeclaratorAST *decl)
Definition: cpptree2uml.cpp:611
virtual void parseDeclaration2(GroupAST *funSpec, GroupAST *storageSpec, TypeSpecifierAST *typeSpec, InitDeclaratorAST *decl)
Definition: cpptree2uml.cpp:542
@ ot_Datatype
Definition: umlobject.h:83
virtual void parseAccessDeclaration(AccessDeclarationAST *)
Definition: cpptree2uml.cpp:599
QLinkedList< NameAndType >::iterator NameAndType_ListIt
Auxiliary type for OpDescriptor.
Definition: model_utils.h:125
UMLAttribute * addMethodParameter(UMLOperation *method, const QString &type, const QString &name)
Definition: import_utils.cpp:596
UMLClassifier * asUMLClassifier()
Definition: umlobject.cpp:1422
UMLClassifier * m_currentClass[STACKSIZE+1]
stack
Definition: cpptree2uml.h:85
void setStereotype(const QString &_name)
Definition: umlobject.cpp:524
bool isDatatype(const QString &name, UMLPackage *parentPkg)
Definition: import_utils.cpp:832
int m_clsCnt
stack top for m_currentClass
Definition: cpptree2uml.h:87
Definition: codeimpthread.h:21
type show c for details The hypothetical commands show w and show c should show the appropriate parts of the General Public License Of the commands you use may be called something other than show w and show c
Definition: GPL-2.0-only.txt:301
UMLOperation * makeOperation(UMLClassifier *parent, const QString &name)
Definition: import_utils.cpp:442
Definition: model_utils.h:111
Sets up attribute information.
Definition: attribute.h:22
UMLAttributeList getAttributeList() const
Definition: classifier.cpp:435
virtual void parseEnumSpecifier(EnumSpecifierAST *)
Definition: cpptree2uml.cpp:503
void emitMessageToLog(const QString &file, const QString &text)
Definition: codeimpthread.cpp:90
virtual void setBaseType(ObjectType ot)
Definition: umlobject.cpp:411
Non-graphical management of objects and diagrams of a Folder.
Definition: folder.h:29
#define STACKSIZE
Definition: cpptree2uml.h:83
QString m_comment
Definition: cpptree2uml.h:79
void setVirtual(bool b)
Definition: operation.cpp:470
Enum
Definition: basictypes.h:45
void addEnumLiteral(UMLEnum *enumType, const QString &literal, const QString &comment, const QString &value)
Definition: import_utils.cpp:617
UMLObject * findUMLObject(const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject, UMLObject *currentObj=0)
Definition: umldoc.cpp:1121
void setIsReference(bool isRef=true)
Definition: datatype.cpp:51
Definition: operation.h:19
@ ot_Enum
Definition: umlobject.h:84
Information for a non-graphical Concept/Class.
Definition: classifier.h:34
bool m_inSlots
Definition: cpptree2uml.h:74
virtual void parseBaseClause(BaseClauseAST *baseClause, UMLClassifier *klass)
Definition: cpptree2uml.cpp:750
QStringList scopeOfDeclarator(DeclaratorAST *d, const QStringList &scope)
Definition: cpptree2uml.cpp:793
UMLFolder * m_rootFolder
Definition: cpptree2uml.h:90
QString m_fileName
Definition: cpptree2uml.h:71
void parseFunctionArguments(DeclaratorAST *declarator, UMLOperation *method)
Definition: cpptree2uml.cpp:701
virtual void parseFunctionDefinition(FunctionDefinitionAST *)
Definition: cpptree2uml.cpp:289
Enum fromString(const QString &item, bool checkUnknown)
Definition: basictypes.cpp:115
Sets up template information.
Definition: template.h:21
virtual void parseTypedef(TypedefAST *)
Definition: cpptree2uml.cpp:152
virtual ~CppTree2Uml()
Definition: cpptree2uml.cpp:48
QString stereotype(bool includeAdornments=false) const
Definition: umlobject.cpp:555
void setOverride(bool b)
Definition: operation.cpp:438
Non-graphical Information for an Enum.
Definition: enum.h:23
bool m_inTypedef
Definition: cpptree2uml.h:78
UMLPackage * m_currentNamespace[STACKSIZE+1]
stack
Definition: cpptree2uml.h:84
virtual void parseTranslationUnit(const ParsedFile &file)
Definition: cpptree2uml.cpp:85
bool m_inStorageSpec
Definition: cpptree2uml.h:77
QString m_name
< Data structure filled by parseAttribute().
Definition: model_utils.h:112
virtual void parseTemplateDeclaration(TemplateDeclarationAST *)
Definition: cpptree2uml.cpp:220
void setOriginType(UMLClassifier *origType)
Definition: datatype.cpp:33
UMLTemplate * addTemplate(const QString &name, Uml::ID::Type id=Uml::ID::None)
Definition: classifier.cpp:1025
Non-graphical information for a Package.
Definition: package.h:27
void clear()
Definition: cpptree2uml.cpp:52
#define logDebug0(s)
Definition: uml.h:535