title: How should I split up the test values?
body: <p>I'm currently working on a program in Qt/C++ that will analyse and test differents values received from a device called "Phabrix SxE". These values will have different limits depending on which product we're testing. </p>
  
  <p>My first thought was to create a class named something like "TestLimits", with private variables for all of the values that we'll test. This class would then be used in i class called "TestConfiguration" (which will, besides the "TestLimits" class, hold information about what IP adress, port and name that the Phabrix device has).</p>
  
  <pre><code>TestConfiguration (name, ip, port, limits);
  </code></pre>
  
  <p>If I use this strategy, I would need to use getters and setters for <strong>every private member value</strong> in the TestLimits class. I'm not a real fan of getters/setters, just because they break encapsulation. If I instead only use the "TestConfiguration" class and declare all of the limits right in the constructor parameters...</p>
  
  <pre><code>TestConfiguration (name, ip, port, limit1, limit2, limit3, ..., ...);
  </code></pre>
  
  <p>... it would get messy pretty fast.</p>
  
  <p>How can I avoid getters, setters and long, messy constructors when creating something like this? Even if I use the "TestLimit" I would need to declare them like this...</p>
  
  <pre><code>TestLimit(limit1, limit2, limit3, ..., ..., ...);
  </code></pre>
  
  <p>... which is still quite messy. And what if I need to add a new value to one of the test? In that scenario I would have needed to edit every row where TestLimit constructor is used.</p>
  
  <p>Anyone done something similar and can throw me some tips? </p>
  
  <p>Thanks!</p>