Go to the documentation of this file.
83 name.Prepend(_T(
"GCU: "));
89 vector<Factory*>::const_iterator iter;
93 if (portEditPart != NULL) {
96 if (portEditPolicy != NULL) {
106 vector<Factory*>::const_iterator iter;
110 if (portEditPart != NULL) {
113 if (portEditPolicy != NULL) {
116 gcuEditPart->
addChild(portEditPart);
121 wxString operations = _T(
"{ ");
124 operations.Append(_T(
", "));
129 operations.Append(_T(
" }"));
136 if (editPolicy != NULL) {
virtual EditPolicy * createGCUEditPolicy()
static wxString toWxString(const std::string &source)
virtual TCEString name() const
void setSelectable(bool selectable)
void installEditPolicy(EditPolicy *editpolicy)
virtual EditPolicy * createFUPortEditPolicy()
void registerFactory(Factory *factory)
const std::string & name() const
SpecialRegisterPort * specialRegisterPort(int index) const
int specialRegisterPortCount() const
virtual EditPolicy * createSRPortEditPolicy()
void setModel(TTAMachine::MachinePart *model)
virtual int operationCount() const
virtual int operationPortCount() const
void setFigure(Figure *figure)
virtual EditPart * createEditPart(TTAMachine::MachinePart *component)
virtual HWOperation * operation(const std::string &name) const
void addChild(EditPart *child)
virtual FUPort * operationPort(const std::string &name) const
EditPolicyFactory & editPolicyFactory_
Factory which creates edit policies for edit parts.
GCUFactory(EditPolicyFactory &editPolicyFactory)
std::vector< Factory * > factories_
Registered factories.