Hi Jürgen,
use zconfig_child and zconfig_next to navigate the config tree. Using
zconfig_locate("/geofence/location") you can jump to your first location.

//Kevin

Juergen Gnoss <jgn...@hotmail.com> schrieb am So., 18. Okt. 2020, 21:52:

>
> The example for zconfig shows the following
>
>
> context
>     iothreads = 1
>     verbose = 1      #   Ask for a trace
> main
>     type = zqueue    #  ZMQ_DEVICE type
>     frontend
>         option
>             hwm = 1000
>             swap = 25000000     #  25MB
>         bind = 'inproc:@@//@@addr1'
>         bind = 'ipc:@@//@@addr2'
>     backend
>         bind = inproc:@@//@@addr3
>
>
> Question: How do I get the second value of the bind key under frontend?
>
>
> I have a config file where I need to specify several geofence coordinates.
> each geofence has a name and an infinite set of vertexes
> each vertex has a  lat, long pair
>
> I think to store it like so:
>
>
>     geofence
>         location = 1
>             name = "First_Down"
>             ll = -11.836177, -77.108178
>             ll = -11.836864, -77.108759
>             ll = -11.836974, -77.108620
>             ll = -11.836271, -77.108046
>         location = 2
>             name = "First_Up"
>             ll = -12.836177, -77.108178
>             ll = -12.836864, -77.108759
>             ll = -12.836974, -77.108620
>             ll = -12.836271, -77.108046
>             ll = -12.836864, -77.108759
>             ll = -12.836974, -77.108620
>             ll = -12.836271, -77.108046
>
>               .
>               .
>               .
>        location = n
>             name = "blahblah_Down"
>             ll = -13.836177, -77.108178
>             ll = -13.836864, -77.108759
>             ll = -13.836974, -77.108620
>             ll = -13.836271, -77.108046
>
>
> How do I retrieve that in order to put that in a set of struct's.
> I guess using child and sibling is the way to do it, but I'm too stupid to
> get that right.
> Anyone can give me a hint how to get what I want.
>
>
> thanks
> Ju
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev@lists.zeromq.org
> https://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to