Main Page Class Hierarchy Alphabetical List Compound List Examples

rfc822/message.h
1/***************************************************************************
2 copyright : (C) 2002-2008 by Stefano Barbato
3 email : stefano@codesink.org
4
5 $Id: message.h,v 1.9 2008-10-07 11:06:27 tat Exp $
6 ***************************************************************************/
7#ifndef _MIMETIC_RFC822_MESSAGE_H_
8#define _MIMETIC_RFC822_MESSAGE_H_
9#include <string>
10#include <iostream>
11#include <mimetic/rfc822/header.h>
12#include <mimetic/rfc822/body.h>
13
14 namespace mimetic
15{
16
17/// Simple RFC 822 message type
18 struct Message
19{
20 Message();
21 virtual ~Message(){}
22 Rfc822Header& header();
23 const Rfc822Header& header() const;
24 Rfc822Body& body();
25 const Rfc822Body& body() const;
26
27 friend std::ostream& operator<<(std::ostream&, const Message&);
28 private:
29 Rfc822Header m_header;
30 Rfc822Body m_body;
31};
32
33}
34
35#endif
mimetic::Rfc822Header
RFC822 header class object.
Definition rfc822/header.h:34
mimetic
Definition body.h:18
mimetic::Rfc822Body
std::string Rfc822Body
RFC822 body type.
Definition rfc822/body.h:14