Main Page   Class Hierarchy   Alphabetical List   Compound List   Examples  

rfc822/message.h

00001 /***************************************************************************
00002     copyright            : (C) 2002-2005 by Stefano Barbato
00003     email                : [email protected]
00004 
00005     $Id: rfc822_2message_8h-source.html,v 1.4 2006-03-12 12:28:31 tat Exp $
00006  ***************************************************************************/
00007 
00008 /***************************************************************************
00009  *                                                                         *
00010  *   This program is free software; you can redistribute it and/or modify  *
00011  *   it under the terms of the GNU General Public License as published by  *
00012  *   the Free Software Foundation; either version 2 of the License, or     *
00013  *   (at your option) any later version.                                   *
00014  *                                                                         *
00015  ***************************************************************************/
00016 #ifndef _MIMETIC_RFC822_MESSAGE_H_
00017 #define _MIMETIC_RFC822_MESSAGE_H_
00018 #include <string>
00019 #include <iostream>
00020 #include <mimetic/rfc822/header.h>
00021 #include <mimetic/rfc822/body.h>
00022 
00023 namespace mimetic 
00024 {
00025 
00026 /// Simple RFC 822 message type
00027 struct Message
00028 {
00029     Message();
00030     virtual ~Message(){}
00031     Rfc822Header& header();
00032     const Rfc822Header& header() const;
00033     Rfc822Body& body();
00034     const Rfc822Body& body() const;
00035 
00036     friend std::ostream& operator<<(std::ostream&, const Message&);
00037 private:
00038     Rfc822Header m_header;
00039     Rfc822Body m_body;
00040 };
00041 
00042 }
00043 
00044 #endif