BIND 10 #2634: The DhcpConfigParser::getParam should be abstracted to a separate class.

BIND 10 Development do-not-reply at isc.org
Mon Jan 14 11:13:46 UTC 2013


#2634: The DhcpConfigParser::getParam should be abstracted to a separate class.
-------------------------------------+-------------------------------------
                   Reporter:         |                 Owner:
  marcin                             |                Status:  new
                       Type:         |             Milestone:  DHCP
  enhancement                        |  Outstanding Tasks
                   Priority:  low    |              Keywords:
                  Component:         |             Sensitive:  0
  dhcpconf                           |           Sub-Project:  DHCP
               CVSS Scoring:         |  Estimated Difficulty:  0
            Defect Severity:  N/A    |           Total Hours:  0
Feature Depending on Ticket:         |
        Add Hours to Ticket:  0      |
                  Internal?:  0      |
-------------------------------------+-------------------------------------
 As pointed out in the review of #2317 the DhcpConfigParser::getParam
 should be abstracted to a separate class, similar to this:
 {{{
 > template <typename T>
 > class GeneralStorage {
 > public:
 >       void addParam(const string name, const T value);
 >       T getParam(const string name);
 > private:
 >       map<string, T> values_;
 > };
 >
 > typedef GeneralStorage<bool> BooleanStorage;
 > typedef GeneralStorage<string> StringStorage;
 > :
 > etc.
 > }}}

-- 
Ticket URL: <http://bind10.isc.org/ticket/2634>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list