a b/project/sparkplug™_mqtt_host_b9741afd/function_blocks_8ad6e219/fb_primaryhost_ec6863e3/fb_primaryhost_948b5570/poolmanager_5b41423e/allocgroupid_6d775c44/6d775c447f48445093de695101606f63.object
1
{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)6d775c44-7f48-4450-93de-695101606f63","ParentGuid":"(Guid)948b5570-7cc5-435c-9690-793c65eb192c","Name":"(string)allocGroupId","Properties":{"@Type":"2c41fa04:IDictionary","@Value":[{"@Key":"(Guid)829a18f2-c514-4f6e-9634-1df173429203","@Value":{"@Type":"829a18f2","@Value":{"ParentObjects":{"@Type":"fa2ee218:IDictionary","@Value":[{"@Key":"(Guid)21af5390-2942-461a-bf89-951aaf6999f1","@Value":"(Guid)5b41423e-5075-4030-998f-2e6fd689615c"}]}}}}]},"TypeGuid":"(Guid)f8a58466-d7f6-439f-bbb8-d4600e41d099","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":"f8a58466","@Value":{"Implementation":{"@Type":"3b83b776","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)98","Tag":null,"Text":"(string)// steal an object from the pool and assign its name"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)99","Tag":null,"Text":"(string)IF NOT THIS^._groupIDPool.ListIsEmpty THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)100","Tag":null,"Text":"(string)    itfElement := THIS^._groupIDs.AppendElem( THIS^._groupIDPool.HeadElem ); //Steal it!"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)101","Tag":null,"Text":"(string)    IF __QUERYPOINTER( itfElement, pfb_groupid ) THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)102","Tag":null,"Text":"(string)        pfb_groupid^.Name := GroupId;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)103","Tag":null,"Text":"(string)        allocGroupID      REF= pfb_groupid^;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)104","Tag":null,"Text":"(string)\tELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)105","Tag":null,"Text":"(string)\t\tnewObjectFromThinAirPlease := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)107","Tag":null,"Text":"(string)\tEND_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)108","Tag":null,"Text":"(string)ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)109","Tag":null,"Text":"(string)\tnewObjectFromThinAirPlease := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)9","Tag":null,"Text":"(string)END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)112","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)122","Tag":null,"Text":"(string)IF newObjectFromThinAirPlease THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)123","Tag":null,"Text":"(string)\t//No object? No worries, we will just create one"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)124","Tag":null,"Text":"(string)\tpfb_groupid := _GroupIDFactory.Create(itfData := initData, eError => FBFError);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)125","Tag":null,"Text":"(string)\tIF pfb_groupid <> 0 THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)137","Tag":null,"Text":"(string)\t\tTHIS^._groupIDs.AppendElem(pfb_groupid^);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)126","Tag":null,"Text":"(string)\t\tpfb_groupid^.Name := GroupId;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)136","Tag":null,"Text":"(string)        allocGroupID      REF= pfb_groupid^;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)128","Tag":null,"Text":"(string)\t\t//No need to add it to the pool... we add it instead when we assign the owner"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)133","Tag":null,"Text":"(string)\tELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)134","Tag":null,"Text":"(string)\t\teError := SPStack.ERROR.HostNotEnoughBlankGroupIDs;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)135","Tag":null,"Text":"(string)\t\tallocGroupID REF= GVL_SPHost.InvalidGroupID;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)132","Tag":null,"Text":"(string)\tEND_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)113","Tag":null,"Text":"(string)END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)111","Tag":null,"Text":"(string)"}}]}}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)84","Tag":null,"Text":"(string)// Will try to allocate a new GroupID with the given name"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)85","Tag":null,"Text":"(string)METHOD allocGroupID : REFERENCE TO FB_GroupID"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)86","Tag":null,"Text":"(string)VAR_IN_OUT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)87","Tag":null,"Text":"(string)    GroupID : WSTRING;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)88","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)89","Tag":null,"Text":"(string)VAR_OUTPUT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)90","Tag":null,"Text":"(string)    eError : SPStack.ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)91","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)92","Tag":null,"Text":"(string)VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)93","Tag":null,"Text":"(string)    itfElement                 : LinkedList.IElement;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)94","Tag":null,"Text":"(string)    pfb_groupid                : POINTER TO FB_GroupID;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)95","Tag":null,"Text":"(string)\tinitData                   : DummyData;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)96","Tag":null,"Text":"(string)\tFBFError                   : FBF.ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)97","Tag":null,"Text":"(string)\tnewObjectFromThinAirPlease : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1","Tag":null,"Text":"(string)END_VAR"}}]}}}}}}},"TypeInfos":{"3b83b776":"{3b83b776-fb25-43b8-99f2-3c507c9143fc}","a5de0b0b":"{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}","a9ed5b7e":"{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}","f3878285":"{f3878285-8e4f-490b-bb1b-9acbb7eb04db}","f8a58466":"{f8a58466-d7f6-439f-bbb8-d4600e41d099}","long":"System.Int64","string":"System.String"}}},"FormatVersion":"1.0"}