Diff of /branches/develop/mqttsparkplug/mqttsparkplug/Sparkplug™ MQTT edge and host/Function Blocks/FB_MetricFileTransfer/FB_MetricFileTransfer/ReturnFileName/svnobj [r908] .. [r909]  Maximize  Restore

Switch to unified view

a/branches/develop/mqttsparkplug/mqttsparkplug/Sparkplug™ MQTT edge and host/Function Blocks/FB_MetricFileTransfer/FB_MetricFileTransfer/ReturnFileName/svnobj b/branches/develop/mqttsparkplug/mqttsparkplug/Sparkplug™ MQTT edge and host/Function Blocks/FB_MetricFileTransfer/FB_MetricFileTransfer/ReturnFileName/svnobj
1
Gx_l•   !0…jüo$Ý÷3ÓIIÈ}System.StringL{f8a58466-d7f6-439f-bbb8-d4600e41d099}ImplementationL{3b83b776-fb25-43b8-99f2-3c507c9143fc}TextDocumentL{f3878285-8e4f-490b-bb1b-9acbb7eb04db}TextLinesL{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}  Id
1
Gx_lÂ!0jüo©   ‡½·ñÄÖ¹ÚSystem.StringL{f8a58466-d7f6-439f-bbb8-d4600e41d099}ImplementationL{3b83b776-fb25-43b8-99f2-3c507c9143fc}TextDocumentL{f3878285-8e4f-490b-bb1b-9acbb7eb04db}TextLinesL{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}  Id
2
longTagText
(PT := ADR(FileName);6l := stu.StrLenW(FileName);SLASH_CNT := 0;(FOR pos := 1 TO l DOJ   IF pt^ = GC_sparkplug.FW_SLASH THEN H        SLASH_CNT := SLASH_CNT + 1;     END_IF;"    PT := PT + 1;END_FOR;RRightMostAfterLastSlash := l - SLASH_CNT;¢ReturnFileName := STRING_TO_WSTRING( RIGHT( FileName, RightMostAfterLastSlash ));InterfaceL{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}NMETHOD PRIVATE ReturnFileName : WSTRINGVAR_INPUTœ    FileName : T_MaxString; // File name can contain an absolute or relative path to the file. Path entries must be separated with a Slash (/)END_VARVAR *    SLASH_CNT : UINT;!    l: DINT;"2   pt : POINTER TO WSTRING;# pos: DINT;$F    RightMostAfterLastSlash : DINT;ÐÐÐEÐÐ  
2
longTagText
(PT := ADR(FileName);–l := stu.StrLenW(pstData := ADR(FileName)); //get length of filename & pathSLASH_CNT := 0;(FOR pos := 1 TO l DON    IF pt^ = GC_sparkplug.FW_SLASH THENF        SLASH_CNT := SLASH_CNT + 1;    END_IF;"    PT := PT + 1;END_FOR;RRightMostAfterLastSlash := l - SLASH_CNT;|Stu.StrMidW(pwst := ADR(FileName), // assume pointer to bufferd            uiInputBufferSize := SIZEOF(FileName),˜            iLength := TO_INT((SIZEOF(FileName) - RightMostAfterLastSlash)),r            iPosition := TO_INT(RightMostAfterLastSlash),\            pwstResult := ADR(ReturnFileName),t            uiResultBufferSize := SIZEOF(ReturnFileName));InterfaceL{a9ed5b7e-75c5-4651-af16-d2c27e98cb94} NMETHOD PRIVATE ReturnFileName : WSTRING!VAR_INPUT"œ    FileName : T_MaxString; // File name can contain an absolute or relative path to the file. Path entries must be separated with a Slash (/)#END_VAR$VAR%*    SLASH_CNT : UINT;&    l: DINT;'2    pt : POINTER TO WSTRING;( pos: DINT;)F    RightMostAfterLastSlash : DINT;ÐÐÐEÐÐ  
3
­'ÚÐ-
ÐÐ  
3
­4ÚÐ-
ÐÐ  
4
­(ÚÐ-ÐÐ  
4
­5ÚÐ-ÐÐ  
5
­)ÚÐ-ÐÐ  
5
­6ÚÐ-ÐÐ  
6
­*ÚÐ-ÐÐ  
6
­7ÚÐ-ÐÐ  
7
­+ÚÐ-ÐÐ  
7
­8ÚÐ-ÐÐ  
8
­.ÚÐ-ÐÐ  
8
­9ÚÐ-ÐÐ  
9
­-ÚÐ-ÐÐ  
9
­:ÚÐ-ÐÐ  
10
­,ÚÐ-ÐÐ  
10
­;ÚÐ-ÐÐ  
11
­ÚÐ-ÐÐ  
11
­<ÚÐ-ÐÐ  
12
­2ÚÐ-ÐÐ  
12
­=ÚÐ-ÐÐ  
13
­1ÚÐ-ÐÐ  
13
­>ÚÐ-ÐÐ  
14
­0ÚÐ-ÐÐEÐÐ    
14
­?ÚÐ-ÐÐ  
15
­@ÚÐ-ÐÐ  
16
­AÚÐ-ÐÐ  
17
­BÚÐ-ÐÐ  
18
­CÚÐ-ÐÐ  
19
­DÚÐ-ÐÐ  
20
­EÚÐ-ÐÐ  
21
­0ÚÐ-ÐÐEÐÐ    
15
­ÚÐ-ÐÐ  
22
­ÚÐ- ÐÐ  
16
­ÚÐ-ÐÐ  
23
­ÚÐ-!ÐÐ  
17
­   ÚÐ-ÐÐ    
24
­   ÚÐ-"ÐÐ    
18
­ÚÐ-ÐÐ  
25
­ÚÐ-#ÐÐ  
19
­
26
­
20
ÚÐ-ÐÐ    
27
ÚÐ-$ÐÐ    
21
­&ÚÐ- ÐÐ  
28
­&ÚÐ-%ÐÐ  
22
­"ÚÐ-!ÐÐ  
29
­"ÚÐ-&ÐÐ  
23
­#ÚÐ-"ÐÐ  
30
­#ÚÐ-'ÐÐ  
24
­!ÚÐ-#ÐÐ  
31
­!ÚÐ-(ÐÐ  
25
­3ÚÐ-$ÐÐ  
32
­3ÚÐ-)ÐÐ  
26
­ÚÐ-
33
­ÚÐ-#