BusBoy
2
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
cpp
api
context
Message.h
Go to the documentation of this file.
1
17
#ifndef __BUSBOY_MESSAGE_H__
18
#define __BUSBOY_MESSAGE_H__
19
20
#include <string>
21
22
namespace
BUSBOY {
23
24
class
MessageImpl;
25
26
class
Message
{
27
28
public
:
29
30
Message
();
31
32
Message
(
33
const
std::string& topic,
34
const
std::string& content,
35
const
std::string& contentType =
"text/plain"
36
);
37
38
Message
(
const
Message
& msg);
39
40
std::string
getTopic
()
const
;
41
42
std::string
getContent
()
const
;
43
44
std::string
getContentType
()
const
;
45
46
std::string
str
()
const
;
47
48
~Message
();
49
50
Message
&
operator=
(
const
Message
& msg);
51
52
bool
operator==
(
const
Message
& msg)
const
;
53
bool
operator!=
(
const
Message
& msg)
const
;
54
55
private
:
56
MessageImpl
* m_impl;
57
58
};
59
60
std::ostream&
operator<<
(std::ostream& os,
const
Message
& msg);
61
62
63
}
64
#endif
65
Tue Nov 11 2014 23:19:41
1.8.3.1
Copyright 2014 Google Inc. All rights reserved.