Hot Door CORE Forum

Full Version: Creating Dictionary Prefs + PrefDataVector parameter for *members
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Does anyone have an example of a hdi::core::DictionaryPref with std::vector<std::shared_ptr<hdi::core::PrefData> >?

I am having some issues building this properly. Would love some more insight into how to create these items properly, and it is related to my other post about the internetPOST requests if that helps at all.

thanks again !
With this constructor the intention is for you to create whatever variety of named PrefData subclass objects you need to appear at the root of a dictionary, add them to a vector, then construct the containing DictionaryPref from said vector. Each element will appear in the root of the dictionary with their respective name given when said elements were constructed.