Hello, I’m using ofxGui and ofParameter in order to save the seetings of the GUI in differents XML files. Everything works fine, I can save and load parameters .
the xml file look like this:
Now i would like is to read(not to modify, in this case) a field as a nested field, that can contains multiple items, like the field rules in this example:
ofParmaterGroup should do, you can anidate an ofParameterGroup into another and ofParameter into an ofParameterGroup and will give you the xml you are trying to create.
ofParameter of a vector should work but won’t be serializable since vector doesn’t implement the stream operator
But I can not specify the number of the parameter contained in the group in the setup call, because sometimes the node contains 3 nested node, sometimes only one.
I think i go for a simple string and a character that acts as delimiters between the different values.
Sorry to bring back this old thread. Is there a way now to serialise ofParameter<vector>?
I tried to implement stream operators to vector but since ofParameter class is not aware of those implementations seems not to work.