|
| CPPSourceCodeDocument (UMLClassifier *classifier) |
|
virtual | ~CPPSourceCodeDocument () |
|
bool | addCodeOperation (CodeOperation *op) |
|
void | updateContent () |
|
| ClassifierCodeDocument (UMLClassifier *parent) |
|
virtual | ~ClassifierCodeDocument () |
|
bool | addCodeClassField (CodeClassField *add_object) |
|
bool | removeCodeClassField (CodeClassField *remove_object) |
|
CodeClassFieldList * | getCodeClassFieldList () |
|
bool | parentIsInterface () const |
|
bool | parentIsClass () const |
|
bool | hasAssociationClassFields () const |
|
bool | hasAttributeClassFields () const |
|
bool | hasObjectVectorClassFields () const |
|
bool | hasClassFields () const |
|
QList< const CodeOperation * > | getCodeOperations () const |
|
CodeClassFieldList | getSpecificClassFields (CodeClassField::ClassFieldType cfType) const |
|
CodeClassFieldList | getSpecificClassFields (CodeClassField::ClassFieldType cfType, bool isStatic) const |
|
CodeClassFieldList | getSpecificClassFields (CodeClassField::ClassFieldType cfType, Uml::Visibility::Enum visibility) const |
|
CodeClassFieldList | getSpecificClassFields (CodeClassField::ClassFieldType cfType, bool isStatic, Uml::Visibility::Enum visibility) const |
|
CodeClassField * | findCodeClassFieldFromParentID (Uml::ID::Type id, int role_id=-1) |
|
UMLClassifier * | getParentClassifier () const |
|
void | addCodeClassFieldMethods (CodeClassFieldList &list) |
|
virtual void | initCodeClassFields () |
|
virtual void | synchronize () |
|
virtual void | saveToXMI (QXmlStreamWriter &writer) |
|
virtual void | loadFromXMI (QDomElement &root) |
|
| CodeDocument () |
|
virtual | ~CodeDocument () |
|
void | setFileExtension (const QString &new_var) |
|
QString | getFileExtension () const |
|
void | setFileName (const QString &new_var) |
|
QString | getFileName () const |
|
void | setPackage (UMLPackage *new_var) |
|
QString | getPackage () const |
|
virtual QString | getPath () const |
|
void | setID (const QString &new_id) |
|
QString | ID () const |
|
void | setWriteOutCode (bool new_var) |
|
bool | getWriteOutCode () const |
|
void | setHeader (CodeComment *comment) |
|
CodeComment * | getHeader () const |
|
bool | insertTextBlock (TextBlock *newBlock, TextBlock *existingBlock, bool after=true) |
|
TextBlock * | findTextBlockByTag (const QString &tag, bool descendIntoChildren=false) const |
|
virtual QString | toString () const |
|
virtual CodeBlock * | newCodeBlock () |
|
virtual HierarchicalCodeBlock * | newHierarchicalCodeBlock () |
|
virtual CodeBlockWithComments * | newCodeBlockWithComments () |
|
virtual QString | getUniqueTag (const QString &prefix=QString()) |
|
QString | cleanName (const QString &name) |
|
| CodeGenObjectWithTextBlocks (CodeDocument *parent) |
|
virtual | ~CodeGenObjectWithTextBlocks () |
|
virtual bool | addTextBlock (TextBlock *add_object) |
|
virtual bool | removeTextBlock (TextBlock *remove_object) |
|
TextBlockList * | getTextBlockList () const |
|
virtual HierarchicalCodeBlock * | getHierarchicalCodeBlock (const QString &tag, const QString &comment, int indentLevel) |
|
virtual CodeBlockWithComments * | getCodeBlockWithComments (const QString &tag, const QString &comment, int indentLevel) |
|
CodeComment * | addOrUpdateTaggedCodeComment (const QString &tag=QString(), const QString &text=QString(), int indentationLevel=0) |
|
CodeBlockWithComments * | addOrUpdateTaggedCodeBlockWithComments (const QString &tag, const QString &text, const QString &ctext, int indentLevel, bool forceUserBlockUpdate) |
|
TextBlock * | findTextBlockByTag (const QString &tag) |
|
CodeGenObjectWithTextBlocks * | findParentObjectForTaggedTextBlock (const QString &tag) |
|
A CPP UMLClassifier Source Code Document.
void CPPSourceCodeDocument::updateContent |
( |
| ) |
|
|
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.