umbrello/umbrello
#include <cppsourcecodedocument.h>
Protected Member Functions | |
void | resetTextBlocks () |
Protected Member Functions inherited from ClassifierCodeDocument | |
void | declareClassFields (CodeClassFieldList &list, CodeGenObjectWithTextBlocks *parent) |
TextBlock * | findCodeClassFieldTextBlockByTag (const QString &tag) |
void | loadClassFieldsFromXMI (QDomElement &childElem) |
virtual void | setAttributesFromNode (QDomElement &element) |
virtual void | setAttributesOnNode (QDomDocument &doc, QDomElement &blockElement) |
void | syncClassFields () |
void | syncNamesToParent () |
Protected Member Functions inherited from CodeDocument | |
void | addChildTagToMap (const QString &tag, TextBlock *tb) |
void | removeChildTagFromMap (const QString &tag) |
void | updateHeader () |
Protected Member Functions inherited from CodeGenObjectWithTextBlocks | |
virtual void | loadChildTextBlocksFromNode (QDomElement &root) |
void | setAttributesFromObject (CodeGenObjectWithTextBlocks *obj) |
Additional Inherited Members | |
Public Slots inherited from ClassifierCodeDocument | |
void | addAssociationClassField (UMLAssociation *assoc, bool syncToParentIfAdded=true) |
void | addAttributeClassField (UMLClassifierListItem *at, bool syncToParentIfAdded=true) |
void | addOperation (UMLClassifierListItem *obj) |
void | removeAssociationClassField (UMLAssociation *assoc) |
void | removeAttributeClassField (UMLClassifierListItem *at) |
void | removeOperation (UMLClassifierListItem *obj) |
void | syncToParent () |
Protected Attributes inherited from CodeGenObjectWithTextBlocks | |
QMap< QString, TextBlock * > | m_textBlockTagMap |
TextBlockList | m_textblockVector |
Detailed Description
A CPP UMLClassifier Source Code Document.
Definition at line 22 of file cppsourcecodedocument.h.
Constructor & Destructor Documentation
|
explicit |
Constructor.
We carve the CPP document up into 2 documents, "source" and "header".
The sections of each are as follows:
- header
- includes
- constructor methods
- all other methods
Definition at line 36 of file cppsourcecodedocument.cpp.
|
virtual |
Empty Destructor.
Definition at line 51 of file cppsourcecodedocument.cpp.
Member Function Documentation
|
virtual |
Add a code operation to this cpp classifier code document.
In the vannilla version, we just tack all operations on the end of the document.
- Parameters
-
op the code operation
- Returns
- bool which is true IF the code operation was added successfully
Implements ClassifierCodeDocument.
Definition at line 55 of file cppsourcecodedocument.cpp.
|
protectedvirtual |
Reset/clear our inventory of textblocks in this document.
Reimplemented from CodeDocument.
Definition at line 72 of file cppsourcecodedocument.cpp.
|
virtual |
This method will cause the class to rebuild its text representation.
based on the parent classifier object. For any situation in which this is called, we are either building the code document up, or replacing/regenerating the existing auto-generated parts. As such, we will want to insert everything we reasonably will want during creation. We can set various parts of the document (esp. the comments) to appear or not, as needed.
Implements ClassifierCodeDocument.
Definition at line 82 of file cppsourcecodedocument.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.