PFHeader ================== A header is list of : strings, delimited with \\r\\n sequences. .. cpp:function:: void addField(const std::string& fieldName, const std::string& fieldValue, bool start = false) :param fieldName: Field name :param fieldValue: Field value :param start: true, if the field must be added to the list head :description: Add a new field. .. cpp:function:: unsigned int removeFields(const std::string& fieldName, bool exact) :param fieldName: Name of the fields to remove :param exact: Set to false to remove the fields with names that start from fieldName. :description: Removes the fields with specified name and returns the number of deleted items. .. cpp:function:: std::vector getFields() :description: Returns all fields as an array. .. cpp:function:: PFHeaderField* findFirstField(const std::string& fieldName) :description: Returns a field with specified name, or NULL if it doesn't exist. .. cpp:function:: std::vector findFields(const std::string& fieldName, bool exact) :param fieldName: Field name :param exact: Set to false to find the fields with names that start from fieldName. :description: Returns the fields with specified name as an array. .. cpp:function:: unsigned int countFields(const std::string& fieldName) :description: Returns the number of fields with specified name. .. cpp:function:: unsigned int size() :description: Returns the number of fields in header. .. cpp:function:: PFHeaderField* getField(int index) :description: Returns a field by its index. .. cpp:function:: void clear() :description: Removes all fields from header. .. cpp:function:: bool empty() :description: Returns true if the header doesn't contain fields.