|
Revision 1a970cd0640f976f152341597a5249ec22acbba7, 1.5 KB
(checked in by Antti-Juhani Kaijanaho <antti-juhani@…>, 21 months ago)
|
|
[msg::msg] Separate out db::msg and let msg::entity handle the rest
Signed-off-by: Antti-Juhani Kaijanaho <antti-juhani@…>
|
-
Property mode set to
100644
|
| Line | |
|---|
| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | |
|---|
| 19 | |
|---|
| 20 | #ifndef GUARD_MSG_UTIL_HH |
|---|
| 21 | #define GUARD_MSG_UTIL_HH |
|---|
| 22 | |
|---|
| 23 | #include <boost/date_time/posix_time/posix_time.hpp> |
|---|
| 24 | #include <boost/shared_ptr.hpp> |
|---|
| 25 | #include <string> |
|---|
| 26 | |
|---|
| 27 | namespace msg |
|---|
| 28 | { |
|---|
| 29 | class entity; |
|---|
| 30 | |
|---|
| 31 | std::string quote(std::string s); |
|---|
| 32 | |
|---|
| 33 | std::string crlf_canonize(std::string); |
|---|
| 34 | std::string dot_stuff(std::string); |
|---|
| 35 | std::string dot_destuff(std::string); |
|---|
| 36 | boost::posix_time::ptime parse_date(std::string date); |
|---|
| 37 | |
|---|
| 38 | void complete_mime(boost::shared_ptr<entity>); |
|---|
| 39 | void complete_netnews(boost::shared_ptr<entity>); |
|---|
| 40 | void complete_imf(boost::shared_ptr<entity>); |
|---|
| 41 | void validate_netnews(boost::shared_ptr<const entity>); |
|---|
| 42 | void validate_imf(boost::shared_ptr<const entity>); |
|---|
| 43 | } |
|---|
| 44 | |
|---|
| 45 | #endif |
|---|