Changeset e7bbf3c6b857df8ad33c4d39396d693b48a48461 for msg/entity.hh
- Timestamp:
- 09/02/10 22:19:15 (21 months ago)
- Children:
- 1a970cd0640f976f152341597a5249ec22acbba7
- Parents:
- c504199e7e127458fff243397776ee854e62b7a3
- git-committer:
- Antti-Juhani Kaijanaho <antti-juhani@…> (09/02/10 22:19:15)
- Files:
-
- 1 modified
-
msg/entity.hh (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
msg/entity.hh
rc504199 re7bbf3c 21 21 #define GUARD_MSG_ENTITY_HH 22 22 23 #include "format_violation.hh" 23 24 #include <boost/algorithm/string/case_conv.hpp> 24 25 #include <boost/shared_ptr.hpp> … … 34 35 class entity 35 36 { 37 std::string errors; 38 36 39 public: 37 40 typedef boost::shared_ptr<entity> ptr; … … 44 47 45 48 virtual ~entity() {} 49 50 void validate_format() { 51 if (!errors.empty()) throw format_violation(errors); 52 } 46 53 47 54 field_iterator fields_begin() const {
