CernVM-FS
2.12.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
subscriber.h
Go to the documentation of this file.
1
5
#ifndef CVMFS_NOTIFY_SUBSCRIBER_H_
6
#define CVMFS_NOTIFY_SUBSCRIBER_H_
7
8
#include <string>
9
10
namespace
notify {
11
15
class
Subscriber
{
16
public
:
17
enum
Status
{
18
kContinue
,
19
kFinish
,
20
kError
,
21
};
22
23
Subscriber
() {}
24
virtual
~Subscriber
() {}
25
33
virtual
bool
Subscribe
(
const
std::string& topic) = 0;
34
40
virtual
void
Unsubscribe
() {}
41
42
protected
:
49
virtual
Status
Consume
(
const
std::string& topic,
50
const
std::string& msg_text) = 0;
51
};
52
53
}
// namespace notify
54
55
#endif // CVMFS_NOTIFY_SUBSCRIBER_H_
notify::Subscriber::kFinish
Definition:
subscriber.h:19
notify::Subscriber::kError
Definition:
subscriber.h:20
notify::Subscriber::kContinue
Definition:
subscriber.h:18
notify::Subscriber::Subscriber
Subscriber()
Definition:
subscriber.h:23
notify::Subscriber
Definition:
subscriber.h:15
notify::Subscriber::~Subscriber
virtual ~Subscriber()
Definition:
subscriber.h:24
notify::Subscriber::Status
Status
Definition:
subscriber.h:17
notify::Subscriber::Consume
virtual Status Consume(const std::string &topic, const std::string &msg_text)=0
notify::Subscriber::Subscribe
virtual bool Subscribe(const std::string &topic)=0
notify::Subscriber::Unsubscribe
virtual void Unsubscribe()
Definition:
subscriber.h:40
cvmfs
cvmfs
notify
subscriber.h
Generated on Sun Sep 8 2024 00:20:34 for CernVM-FS by
1.8.5