Eris  1.4.0
Session.h
1 /*
2  Copyright (C) 2014 Erik Ogenvik
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software Foundation,
16  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef SESSION_H_
20 #define SESSION_H_
21 
22 #include <boost/asio/io_service.hpp>
23 
24 namespace Eris
25 {
26 
27 class EventService;
28 
39 class Session
40 {
41 public:
42  Session();
43  virtual ~Session();
44 
45  boost::asio::io_service& getIoService();
46  EventService& getEventService();
47 
48 protected:
49  boost::asio::io_service* m_io_service;
50  EventService* m_event_service;
51 };
52 
53 }
54 #endif /* SESSION_H_ */
Acts as a single entrypoint to Eris.
Definition: Session.h:39
Every Eris class and type lives inside the Eris namespace; certain utility functions live in the Util...
Definition: Account.cpp:34
Handles polling of the IO system as well as making sure that registered handlers are run on the main ...
Definition: EventService.h:43