/// <summary>Information about all parameters, sorted by the parameter ID.</summary>
public : static ParameterDef InfoModelOne ;
public: static ParameterDef InfoModelTwo ;
public : static ParameterDef InfoModelThree ;
During run-time we find the model of our embedded product. Depending of the model, we use one of above arrays. This array will be used by two different tasks. I don't want to check the running model and use the associated array everytime the array is needed.
I would like to get the product model, and assign array to some pointer variable and use that pointer variable whenever I need to access the array.
maybe possibilities are as follows:
ParameterDef * Info_Ptr;
info_Ptr = InfoModelOne;
info_ptr = InfoModelTwo;
info_ptr = InfoModelThree;
or can I create array as follows:
public : static ParameterDef Info [ ] ;
and then maybe I can do: Info = InfoModelOne; // or other two models