a b/project/device_b032fdcd/plc_logic_4bbe9722/application_8e35a463/function_tests_816ce94b/_returnfilename_e0001569/e00015698beb46a192331dd3c1806ca6.object
1
{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)e0001569-8beb-46a1-9233-1dd3c1806ca6","ParentGuid":"(Guid)8e35a463-e747-4a73-9f12-158dbb2b0fb2","Name":"(string)_ReturnFileName","Properties":{"@Type":"2c41fa04:IDictionary","@Value":[{"@Key":"(Guid)829a18f2-c514-4f6e-9634-1df173429203","@Value":{"@Type":"829a18f2","@Value":{"ParentObjects":{"@Type":"fa2ee218:IDictionary","@Value":[{"@Key":"(Guid)d9b2b2cc-ea99-4c3b-aa42-1e5c49e65b84","@Value":"(Guid)816ce94b-c62c-457d-9c5d-1a4dbc23279c"}]}}}}]},"TypeGuid":"(Guid)6f9dac99-8de1-4efc-8465-68ac443b7d08","EmbeddedTypeGuids":{"@Type":"[Guid]","@Value":["(Guid)a9ed5b7e-75c5-4651-af16-d2c27e98cb94","(Guid)3b83b776-fb25-43b8-99f2-3c507c9143fc"]}}},"TypeInfos":{"2c41fa04":"{2c41fa04-1834-41c1-816e-303c7aa2c05b}","81297157":"{81297157-7ec9-45ce-845e-84cab2b88ade}","829a18f2":"{829a18f2-c514-4f6e-9634-1df173429203}","fa2ee218":"{fa2ee218-a39b-4b6d-b249-49dbddbd168a}","Guid":"System.Guid","string":"System.String"}},"object":{"Graph":{"@Type":"6f9dac99","@Value":{"SpecialFunc":{"@Type":"0db3d7bb:Enum","@Value":"None"},"Implementation":{"@Type":"3b83b776","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)17","Tag":null,"Text":"(string)IF pFilename = 0 THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)18","Tag":null,"Text":"(string)    _ReturnFileName := \"\";"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)19","Tag":null,"Text":"(string)    RETURN;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)20","Tag":null,"Text":"(string)ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)21","Tag":null,"Text":"(string)    PT := pFileName;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)22","Tag":null,"Text":"(string)END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)23","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)24","Tag":null,"Text":"(string)// get right most slash position from filename"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)71","Tag":null,"Text":"(string)CurSlashPos := 0;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)26","Tag":null,"Text":"(string)WHILE CurSlashPos <> -1 DO"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)56","Tag":null,"Text":"(string)    // return -1 when NOT found"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)70","Tag":null,"Text":"(string)    RightmostSlashPos := CurSlashPos; // ultimately contains the location of the rightmost slash if present"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)53","Tag":null,"Text":"(string)    CurSlashPos := STU.StrFindW(pst1 := pFilename, pst2 := ADR(SPStack.GC_sparkplug.FW_SLASH), RightmostSlashPos + 1);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)52","Tag":null,"Text":"(string)END_WHILE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)66","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)57","Tag":null,"Text":"(string)IF RightmostSlashPos = -1 THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)59","Tag":null,"Text":"(string)    _ReturnFileName := \"\";"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)62","Tag":null,"Text":"(string)    RETURN;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)60","Tag":null,"Text":"(string)END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)67","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)68","Tag":null,"Text":"(string)_ReturnFileName := \"TEST\";"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)37","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)38","Tag":null,"Text":"(string)//Length := SIZEOF(pFileName^) - rightmostslashpos;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)40","Tag":null,"Text":"(string)//Stu.StrMidW(pwst := pFileName, // assume pointer to buffer"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)41","Tag":null,"Text":"(string)//    uiInputBufferSize := SIZEOF(pFileName^),"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)42","Tag":null,"Text":"(string)//    iLength := Length,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)43","Tag":null,"Text":"(string)//    iPosition := rightmostslashpos,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)44","Tag":null,"Text":"(string)//    pwstResult := ADR(_ReturnFileName),"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)7","Tag":null,"Text":"(string)//    uiResultBufferSize := SIZEOF(_ReturnFileName));"}}]}}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)64","Tag":null,"Text":"(string)// Returns the filename extracted from a fullpath delimted by \"/\"."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)65","Tag":null,"Text":"(string)// If no \"/\" has been found it retruns an empty WSTRING"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)63","Tag":null,"Text":"(string)FUNCTION _ReturnFileName : WSTRING(SPStack.GC_sparkplug.supported_string_lengths)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)9","Tag":null,"Text":"(string)VAR_INPUT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)10","Tag":null,"Text":"(string)    pFileName : POINTER TO WSTRING(SPStack.GC_sparkplug.supported_string_lengths); // File name can contain an absolute or relative path to the file. Path entries must be separated with a Slash (/)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)11","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)12","Tag":null,"Text":"(string)VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)13","Tag":null,"Text":"(string)    PT : POINTER TO WSTRING;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)14","Tag":null,"Text":"(string)    RightmostSlashPos : UINT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)15","Tag":null,"Text":"(string)    CurSlashPos : UINT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)16","Tag":null,"Text":"(string)    Length : UINT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1","Tag":null,"Text":"(string)"}}]}}}}},"UniqueIdGenerator":"(string)71","POULevel":{"@Type":"8e575c5b:Enum","@Value":"Standard"},"ChildObjectGuids":{"@Type":"ArrayList:IList","@Value":[]},"AddAttributeSubsequent":"(bool)False"}},"TypeInfos":{"0db3d7bb":"{0db3d7bb-cde0-4416-9a7b-ce49a0124323}","3b83b776":"{3b83b776-fb25-43b8-99f2-3c507c9143fc}","6f9dac99":"{6f9dac99-8de1-4efc-8465-68ac443b7d08}","8e575c5b":"{8e575c5b-1d37-49c6-941b-5c0ec7874787}","a5de0b0b":"{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}","a9ed5b7e":"{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}","ArrayList":"System.Collections.ArrayList","bool":"System.Boolean","f3878285":"{f3878285-8e4f-490b-bb1b-9acbb7eb04db}","long":"System.Int64","string":"System.String"}}},"FormatVersion":"1.0"}