Show
Ignore:
Timestamp:
09/02/10 22:19:15 (21 months ago)
Author:
Antti-Juhani Kaijanaho <antti-juhani@…>
Children:
1a970cd0640f976f152341597a5249ec22acbba7
Parents:
c504199e7e127458fff243397776ee854e62b7a3
git-committer:
Antti-Juhani Kaijanaho <antti-juhani@…> (09/02/10 22:19:15)
Message:

Add support for message/rfc822

Signed-off-by: Antti-Juhani Kaijanaho <antti-juhani@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • msg/entity.hh

    rc504199 re7bbf3c  
    2121#define GUARD_MSG_ENTITY_HH 
    2222 
     23#include "format_violation.hh" 
    2324#include <boost/algorithm/string/case_conv.hpp> 
    2425#include <boost/shared_ptr.hpp> 
     
    3435        class entity 
    3536        { 
     37                std::string errors; 
     38 
    3639        public: 
    3740                typedef boost::shared_ptr<entity> ptr; 
     
    4447 
    4548                virtual ~entity() {} 
     49 
     50                void validate_format() { 
     51                        if (!errors.empty()) throw format_violation(errors); 
     52                } 
    4653 
    4754                field_iterator fields_begin() const {