1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
#ifndef _UMLBASEEXPANSIONREGION_H
#define _UMLBASEEXPANSIONREGION_H
#include "UmlActivityRegion.h"
#include "anItemKind.h"
#include <qcstring.h>
#include "anExpansionKind.h"
class UmlExpansionRegion;
class UmlItem;
class UmlBaseExpansionRegion : public UmlActivityRegion {
public:
// returns a new expansion region named 's' created under 'parent'
//
// In case it cannot be created (the name is already used or
// invalid, 'parent' cannot contain it etc ...) return 0 in C++
// and produce a RuntimeException in Java
static UmlExpansionRegion * create(UmlItem * parent, const char * s);
// returns the kind of the item
virtual anItemKind kind();
protected:
// the constructor, do not call it yourself !!!!!!!!!!
UmlBaseExpansionRegion(void * id, const QCString & s) : UmlActivityRegion(id, s) {
}
public:
// return the isMustIsolate attribute, if TRUE the actions in the region execute in isolation from actions outside the region.
bool isMustIsolate();
// set the isMustIsolate attribute
//
// On error return FALSE in C++, produce a RuntimeException in Java
bool set_isMustIsolate(bool v);
// return the mode attribute, the way in which the execution interact.
anExpansionKind mode();
// set the mode attribute
//
// On error return FALSE in C++, produce a RuntimeException in Java
bool set_Mode(anExpansionKind v);
private:
bool _must_isolate;
anExpansionKind _mode;
protected:
virtual void read_uml_();
};
#endif
|