oplt.mdl

来自「在手机操作系统symbina上使用的一个脚本扩展语言的代码实现,可以参考用于自己」· MDL 代码 · 共 2,106 行 · 第 1/5 页

MDL
2,106 行
字号
				width      	381
				height     	269)
			    (object ClassView "Class" "COplModuleTranslator" @128
				IncludeOperation 	TRUE
				location   	(1008, 736)
				label      	(object ItemLabel
				    Parent_View 	@128
				    location   	(779, 561)
				    nlines     	2
				    max_width  	547
				    justify    	0
				    label      	"COplModuleTranslator")
				compartment 	(object Compartment
				    Parent_View 	@128
				    location   	(797, 627)
				    anchor     	2
				    nlines     	4
				    max_width  	509
				    justify    	0
				    compartmentItems 	(list Compartment
					"o StartTranslateL( )"
					"o TranslateChunk( )"
					"o Cancel( )"
					"iOwnBackEnd : TBool"))
				width      	794
				height     	513)
			    (object InheritView "" @129
				client     	@128
				supplier   	@121
				line_style 	0)
			    (object UsesView "iError" @130
				label      	(object ItemLabel
				    Parent_View 	@130
				    location   	(1563, 736)
				    anchor_loc 	1
				    nlines     	1
				    max_width  	450
				    justify    	0
				    label      	"iError")
				client     	@128
				supplier   	@122
				line_style 	0)
			    (object HasView "iLexer" @131
				label      	(object ItemLabel
				    Parent_View 	@131
				    location   	(830, 1136)
				    anchor_loc 	1
				    nlines     	1
				    max_width  	450
				    justify    	0
				    label      	"iLexer")
				client     	@128
				supplier   	@125
				line_style 	0)
			    (object HasView "iParser" @132
				label      	(object ItemLabel
				    Parent_View 	@132
				    location   	(1101, 1119)
				    anchor_loc 	1
				    nlines     	1
				    max_width  	450
				    justify    	0
				    label      	"iParser")
				client     	@128
				supplier   	@127
				line_style 	0)
			    (object UsesView "iAppCB" @133
				label      	(object ItemLabel
				    Parent_View 	@133
				    location   	(606, 1068)
				    anchor_loc 	1
				    nlines     	1
				    max_width  	450
				    justify    	0
				    label      	"iAppCB")
				client     	@128
				supplier   	@126
				line_style 	0)
			    (object ClassView "Class" "COplModuleBackEnd" @134
				location   	(1680, 1376)
				label      	(object ItemLabel
				    Parent_View 	@134
				    location   	(1567, 1287)
				    nlines     	2
				    max_width  	262
				    justify    	0
				    label      	"COplModuleBackEnd")
				width      	381
				height     	268
				annotation 	8)
			    (object AssociationViewNew "iBackEnd (may be owned or passed as argment to StartTranslateL" @135
				location   	(1376, 1079)
				label      	(object SegLabel @136
				    Parent_View 	@135
				    location   	(1534, 1070)
				    anchor     	1
				    anchor_loc 	1
				    nlines     	3
				    max_width  	468
				    justify    	0
				    label      	"iBackEnd (may be owned or passed as argment to StartTranslateL"
				    pctDist    	3.133333
				    height     	10
				    orientation 	0)
				quidu      	"31F7EA170276"
				roleview_list 	(list RoleViews
				    (object RoleView "$UNNAMED$1" @137
					Parent_View 	@135
					location   	(592, 279)
					client     	@135
					supplier   	@128
					line_style 	0)
				    (object RoleView "$UNNAMED$0" @138
					Parent_View 	@135
					location   	(592, 279)
					client     	@135
					supplier   	@134
					line_style 	0)))
			    (object UsesView "" @139
				client     	@127
				supplier   	@125
				line_style 	0)
			    (object UsesView "" @140
				client     	@127
				supplier   	@134
				line_style 	0)))))
	    (object Class_Category "Translator Interface"
		exportControl 	"Public"
		logical_models 	(list unit_reference_list
		    (object Class "MTextSourceSystem"
			documentation 	
|The thing that maps (file) names onto a RTextSources. One of these is passed to the Translator which can then open RTextSources as it needs them.  
|RTextSource is a friend and has access to the Do... member functions
|
|
			
			used_nodes 	(list uses_relationship_list
			    (object Uses_Relationship
				label      	"rSource"
				supplier   	"MTextSource"))
			abstract   	TRUE
			operations 	(list Operations
			    (object Operation "DoOpenSource"
				parameters 	(list Parameters
				    (object Parameter "aSource"
					type       	"RTextSource&")
				    (object Parameter "aName"
					type       	"TDesC&"))
				concurrency 	"Sequential"
				opExportControl 	"Protected"
				uid        	0)))
		    (object Class "MTextSource"
			documentation 	"c.f RFile. This is a handle to a source of blocks of text. It is opened wrt to an MTextSystem."
			operations 	(list Operations
			    (object Operation "Read"
				documentation 	"Reads as much as is possible into aBuf from the current position in the ReadSource. Returns as for RFile.Read()."
				parameters 	(list Parameters
				    (object Parameter "aBuf"
					type       	"TDes&"))
				concurrency 	"Sequential"
				opExportControl 	"Public"
				uid        	0)
			    (object Operation "Read"
				parameters 	(list Parameters
				    (object Parameter "aPos"
					type       	"TInt")
				    (object Parameter "aBuf"
					type       	"TDes&"))
				concurrency 	"Sequential"
				opExportControl 	"Public"
				uid        	0)
			    (object Operation "Close"
				documentation 	"Closes the TextSource"
				concurrency 	"Sequential"
				opExportControl 	"Public"
				uid        	0)))
		    (object Class "CTextTranslator"
			fields     	(list has_relationship_list
			    (object Has_Relationship
				supplier   	"MTextSource"))
			used_nodes 	(list uses_relationship_list
			    (object Uses_Relationship
				supplier   	"MTextSourceSystem")))
		    (object Class "TTranslateError"))
		logical_presentations 	(list unit_reference_list
		    (object ClassDiagram "Main"
			title      	"Main"
			zoom       	100
			max_height 	28350
			max_width  	21600
			origin_x   	0
			origin_y   	0
			items      	(list diagram_item_list
			    (object ClassView "Class" "CTextTranslator" @141
				location   	(640, 256)
				label      	(object ItemLabel
				    Parent_View 	@141
				    location   	(463, 112)
				    nlines     	2
				    max_width  	417
				    justify    	0
				    label      	"CTextTranslator")
				width      	605
				height     	427)
			    (object ClassView "Class" "TTranslateError" @142
				location   	(640, 1056)
				label      	(object ItemLabel
				    Parent_View 	@142
				    location   	(456, 901)
				    nlines     	2
				    max_width  	435
				    justify    	0
				    label      	"TTranslateError")
				width      	631
				height     	456)
			    (object ClassView "Class" "MTextSourceSystem" @143
				location   	(1840, 256)
				label      	(object ItemLabel
				    Parent_View 	@143
				    location   	(1682, 125)
				    nlines     	2
				    max_width  	371
				    justify    	0
				    label      	"MTextSourceSystem")
				compartment 	(object Compartment
				    Parent_View 	@143
				    location   	(1698, 241)
				    anchor     	2
				    nlines     	1
				    max_width  	338
				    justify    	0
				    compartmentItems 	(list Compartment
					"DoOpenSource( )"))
				width      	539
				height     	388)
			    (object ClassView "Class" "MTextSource" @144
				location   	(1840, 1088)
				label      	(object ItemLabel
				    Parent_View 	@144
				    location   	(1710, 982)
				    nlines     	2
				    max_width  	304
				    justify    	0
				    label      	"MTextSource")
				compartment 	(object Compartment
				    Parent_View 	@144
				    location   	(1785, 1048)
				    anchor     	2
				    nlines     	2
				    max_width  	151
				    justify    	0
				    compartmentItems 	(list Compartment
					"Read( )"
					"Close( )"))
				width      	441
				height     	316)
			    (object UsesView "iTranslateError" @145
				label      	(object ItemLabel
				    Parent_View 	@145
				    location   	(640, 657)
				    anchor_loc 	1
				    nlines     	1
				    max_width  	450
				    justify    	0
				    label      	"iTranslateError")
				client     	@141
				supplier   	@142
				line_style 	0)
			    (object UsesView "" @146
				client     	@141
				supplier   	@143
				line_style 	0)
			    (object HasView "" @147
				client     	@141
				supplier   	@144
				line_style 	0)
			    (object UsesView "rSource" @148
				label      	(object ItemLabel
				    Parent_View 	@148
				    location   	(1840, 692)
				    anchor_loc 	1
				    nlines     	1
				    max_width  	450
				    justify    	0
				    label      	"rSource")
				client     	@143
				supplier   	@144
				line_style 	0))))))
	logical_presentations 	(list unit_reference_list
	    (object ClassDiagram "Main"
		title      	"Main"
		zoom       	100
		max_height 	28350
		max_width  	21600
		origin_x   	0
		origin_y   	0
		items      	(list diagram_item_list
		    (object CategoryView "Symbols" @149
			location   	(1040, 1104)
			label      	(object ItemLabel
			    Parent_View 	@149
			    location   	(896, 1020)
			    nlines     	2
			    max_width  	288
			    justify    	0
			    label      	"Symbols")
			width      	300
			height     	180)
		    (object CategoryView "Parser" @150
			location   	(1040, 608)
			label      	(object ItemLabel
			    Parent_View 	@150
			    location   	(896, 524)
			    nlines     	2
			    max_width  	288
			    justify    	0
			    label      	"Parser")
			width      	300
			height     	180)
		    (object CategoryView "Lexer" @151
			location   	(416, 608)
			label      	(object ItemLabel
			    Parent_View 	@151
			    location   	(272, 524)
			    nlines     	2
			    max_width  	288
			    justify    	0
			    label      	"Lexer")
			width      	300
			height     	180)
		    (object CategoryView "BackEnd" @152
			location   	(1504, 608)
			label      	(object ItemLabel
			    Parent_View 	@152
			    location   	(1360, 524)
			    nlines     	2
			    max_width  	288
			    justify    	0
			    label      	"BackEnd")
			width      	300
			height     	180)
		    (object CategoryView "Translator" @153
			location   	(1040, 208)
			label      	(object ItemLabel
			    Parent_View 	@153
			    location   	(896, 124)
			    nlines     	2
			    max_width  	288
			    justify    	0
			    label      	"Translator")
			width      	300
			height     	180)
		    (object ImportView "" @154
			client     	@153
			supplier   	@151
			line_style 	0)
		    (object ImportView "" @155
			client     	@153
			supplier   	@150
			line_style 	0)
		    (object ImportView "" @156
			client     	@153
			supplier   	@152
			line_style 	0)
		    (object ImportView "" @157
			client     	@150
			supplier   	@151
			line_style 	0)
		    (object ImportView "" @158
			client     	@150
			supplier   	@152
			line_style 	0)
		    (object ImportView "" @159
			client     	@151
			supplier   	@149
			line_style 	0)
		    (object ImportView "" @160
			client     	@150
			supplier   	@149
			line_style 	0)
		    (object ImportView "" @161
			client     	@152
			supplier   	@149
			line_style 	0)
		    (object CategoryView "Translator Interface" @162
			location   	(528, 192)
			label      	(object ItemLabel
			    Parent_View 	@162
			    location   	(384, 108)
			    nlines     	2
			    max_width  	288
			    justify    	0
			    label      	"Translator Interface")
			width      	300
			height     	180)))))
    root_subsystem 	(object SubSystem "<Top Level>"
	physical_models 	(list unit_reference_list)
	physical_presentations 	(list unit_reference_list
	    (object Module_Diagram "Main"
		title      	"Main"
		zoom       	100
		max_height 	28350
		max_width  	21600
		origin_x   	0
		origin_y   	0
		items      	(list diagram_item_list))))
    process_structure 	(object Processes
	ProcsNDevs 	(list
	    (object Process_Diagram ""
		title      	""
		zoom       	100
		max_height 	28350
		max_width  	21600
		origin_x   	0
		origin_y   	0
		items      	(list diagram_item_list))))
    properties 	(object Properties))

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?