LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to map key-value pairs in CVI?

I need dictionary type of data structure where is key-value pairs. I would like to get value by key.
In C++ this can be done with CMAP class.
0 Kudos
Message 1 of 3
(3,316 Views)
Try to use ini fileformat and use the read/write .ini style libarary
(inifile.fp )


[section1]
tag1=value1
tag2=vaalue2
,,

[section3]
tag1=value1
tagn=valun


lajos


"Orbis" wrote in message
news:50650000000800000041FF0000-1079395200000@exchange.ni.com...
>I need dictionary type of data structure where is key-value pairs. I
> would like to get value by key.
> In C++ this can be done with CMAP class.
0 Kudos
Message 2 of 3
(3,316 Views)
Thanks.
I never thought about applying INI format for this.
I guess it works eventhough it is not that nice way to code it.
I guess I could create fuction that mimics the CMAP class by using INi fileformat. That's way the actual implementation wouldn't show in the upper level that is using the maps.
Thanks!
0 Kudos
Message 3 of 3
(3,316 Views)