associating class in two different naemspace

0 votes
asked Mar 27, 2014 by sys83 (150 points)
set namespaceSeperator ::

class Name1::ClassA {

+void foo();

+Name2::ClassB m_Member;

}

 

class Name2::ClassB {

+void bar();

}

 

How do I show aggregation reation between Class B and Class A.

Name1::ClassA *- Name2::ClassB doesn't seem to work

1 Answer

+1 vote
answered Mar 27, 2014 by plantuml (134,510 points)

Hello,

Thanks for the report.

We have a bug in the parser. The : is not recognized right now.
We will fix that, but as workarround, you can use quotes:

@startuml
set namespaceSeparator ::
class Name1::ClassA {
  +void foo();
  +Name2::ClassB m_Member;
}
class Name2::ClassB {
  +void bar();
}
"Name1::ClassA" *- "Name2::ClassB"
@enduml

 

commented Mar 28, 2014 by sys83 (150 points)
Thanks for the swift reply. This solution works for me.
...