Jump to content

Map/Set composition/decomposition


Recommended Posts

Does anyone know if it's possible to compose/decompose map/sets in LabVIEW?

@LogMAN wrote a fantastic "LabVIEW Composition" library which is able to :

  • compose/decompose LabVIEW classes
  • decompose maps
  • decompose sets

However, there is no support for composition of maps/sets.
(Link: https://github.com/LogMANOriginal/LabVIEW-Composition)

 

@jdpowell and @Antoine Chalons had an interesting discussion on a JSONtext issue ticket about this subject:

(link: https://bitbucket.org/drjdpowell/jsontext/issues/74/add-support-for-maps-set)

However, it doesn't look like there has been resolution yet?

Thanks for any input/insight

Link to comment
12 hours ago, bjustice said:

Does anyone know if it's possible to compose/decompose map/sets in LabVIEW?

Yes it is, both ways.

12 hours ago, bjustice said:

@LogMAN wrote a fantastic "LabVIEW Composition" library which is able to :

  • compose/decompose LabVIEW classes
  • decompose maps
  • decompose sets

However, there is no support for composition of maps/sets.
(Link: https://github.com/LogMANOriginal/LabVIEW-Composition)

I'm glad you like it :) 

There is a new release which adds support for composition of maps and sets. Here is an example of what you can do with it:

153260303_ComposeMapSet.png.76c0c987cf6bb8a6d0145e654d05bdbb.png

12 hours ago, bjustice said:

@jdpowell and @Antoine Chalons had an interesting discussion on a JSONtext issue ticket about this subject:

(link: https://bitbucket.org/drjdpowell/jsontext/issues/74/add-support-for-maps-set)

However, it doesn't look like there has been resolution yet?

Thanks for any input/insight

This is actually a very smart way of doing it. My library takes the keys and values apart into individual arrays. A key-value-pair is certainly easier to work with...

  • Like 1
  • Thanks 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.