Add class diagram

This commit is contained in:
Stanislav Angelovic
2017-12-14 10:30:55 +01:00
parent be754eb991
commit 55d8084729
2 changed files with 59 additions and 0 deletions

BIN
doc/sdbus-c++-class-diagram.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View File

@ -0,0 +1,59 @@
@startuml
package "Public API" <<frame>> #DDDDDD {
interface IConnection {
+requestName()
+enterProcessLoop()
+leaveProcessLoop()
}
interface IObject {
+registerMethod()
+emitSignal()
}
interface IObjectProxy {
+callMethod()
+subscribeToSignal()
}
class Message {
+serialize(...)
+deserialize(...)
+send()
Type msgType
}
}
interface IConnectionInternal {
+addObjectVTable()
+createMethodCall()
+createSignal()
}
class Connection {
}
class Object {
IConnectionInternal& connection
string objectPath
List interfaces
List methods
}
class ObjectProxy {
IConnectionInternal& connection
string destination
string objectPath
}
IConnection <|-- Connection
IConnectionInternal <|- Connection
IObject <|-- Object
IObjectProxy <|-- ObjectProxy
Connection <-- Object : "use"
Connection <-- ObjectProxy : "use"
Message <.. Object : "send/receive"
Message <.. ObjectProxy : "send/receive"
@enduml