forked from Kistler-Group/sdbus-cpp
Add class diagram
This commit is contained in:
BIN
doc/sdbus-c++-class-diagram.png
Executable file
BIN
doc/sdbus-c++-class-diagram.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 32 KiB |
59
doc/sdbus-c++-class-diagram.uml
Normal file
59
doc/sdbus-c++-class-diagram.uml
Normal 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
|
Reference in New Issue
Block a user