Main Page   Class Hierarchy   Alphabetical List   Compound List   Examples  
message.h
00001 /***************************************************************************
00002     copyright            : (C) 2002-2008 by Stefano Barbato
00003     email                : stefano@codesink.org
00004 
00005     $Id: message.h,v 1.9 2008-10-07 11:06:27 tat Exp $
00006  ***************************************************************************/
00007 #ifndef _MIMETIC_RFC822_MESSAGE_H_
00008 #define _MIMETIC_RFC822_MESSAGE_H_
00009 #include <string>
00010 #include <iostream>
00011 #include <mimetic/rfc822/header.h>
00012 #include <mimetic/rfc822/body.h>
00013 
00014 namespace mimetic 
00015 {
00016 
00017 /// Simple RFC 822 message type
00018 struct Message
00019 {
00020     Message();
00021     virtual ~Message(){}
00022     Rfc822Header& header();
00023     const Rfc822Header& header() const;
00024     Rfc822Body& body();
00025     const Rfc822Body& body() const;
00026 
00027     friend std::ostream& operator<<(std::ostream&, const Message&);
00028 private:
00029     Rfc822Header m_header;
00030     Rfc822Body m_body;
00031 };
00032 
00033 }
00034 
00035 #endif