If I have a bunch of structures defined within a class header file but outside the scope of the class how would I set a SETTER function to change the values.
struct VoltageValues
{
float Vcc;
int TblkLoopEnb;
double Blah;
};
class TblkArray
{
public:
TblkArray();
~TblkArray();
struct VoltageValues *getVoltageValues();
void setVoltageValues;???????????????????
private:
struct VoltageValues myVoltageValues;
int IgnoreFail;
unsigned char BitIgnore;
};
I'm not sure how to setup the SETTER function(setVoltageValues) to access the elements of the structure. Thanks.