umbrello/umbrello
CPPSourceCodeOperation Class Reference
#include <cppsourcecodeoperation.h>
Inheritance diagram for CPPSourceCodeOperation:
Public Member Functions | |
CPPSourceCodeOperation (CPPSourceCodeDocument *doc, UMLOperation *op, const QString &body="", const QString &comment="") | |
virtual | ~CPPSourceCodeOperation () |
virtual void | updateContent () |
virtual void | updateMethodDeclaration () |
Public Member Functions inherited from CodeOperation | |
CodeOperation (ClassifierCodeDocument *doc, UMLOperation *parent, const QString &body="", const QString &comment="") | |
virtual | ~CodeOperation () |
UMLOperation * | getParentOperation () |
virtual void | loadFromXMI (QDomElement &root) |
virtual void | saveToXMI (QDomDocument &doc, QDomElement &root) |
virtual void | setAttributesFromObject (TextBlock *obj) |
Public Member Functions inherited from CodeMethodBlock | |
CodeMethodBlock (ClassifierCodeDocument *doc, UMLObject *parentObj, const QString &body="", const QString &comment="") | |
virtual | ~CodeMethodBlock () |
QString | getEndMethodText () const |
CodeDocument * | getParentDocument () |
QString | getStartMethodText () const |
virtual QString | toString () const |
Public Member Functions inherited from OwnedCodeBlock | |
OwnedCodeBlock (UMLObject *parent) | |
virtual | ~OwnedCodeBlock () |
UMLObject * | getParentObject () |
Public Member Functions inherited from CodeBlockWithComments | |
CodeBlockWithComments (CodeDocument *parent, const QString &body="", const QString &comment="") | |
virtual | ~CodeBlockWithComments () |
CodeComment * | getComment () const |
void | setComment (CodeComment *object) |
void | setOverallIndentationLevel (int level) |
Public Member Functions inherited from CodeBlock | |
CodeBlock (CodeDocument *parent, const QString &body="") | |
virtual | ~CodeBlock () |
ContentType | contentType () const |
void | setContentType (ContentType new_var) |
Public Member Functions inherited from TextBlock | |
TextBlock (CodeDocument *parent, const QString &text="") | |
virtual | ~TextBlock () |
void | appendText (const QString &text) |
bool | canDelete () const |
virtual int | firstEditableLine () |
int | getIndentationLevel () const |
QString | getIndentationString (int level=0) const |
virtual QString | getNewEditorLine (int amount=0) |
CodeDocument * | getParentDocument () const |
QString | getTag () const |
QString | getText () const |
bool | getWriteOutText () const |
virtual int | lastEditableLine () |
void | setIndentationLevel (int level) |
void | setTag (const QString &value) |
void | setText (const QString &text) |
void | setWriteOutText (bool write) |
virtual QString | unformatText (const QString &text, const QString &indent="") |
Additional Inherited Members | |
Public Types inherited from CodeBlock | |
enum | ContentType { AutoGenerated =0, UserGenerated } |
Public Slots inherited from CodeMethodBlock | |
virtual void | syncToParent () |
Public Slots inherited from OwnedCodeBlock | |
virtual void | syncToParent () |
Static Public Member Functions inherited from CodeOperation | |
static QString | findTag (UMLOperation *op) |
Static Public Member Functions inherited from CodeBlock | |
static QString | enumToString (const ContentType &val) |
Static Public Member Functions inherited from TextBlock | |
static QString | decodeText (const QString &text, const QString &endLine) |
static QString | encodeText (const QString &text, const QString &endLine) |
static QString | formatMultiLineText (const QString &work, const QString &linePrefix, const QString &breakStr, bool addBreak=true, bool lastLineHasBreak=true) |
static QString | getIndentation () |
static QString | getNewLineEndingChars () |
Protected Member Functions inherited from CodeOperation | |
virtual void | setAttributesFromNode (QDomElement &element) |
virtual void | setAttributesOnNode (QDomDocument &doc, QDomElement &blockElement) |
Protected Member Functions inherited from CodeMethodBlock | |
virtual void | release () |
void | setEndMethodText (const QString &value) |
void | setStartMethodText (const QString &value) |
Protected Member Functions inherited from TextBlock | |
void | setCanDelete (bool canDelete) |
Detailed Description
Definition at line 21 of file cppsourcecodeoperation.h.
Constructor & Destructor Documentation
CPPSourceCodeOperation::CPPSourceCodeOperation | ( | CPPSourceCodeDocument * | doc, |
UMLOperation * | op, | ||
const QString & | body = "" , |
||
const QString & | comment = "" |
||
) |
Constructor.
Definition at line 20 of file cppsourcecodeoperation.cpp.
|
virtual |
Empty Destructor.
Definition at line 32 of file cppsourcecodeoperation.cpp.
Member Function Documentation
|
virtual |
Just want to know whether or not to print out the body of the operation.
In C++ if the operations are inline, then we DON'T print out the body text.
Reimplemented from CodeOperation.
Definition at line 36 of file cppsourcecodeoperation.cpp.
|
virtual |
Update the doc and start text of this method.
Implements CodeOperation.
Definition at line 47 of file cppsourcecodeoperation.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
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
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.