Skip to content

Commit

Permalink
feat: support deleting tables from document root
Browse files Browse the repository at this point in the history
  • Loading branch information
jimkring committed Nov 16, 2023
1 parent 11e9414 commit 722884c
Show file tree
Hide file tree
Showing 10 changed files with 159 additions and 123 deletions.
39 changes: 24 additions & 15 deletions lv_src/Doc/Doc.lvclass
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@
<Property Name="NI.ClassItem.IsStaticMethod" Type="Bool">true</Property>
<Property Name="NI.ClassItem.MethodScope" Type="UInt">1</Property>
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1074266640</Property>
<Property Name="NI.ClassItem.State" Type="Int">1082401296</Property>
</Item>
</Item>
<Item Name="is_a_doc.vi" Type="VI" URL="../is_a_doc.vi">
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">)!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!#=!!!!"!!%!!!!$E!B#7FT,8:B&lt;'FE0Q!O1(!!(A!!(1^U&lt;WVM8W6E;81O&lt;(:M;7),2'^D,GRW9WRB=X-!"E2P9S"J&lt;A!!6!$Q!!Q!!!!!!!%!!!!!!!!!!!!!!!!!!!!!!!)#!!"Y!!!!!!!!!!!!!!E!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"!!!!!!!1!$!!!!!!</Property>
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">)!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!&amp;=!!!!#Q!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!"*!)1VS:7:@;8.@&gt;G&amp;M;71`!#Z!=!!?!!!&gt;$X2P&lt;7R@:72J&gt;#ZM&gt;GRJ9AN%&lt;W-O&lt;(:D&lt;'&amp;T=Q!(2'^D)'^V&gt;!!E1#%@=G&amp;J=W5A:8*S&lt;X)A;79A;7ZW97RJ:$]A+%:B&lt;(.F+1!A1&amp;!!!Q!!!!%!!B.F=H*P=C"J&lt;C!I&lt;G]A:8*S&lt;X)J!#Z!=!!?!!!&gt;$X2P&lt;7R@:72J&gt;#ZM&gt;GRJ9AN%&lt;W-O&lt;(:D&lt;'&amp;T=Q!'2'^D)'FO!!"B!0!!$!!$!!1!"1!'!!1!"!!%!!=!#!!%!!1!#1-!!(A!!!U)!!!!!!!!#1!!!!U,!!!!!!!!!!!!!!!!!!!)!!!!#A!!!!!!!!!!!!!!%!!!$1!!!!Q!!!!!!!!!!!!!!1!+!!!!!!</Property>
<Property Name="NI.ClassItem.ExecutionSystem" Type="Int">-1</Property>
<Property Name="NI.ClassItem.Flags" Type="Int">0</Property>
<Property Name="NI.ClassItem.IsStaticMethod" Type="Bool">true</Property>
<Property Name="NI.ClassItem.MethodScope" Type="UInt">1</Property>
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1342710272</Property>
<Property Name="NI.ClassItem.State" Type="Int">1082139152</Property>
</Item>
<Item Name="to_toml_string.vi" Type="VI" URL="../to_toml_string.vi">
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">)!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!%[!!!!#A!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!"2!-0````],&gt;'^N&lt;&amp;^T&gt;(*J&lt;G=!,E"Q!"Y!!"U0&gt;'^N&lt;&amp;^F:'FU,GRW&lt;'FC#U2P9SZM&gt;G.M98.T!!&gt;%&lt;W-A&lt;X6U!#"!5!!$!!!!!1!#%W6S=G^S)'FO)#BO&lt;S"F=H*P=CE!,E"Q!"Y!!"U0&gt;'^N&lt;&amp;^F:'FU,GRW&lt;'FC#U2P9SZM&gt;G.M98.T!!:%&lt;W-A;7Y!!'%!]!!-!!-!"!!&amp;!!9!"!!%!!1!"!!(!!1!"!!)!Q!!?!!!$1A!!!!!!!!*!!!!$1M!!!!!!!!!!!!!!!!!!!!!!!!+!!!!!!!!!!!!!!!1!!!.!!!!$!!!!!!!!!!!!!!"!!E!!!!!</Property>
Expand All @@ -56,16 +56,16 @@
<Property Name="NI.ClassItem.IsStaticMethod" Type="Bool">true</Property>
<Property Name="NI.ClassItem.MethodScope" Type="UInt">1</Property>
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1342972432</Property>
<Property Name="NI.ClassItem.State" Type="Int">1082139152</Property>
</Item>
<Item Name="from_string.vi" Type="VI" URL="../from_string.vi">
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">)!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!%Z!!!!#A!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!#Z!=!!?!!!&gt;$X2P&lt;7R@:72J&gt;#ZM&gt;GRJ9AN%&lt;W-O&lt;(:D&lt;'&amp;T=Q!(2'^D)'^V&gt;!!A1&amp;!!!Q!!!!%!!B.F=H*P=C"J&lt;C!I&lt;G]A:8*S&lt;X)J!!Z!-0````]%&gt;'^N&lt;!!!1%!S`````T:P=(2J&lt;WZB&lt;#"G;7RF)("B&gt;'AA+(2P)'FO9WRV:'5A;7YA='&amp;S=W5A:8*S&lt;X)A&lt;76T=W&amp;H:3E!!&amp;1!]!!-!!-!"!!%!!5!"!!%!!1!"!!'!!1!"Q!)!Q!!?!!!$1A!!!!!!!!!!!!!#1!!!!!!!!!!!!!!!!!!!!!!!!!+!!!!!!!!!"!!!!!1!!!!!!%!#1!!!!!</Property>
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">)!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!%Z!!!!#A!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!#Z!=!!?!!!&gt;$X2P&lt;7R@:72J&gt;#ZM&gt;GRJ9AN%&lt;W-O&lt;(:D&lt;'&amp;T=Q!(2'^D)'^V&gt;!!A1&amp;!!!Q!!!!%!!B.F=H*P=C"J&lt;C!I&lt;G]A:8*S&lt;X)J!!Z!-0````]%&gt;'^N&lt;!!!1%!S`````T:P=(2J&lt;WZB&lt;#"G;7RF)("B&gt;'AA+(2P)'FO9WRV:'5A;7YA='&amp;S=W5A:8*S&lt;X)A&lt;76T=W&amp;H:3E!!&amp;1!]!!-!!-!"!!%!!5!"!!%!!1!"!!'!!1!"Q!)!Q!!?!!!$1A!!!!!!!!!!!!!#1!!!!!!!!!!!!!!!!!!!!!!!!!+!!!!!!!!!"!!!!!!!!!!!!%!#1!!!!!</Property>
<Property Name="NI.ClassItem.ExecutionSystem" Type="Int">-1</Property>
<Property Name="NI.ClassItem.Flags" Type="Int">0</Property>
<Property Name="NI.ClassItem.IsStaticMethod" Type="Bool">true</Property>
<Property Name="NI.ClassItem.MethodScope" Type="UInt">1</Property>
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1082130960</Property>
<Property Name="NI.ClassItem.State" Type="Int">1082139152</Property>
</Item>
<Item Name="list_tables.vi" Type="VI" URL="../list_tables.vi">
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">)!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!&amp;-!!!!#Q!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!!Z!-0````]%&lt;'FO:1!!'%"!!!(`````!!5,&gt;'&amp;C&lt;'6@&lt;G&amp;N:8-!,E"Q!"Y!!"U0&gt;'^N&lt;&amp;^F:'FU,GRW&lt;'FC#U2P9SZM&gt;G.M98.T!!&gt;%&lt;W-A&lt;X6U!#"!5!!$!!!!!1!#%W6S=G^S)'FO)#BO&lt;S"F=H*P=CE!,E"Q!"Y!!"U0&gt;'^N&lt;&amp;^F:'FU,GRW&lt;'FC#U2P9SZM&gt;G.M98.T!!:%&lt;W-A;7Y!!'%!]!!-!!-!"!!'!!=!"!!%!!1!"!!)!!1!"!!*!Q!!?!!!$1A!!!!!!!!*!!!!$1M!!!!!!!!!!!!!!!!!!!!!!!!+!!!!!!!!!!!!!!!1!!!.!!!!$!!!!!!!!!!!!!!"!!I!!!!!</Property>
Expand All @@ -74,25 +74,25 @@
<Property Name="NI.ClassItem.IsStaticMethod" Type="Bool">true</Property>
<Property Name="NI.ClassItem.MethodScope" Type="UInt">1</Property>
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1342710288</Property>
<Property Name="NI.ClassItem.State" Type="Int">1082139152</Property>
</Item>
<Item Name="get_table.vi" Type="VI" URL="../get_table.vi">
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">)!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!&amp;U!!!!$!!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!,E"Q!"Y!!"]0&gt;'^N&lt;&amp;^F:'FU,GRW&lt;'FC$62B9GRF,GRW9WRB=X-!"62B9GRF!!R!)1:G&lt;X6O:$]!!#Z!=!!?!!!&gt;$X2P&lt;7R@:72J&gt;#ZM&gt;GRJ9AN%&lt;W-O&lt;(:D&lt;'&amp;T=Q!(2'^D)'^V&gt;!!%!!!!)%"1!!-!!!!"!!)4:8*S&lt;X)A;7YA+'ZP)'6S=G^S+1!51$$`````#H2B9GRF8WZB&lt;75!!#Z!=!!?!!!&gt;$X2P&lt;7R@:72J&gt;#ZM&gt;GRJ9AN%&lt;W-O&lt;(:D&lt;'&amp;T=Q!'2'^D)'FO!!"B!0!!$!!$!!1!"1!'!!=!"Q!(!!=!#!!(!!E!#A-!!(A!!!U)!!!*!!!!#1!!!!U,!!!!!!!!!!!!!!!!!!!!!!!!#A!!!!!!!!!)!!!!%!!!$1!!!!Q!!!!!!!!!!!!!!1!,!!!!!!</Property>
<Property Name="NI.ClassItem.ExecutionSystem" Type="Int">-1</Property>
<Property Name="NI.ClassItem.Flags" Type="Int">0</Property>
<Property Name="NI.ClassItem.Flags" Type="Int">16777344</Property>
<Property Name="NI.ClassItem.IsStaticMethod" Type="Bool">true</Property>
<Property Name="NI.ClassItem.MethodScope" Type="UInt">1</Property>
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1342710290</Property>
<Property Name="NI.ClassItem.State" Type="Int">1074536980</Property>
</Item>
<Item Name="close.vi" Type="VI" URL="../close.vi">
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">)!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!$L!!!!#!!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!#"!5!!$!!!!!1!#%W6S=G^S)'FO)#BO&lt;S"F=H*P=CE!,E"Q!"Y!!"U0&gt;'^N&lt;&amp;^F:'FU,GRW&lt;'FC#U2P9SZM&gt;G.M98.T!!:%&lt;W-A;7Y!!&amp;1!]!!-!!-!"!!%!!1!"!!%!!1!"!!&amp;!!1!"!!'!Q!!?!!!$1A!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!+!!!!!!!!!!!!!!!1!!!!!!%!"Q!!!!!</Property>
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">)!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!$B!!!!#!!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!":!5!!$!!!!!1!##'6S=G^S)'FO!!!O1(!!(A!!(1^U&lt;WVM8W6E;81O&lt;(:M;7),2'^D,GRW9WRB=X-!"E2P9S"J&lt;A!!6!$Q!!Q!!Q!%!!1!"!!%!!1!"!!%!!5!"!!%!!9$!!"Y!!!.#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!I!!!!!!!!!!!!!!"!!!!!!!1!(!!!!!!</Property>
<Property Name="NI.ClassItem.ExecutionSystem" Type="Int">-1</Property>
<Property Name="NI.ClassItem.Flags" Type="Int">0</Property>
<Property Name="NI.ClassItem.IsStaticMethod" Type="Bool">true</Property>
<Property Name="NI.ClassItem.MethodScope" Type="UInt">1</Property>
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1107821072</Property>
<Property Name="NI.ClassItem.State" Type="Int">1082139152</Property>
</Item>
<Item Name="get_root_table.vi" Type="VI" URL="../get_root_table.vi">
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">)!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!&amp;5!!!!#A!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!,E"Q!"Y!!"]0&gt;'^N&lt;&amp;^F:'FU,GRW&lt;'FC$62B9GRF,GRW9WRB=X-!"62B9GRF!!1!!!!O1(!!(A!!(1^U&lt;WVM8W6E;81O&lt;(:M;7),2'^D,GRW9WRB=X-!"U2P9S"P&gt;81!)%"1!!-!!!!"!!)4:8*S&lt;X)A;7YA+'ZP)'6S=G^S+1!O1(!!(A!!(1^U&lt;WVM8W6E;81O&lt;(:M;7),2'^D,GRW9WRB=X-!"E2P9S"J&lt;A!!91$Q!!Q!!Q!%!!5!"A!&amp;!!5!"1!&amp;!!=!"1!&amp;!!A$!!"Y!!!.#!!!#1!!!!!!!!!.#Q!!!!!!!!!!!!!!!!!!!!!!!!I!!!!!!!!!!!!!!"!!!!U!!!!-!!!!!!!!!!!!!!%!#1!!!!!</Property>
Expand All @@ -101,24 +101,33 @@
<Property Name="NI.ClassItem.IsStaticMethod" Type="Bool">true</Property>
<Property Name="NI.ClassItem.MethodScope" Type="UInt">1</Property>
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1082139152</Property>
</Item>
<Item Name="delete_table.vi" Type="VI" URL="../delete_table.vi">
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">)!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!&amp;)!!!!#Q!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!!Z!)1BE:7RF&gt;'6E0Q!!,E"Q!"Y!!"U0&gt;'^N&lt;&amp;^F:'FU,GRW&lt;'FC#U2P9SZM&gt;G.M98.T!!&gt;%&lt;W-A&lt;X6U!#"!5!!$!!!!!1!#%W6S=G^S)'FO)#BO&lt;S"F=H*P=CE!&amp;%!Q`````QJU97*M:6^O97VF!!!O1(!!(A!!(1^U&lt;WVM8W6E;81O&lt;(:M;7),2'^D,GRW9WRB=X-!"E2P9S"J&lt;A!!91$Q!!Q!!Q!%!!5!"A!%!!1!"!!%!!=!"!!)!!E$!!"Y!!!.#!!!!!!!!!E!!!!.#Q!!!!!!!!!!!!!!!!!!!!!!!!I!!!!!!!!!#!!!!"!!!!U!!!!-!!!!!!!!!!!!!!%!#A!!!!!</Property>
<Property Name="NI.ClassItem.ExecutionSystem" Type="Int">-1</Property>
<Property Name="NI.ClassItem.Flags" Type="Int">16777344</Property>
<Property Name="NI.ClassItem.IsStaticMethod" Type="Bool">true</Property>
<Property Name="NI.ClassItem.MethodScope" Type="UInt">1</Property>
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1342972432</Property>
</Item>
<Item Name="set_item.vi" Type="VI" URL="../set_item.vi">
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">)!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!&amp;_!!!!$!!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!#Z!=!!?!!!&gt;$X2P&lt;7R@:72J&gt;#ZM&gt;GRJ9AN%&lt;W-O&lt;(:D&lt;'&amp;T=Q!(2'^D)'^V&gt;!!91#%39WRP=W6@;82F&lt;4]A+(2S&gt;75J!!!A1&amp;!!!Q!!!!%!!B.F=H*P=C"J&lt;C!I&lt;G]A:8*S&lt;X)J!#Z!=!!?!!!?$X2P&lt;7R@:72J&gt;#ZM&gt;GRJ9AR*&gt;'6N,GRW9WRB=X-!!!2*&gt;'6N!!!31$$`````#7FU:7V@&lt;G&amp;N:1!O1(!!(A!!(1^U&lt;WVM8W6E;81O&lt;(:M;7),2'^D,GRW9WRB=X-!"E2P9S"J&lt;A!!91$Q!!Q!!Q!%!!1!"1!%!!1!"A!%!!=!#!!*!!I$!!"Y!!!.#!!!!!!!!!!!!!!.#Q!!!!!!!!!!!!!)!!!!!!!!!!I!!!!1!!!!%!!!!"!!!!U!!!!-!!!!!!!!!!!!!!%!#Q!!!!!</Property>
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">)!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!&amp;_!!!!$!!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!#Z!=!!?!!!&gt;$X2P&lt;7R@:72J&gt;#ZM&gt;GRJ9AN%&lt;W-O&lt;(:D&lt;'&amp;T=Q!(2'^D)'^V&gt;!!91#%39WRP=W6@;82F&lt;4]A+(2S&gt;75J!!!A1&amp;!!!Q!!!!%!!B.F=H*P=C"J&lt;C!I&lt;G]A:8*S&lt;X)J!#Z!=!!?!!!?$X2P&lt;7R@:72J&gt;#ZM&gt;GRJ9AR*&gt;'6N,GRW9WRB=X-!!!2*&gt;'6N!!!31$$`````#7FU:7V@&lt;G&amp;N:1!O1(!!(A!!(1^U&lt;WVM8W6E;81O&lt;(:M;7),2'^D,GRW9WRB=X-!"E2P9S"J&lt;A!!91$Q!!Q!!Q!%!!1!"1!%!!1!"A!%!!=!#!!*!!I$!!"Y!!!.#!!!!!!!!!!!!!!.#Q!!!!!!!!!!!!!)!!!!!!!!!!I!!!!3!!!!%!!!!"!!!!U!!!!-!!!!!!!!!!!!!!%!#Q!!!!!</Property>
<Property Name="NI.ClassItem.ExecutionSystem" Type="Int">-1</Property>
<Property Name="NI.ClassItem.Flags" Type="Int">0</Property>
<Property Name="NI.ClassItem.IsStaticMethod" Type="Bool">true</Property>
<Property Name="NI.ClassItem.MethodScope" Type="UInt">1</Property>
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1082139152</Property>
<Property Name="NI.ClassItem.State" Type="Int">1117782544</Property>
</Item>
<Item Name="set_table.vi" Type="VI" URL="../set_table.vi">
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">)!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!&amp;I!!!!#Q!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!#Z!=!!?!!!&gt;$X2P&lt;7R@:72J&gt;#ZM&gt;GRJ9AN%&lt;W-O&lt;(:D&lt;'&amp;T=Q!(2'^D)'^V&gt;!!A1&amp;!!!Q!!!!%!!B.F=H*P=C"J&lt;C!I&lt;G]A:8*S&lt;X)J!#Z!=!!?!!!@$X2P&lt;7R@:72J&gt;#ZM&gt;GRJ9AV597*M:3ZM&gt;G.M98.T!!6597*M:1!51$$`````#H2B9GRF8WZB&lt;75!!#Z!=!!?!!!&gt;$X2P&lt;7R@:72J&gt;#ZM&gt;GRJ9AN%&lt;W-O&lt;(:D&lt;'&amp;T=Q!'2'^D)'FO!!"B!0!!$!!$!!1!"!!&amp;!!1!"!!%!!1!"A!(!!A!#1-!!(A!!!U)!!!!!!!!!!!!!!U,!!!!!!!!!!!!!!!!!!!!!!!!#A!!!"!!!!!1!!!!%!!!$1!!!!Q!!!!!!!!!!!!!!1!+!!!!!!</Property>
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">)!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!&amp;I!!!!#Q!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!#Z!=!!?!!!&gt;$X2P&lt;7R@:72J&gt;#ZM&gt;GRJ9AN%&lt;W-O&lt;(:D&lt;'&amp;T=Q!(2'^D)'^V&gt;!!A1&amp;!!!Q!!!!%!!B.F=H*P=C"J&lt;C!I&lt;G]A:8*S&lt;X)J!#Z!=!!?!!!@$X2P&lt;7R@:72J&gt;#ZM&gt;GRJ9AV597*M:3ZM&gt;G.M98.T!!6597*M:1!51$$`````#H2B9GRF8WZB&lt;75!!#Z!=!!?!!!&gt;$X2P&lt;7R@:72J&gt;#ZM&gt;GRJ9AN%&lt;W-O&lt;(:D&lt;'&amp;T=Q!'2'^D)'FO!!"B!0!!$!!$!!1!"!!&amp;!!1!"!!%!!1!"A!(!!A!#1-!!(A!!!U)!!!!!!!!!!!!!!U,!!!!!!!!!!!!!!!!!!!!!!!!#A!!!")!!!!1!!!!%!!!$1!!!!Q!!!!!!!!!!!!!!1!+!!!!!!</Property>
<Property Name="NI.ClassItem.ExecutionSystem" Type="Int">-1</Property>
<Property Name="NI.ClassItem.Flags" Type="Int">0</Property>
<Property Name="NI.ClassItem.IsStaticMethod" Type="Bool">true</Property>
<Property Name="NI.ClassItem.MethodScope" Type="UInt">1</Property>
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1342972432</Property>
<Property Name="NI.ClassItem.State" Type="Int">1117782544</Property>
</Item>
</LVClass>
Binary file added lv_src/Doc/delete_table.vi
Binary file not shown.
Binary file modified lv_src/dragon_toml_32.dll
Binary file not shown.
Binary file modified lv_src/dragon_toml_64.dll
Binary file not shown.
Binary file modified lv_src/dragon_toml_64.so
Binary file not shown.
Binary file modified lv_src/toml/delete_subtable_item.vi
Binary file not shown.
Binary file added lv_src/toml/support/doc_delete_table.vi
Binary file not shown.
Binary file modified lv_src/toml/support/table_delete_subtable_item.vi
Binary file not shown.
224 changes: 116 additions & 108 deletions lv_src/toml/toml.lvclass

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,25 @@ pub extern "C" fn toml_edit_doc_get_root_table(doc: *mut c_void) -> *mut c_void
Box::into_raw(table) as *mut c_void
}

#[allow(dead_code)]
#[no_mangle]
pub extern "C" fn toml_edit_doc_remove_item_from_root_table(doc: *mut c_void, key: *const c_char) -> u64 {
if doc.is_null() {
println!("Document pointer is null");
return 0;
}
let doc = unsafe { &mut *(doc as *mut Document) };
let key = unsafe { CStr::from_ptr(key).to_string_lossy().into_owned() };

return if doc.as_table().contains_key(key.as_str()) {
doc.as_table_mut().remove(key.as_str());
1
} else {
0
};
}


// Close a Document and free the memory
#[allow(dead_code)]
#[no_mangle]
Expand Down

0 comments on commit 722884c

Please sign in to comment.