umbrello
2.32.1
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
UMLClassifier * asUMLClassifier()
Definition: umlobject.cpp:1389
UMLAttribute * insertAttribute(UMLClassifier *owner, Uml::Visibility::Enum scope, const QString &name, UMLClassifier *attrType, const QString &comment, bool isStatic)
Definition: import_utils.cpp:421
Definition: cpptree2uml.h:21
bool isDestructorOperation() const
Definition: operation.cpp:386
bool m_inSignals
Definition: cpptree2uml.h:75
DeclaratorAST * m_currentDeclarator
Definition: cpptree2uml.h:82
void setRootPath(const QString &rootPath)
Definition: cpptree2uml.cpp:66
void setInline(bool b)
Definition: operation.cpp:465
QString typeOfDeclaration(TypeSpecifierAST *typeSpec, DeclaratorAST *declarator)
Definition: cpptree2uml.cpp:731
UMLObject * createArtifact(const QString &name, UMLFolder *parentPkg, const QString &comment)
Definition: import_utils.cpp:674
QStringList scopeOfName(NameAST *id, const QStringList &scope)
Definition: cpptree2uml.cpp:779
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:265
UMLAssociation * createGeneralization(UMLClassifier *child, UMLClassifier *parent)
Definition: import_utils.cpp:598
@ ot_Interface
Definition: umlobject.h:82
CodeImpThread * m_thread
Definition: cpptree2uml.h:88
UMLObject * m_type
Definition: model_utils.h:110
UMLOperationList getOpList(bool includeInherited=false, UMLClassifierSet *alreadyTraversed=0) const
Definition: classifier.cpp:935
virtual void parseElaboratedTypeSpecifier(ElaboratedTypeSpecifierAST *)
Definition: cpptree2uml.cpp:520
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &inName, UMLPackage *parentPkg, const QString &comment, const QString &stereotype, bool searchInParentPackageOnly, bool remapParent)
Definition: import_utils.cpp:173
bool isStatic() const
Definition: umlobject.cpp:361
CppTree2Uml(const QString &fileName, CodeImpThread *thread=0)
Definition: cpptree2uml.cpp:35
@ 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:103
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:493
void flushTemplateParams(UMLClassifier *klass)
Definition: cpptree2uml.cpp:804
@ ot_UMLObject
Definition: umlobject.h:78
The base class for UML objects.
Definition: umlobject.h:69
bool isAbstract() const
Definition: umlobject.cpp:343
QLinkedList< NameAndType > NameAndType_List
Auxiliary type for OpDescriptor.
Definition: model_utils.h:121
QString m_rootPath
root path of project
Definition: cpptree2uml.h:89
void putAtGlobalScope(bool yesno)
Definition: import_utils.cpp:78
Model_Utils::NameAndType_List m_templateParams
Definition: cpptree2uml.h:80
UMLDatatype * asUMLDatatype()
Definition: umlobject.cpp:1392
int emitAskQuestion(const QString &question)
Definition: codeimpthread.cpp:74
OptionState & optionState()
Definition: optionstate.cpp:357
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:417
UMLDoc * m_doc
Definition: cpptree2uml.h:91
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:3176
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:392
@ Component
Definition: basictypes.h:30
void setBaseType(UMLObject::ObjectType ot)
Definition: classifier.cpp:78
UMLFolder * createSubDir(const QString &name, UMLFolder *parentPkg, const QString &comment)
Definition: import_utils.cpp:629
virtual void setType(UMLObject *type)
Definition: classifierlistitem.cpp:123
virtual void parseFunctionDeclaration(GroupAST *funSpec, GroupAST *storageSpec, TypeSpecifierAST *typeSpec, InitDeclaratorAST *decl)
Definition: cpptree2uml.cpp:617
virtual void parseDeclaration2(GroupAST *funSpec, GroupAST *storageSpec, TypeSpecifierAST *typeSpec, InitDeclaratorAST *decl)
Definition: cpptree2uml.cpp:548
@ ot_Datatype
Definition: umlobject.h:83
virtual void parseAccessDeclaration(AccessDeclarationAST *)
Definition: cpptree2uml.cpp:605
QLinkedList< NameAndType >::iterator NameAndType_ListIt
Auxiliary type for OpDescriptor.
Definition: model_utils.h:122
UMLAttribute * addMethodParameter(UMLOperation *method, const QString &type, const QString &name)
Definition: import_utils.cpp:567
#define uDebug()
Definition: debug_utils.h:108
UMLClassifier * m_currentClass[STACKSIZE+1]
stack
Definition: cpptree2uml.h:85
void setStereotype(const QString &_name)
Definition: umlobject.cpp:523
bool isDatatype(const QString &name, UMLPackage *parentPkg)
Definition: import_utils.cpp:801
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:411
Definition: model_utils.h:108
Sets up attribute information.
Definition: attribute.h:22
UMLAttributeList getAttributeList() const
Definition: classifier.cpp:431
virtual void parseEnumSpecifier(EnumSpecifierAST *)
Definition: cpptree2uml.cpp:497
void emitMessageToLog(const QString &file, const QString &text)
Definition: codeimpthread.cpp:88
virtual void setBaseType(ObjectType ot)
Definition: umlobject.cpp:410
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:449
Enum
Definition: basictypes.h:45
void addEnumLiteral(UMLEnum *enumType, const QString &literal, const QString &comment, const QString &value)
Definition: import_utils.cpp:588
UMLObject * findUMLObject(const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject, UMLObject *currentObj=0)
Definition: umldoc.cpp:1068
void setIsReference(bool isRef=true)
Definition: datatype.cpp:50
#define uError()
Definition: debug_utils.h:109
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:753
QStringList scopeOfDeclarator(DeclaratorAST *d, const QStringList &scope)
Definition: cpptree2uml.cpp:796
UMLFolder * m_rootFolder
Definition: cpptree2uml.h:90
QString m_fileName
Definition: cpptree2uml.h:71
void parseFunctionArguments(DeclaratorAST *declarator, UMLOperation *method)
Definition: cpptree2uml.cpp:706
virtual void parseFunctionDefinition(FunctionDefinitionAST *)
Definition: cpptree2uml.cpp:287
UMLPackage * asUMLPackage()
Definition: umlobject.cpp:1405
Sets up template information.
Definition: template.h:21
virtual void parseTypedef(TypedefAST *)
Definition: cpptree2uml.cpp:149
virtual ~CppTree2Uml()
Definition: cpptree2uml.cpp:45
QString stereotype(bool includeAdornments=false) const
Definition: umlobject.cpp:554
void setOverride(bool b)
Definition: operation.cpp:433
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:82
bool m_inStorageSpec
Definition: cpptree2uml.h:77
QString m_name
< Data structure filled by parseAttribute().
Definition: model_utils.h:109
Enum fromString(const QString &item, bool checkUnkown)
Definition: basictypes.cpp:113
virtual void parseTemplateDeclaration(TemplateDeclarationAST *)
Definition: cpptree2uml.cpp:217
void setOriginType(UMLClassifier *origType)
Definition: datatype.cpp:32
UMLTemplate * addTemplate(const QString &name, Uml::ID::Type id=Uml::ID::None)
Definition: classifier.cpp:1020
Non-graphical information for a Package.
Definition: package.h:27
void clear()
Definition: cpptree2uml.cpp:49