Line data Source code
1 : //
2 : // Author: Vladimir Migashko <migashko@gmail.com>, (C) 2013-2015
3 : //
4 : // Copyright: See COPYING file that comes with this distribution
5 : //
6 :
7 : #pragma once
8 :
9 : #include <wfc/domain_object.hpp>
10 : #include "ponger_config.hpp"
11 : #include <pingpong/iponger.hpp>
12 : #include <memory>
13 : #include <string>
14 :
15 :
16 : namespace demo{ namespace pingpong{
17 :
18 0 : class ponger
19 : : public ::wfc::domain_object< iponger, ponger_config>
20 : {
21 : typedef std::vector< std::weak_ptr<iponger> > target_list;
22 : public:
23 : virtual void reconfigure() override;
24 : virtual void ping(ball::ptr, ball::handler, io_id_t, std::weak_ptr<ipinger> ) override;
25 : private:
26 : std::atomic<size_t> _pong_count;
27 : };
28 :
29 : }}
|