blob: 7f537ead237fee941b0692d06460a8c83cd96397 (
plain)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
@startuml
!theme plain
skinparam linetype ortho
skinparam classAttributeIconSize 0
skinparam roundCorner 0
skinparam packageStyle rectangle
class main as "main()"
hide main circle
hide main members
exception Exception {
Exception(const char* fmt, ...)
+what() : const char*
#error : char*
#va_format(va_list args, const char* fmt)
}
class FileReader <<Factory>> {
+open(url) : File&
}
interface File {
#open(string url)
+close()
+read() : string
#clone() const : File*
}
class LocalFile {
-static instance : LocalFile
}
class HTTPFile {
-static instance : HTTPFile
}
class Canvas {
+ get_tile(x, y)
+ set_tile(x, y)
}
class Tile
class TileFactory
class TileBehavior
class GrayTileBehavior
class RedTileBehavior
class BlueTileBehavior
class YellowTileBehavior
class Artist
class Deserializer
class ArtistDeserializer
class CanvasDeserializer
package CPR { }
package SDL2 { }
interface Parser {
+parse(File)
}
class CSVParser
class XMLParser
class TXTParser
File <|.. LocalFile
File <|.. HTTPFile
File <. FileReader
File .> FileReader
Canvas "1" -> "*" Tile
TileBehavior <|-- GrayTileBehavior
TileBehavior <|-- RedTileBehavior
TileBehavior <|-- BlueTileBehavior
TileBehavior <|-- YellowTileBehavior
Parser <|-- CSVParser
Parser <|-- TXTParser
Parser <|-- XMLParser
Deserializer <|-- ArtistDeserializer
Deserializer <|-- CanvasDeserializer
HTTPFile ..> CPR
TileFactory --> Tile
@enduml
|