Hi, I'm programming a class that handles a certain types of parameters. And also can save/load them from disk. Well for each parameter I have it's corresponding setter and getter method all similar to the following:

Qt Code:
  1. double ProcParamsHandler::sizeH()
  2. {
  3. return m_sizeh;
  4. }
  5.  
  6. void ProcParamsHandler::setSizeH(double newSizeH)
  7. {
  8. if (newSizeH < 0 || newSizeH > MAX_SIZE_H)
  9. newSizeH = INVALID_SIZE;
  10. m_sizeH = newSizeH;
  11. }
To copy to clipboard, switch view to plain text mode 
I also have implemented a method to set the value for all the parameters (like the setter above) all in just a simple call. Well my question is: what's the common way to implement this "global" setter: calling its setter for each parameter or putting directly the code of its corresponding setter for each parameter?

Thanks.