» VL.SettingsReader
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

VL.SettingsReader

module

about

This is the first draft of a simple tool that allows you to get the values of settings inside a standard .net .config file like the ones you generate with Visual Studio.

Nothing fancy really, but hopefully it saves someone some work.

A sample config file is included as well as a simple explanation on how to use the nodes.

A standard string output version and a generic version are included.

This first draft attempts to make use of a Singleton, which means all your nodes should point at the same config file for them to behave as expected. This may change in the future.

Thanks to sebescudie and sebl for sharing their significantly more sophisticated solutions, I will try to bring in some of your ideas going forward.

Cheers.

download

VL.SettingsReader.zip
12.06.21 [00:12 UTC] by ravazquez | 369 downloads
v 0.1

tonfilm 15/06/2021 - 13:35

@ravazques thats a good initiative, but I think you should read the file only once... currently, every settings entry reader opens the file and reads it. this could be done only once on create of a central node that also contains the single instance and the path to the file. this node can then be used by all individual entry nodes.

ravazquez 15/06/2021 - 18:16

Hi @tonfilm, thanks for your comment.

My initial idea was to do exactly what you describe, and this:

was my naive attempt to do just that, in my brain, the PathExists was only toggling once, but I can see that this is probably not how it actually works.

What would be the right approach then? Only the path goes into the singleton and then only when the singleton changes read the XML?

Cheers and thanks again!

anonymous user login

Shoutbox

~3d ago

joreg: New beginner video tutorial: World Cities https://youtu.be/ymzrK7tZLBI

~3d ago

catweasel: https://colour-burst.com/2023/01/26/macroscopic/ yeah, ' is there anyone who cares about slides anymore...' Well me for a start! :D

~12d ago

ventolinmono: The ELMO TRV-35 slides into your video feed > https://youtu.be/pcIM9mh1c9k?si=iB4FOfI2D6y0iETy

~22d ago

joreg: The summer season of vvvv workshops is now complete, but you can still get access to all the recordings: https://thenodeinstitute.org/ss24-vvvv-intermediates/

~1mth ago

~1mth ago

joreg: Workshop on 01 08: Augmented Reality using OpenCV, signup here: https://thenodeinstitute.org/courses/ss24-vvvv-augmented-reality-using-opencv-in-vvvv/

~2mth ago

joreg: Workshop on 18 07: Fluid simulations in FUSE, signup here: https://thenodeinstitute.org/courses/ss24-vvvv-fluid-simulations-in-fuse/

~2mth ago

joreg: Workshop on 17 07: Working with particles in FUSE, signup here: https://thenodeinstitute.org/courses/ss24-vvvv-working-with-particles-in-fuse/

~2mth ago

joreg: Here's what happened in June in our little univvvverse: https://visualprogramming.net/blog/2024/vvvvhat-happened-in-june-2024/

~2mth ago

joreg: We're starting a new beginner tutorial series. Here's Nr. 1: https://visualprogramming.net/blog/2024/new-vvvv-tutorial-circle-pit/