Ken Giusti created DISPATCH-101:
-----------------------------------

             Summary: Create a field iterator that is specific to handling 
address fields
                 Key: DISPATCH-101
                 URL: https://issues.apache.org/jira/browse/DISPATCH-101
             Project: Qpid Dispatch
          Issue Type: Improvement
          Components: Router Node
    Affects Versions: 0.3
            Reporter: Ken Giusti
            Assignee: Ken Giusti
            Priority: Minor
             Fix For: 0.4


The API for the qd_field_iterator_t type has a 'view' concept that is specific 
to address fields (to, target/source, etc).   However, the iterator is used to 
parse other types of fields (eg, subject, message annotations, etc). 

A better model for the API would be to 'subclass' the address field specific 
functionality (i.e., views)  into its own type, an iterator specifically used 
to parse address fields.   For specifically:

typedef struct qd_address_iterator_t {
   qd_field_iterator_t iterator;
  pointer_t view_start_pointer;
  .... other view-specific stuff ...
};




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to