Line data Source code
1 : /* Copyright (c) 2014-2017, Stefan.Eilemann@epfl.ch
2 : *
3 : * This file is part of Servus <https://github.com/HBPVIS/Servus>
4 : *
5 : * This library is free software; you can redistribute it and/or modify it under
6 : * the terms of the GNU Lesser General Public License version 3.0 as published
7 : * by the Free Software Foundation.
8 : *
9 : * This library is distributed in the hope that it will be useful, but WITHOUT
10 : * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 : * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12 : * details.
13 : *
14 : * You should have received a copy of the GNU Lesser General Public License
15 : * along with this library; if not, write to the Free Software Foundation, Inc.,
16 : * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 : */
18 :
19 : namespace servus
20 : {
21 : namespace none
22 : {
23 : class Servus : public servus::Servus::Impl
24 : {
25 : public:
26 0 : explicit Servus(const std::string& name)
27 0 : : servus::Servus::Impl(name)
28 : {
29 0 : }
30 0 : virtual ~Servus() {}
31 0 : std::string getClassName() const { return "none"; }
32 0 : servus::Servus::Result announce(const unsigned short,
33 : const std::string&) final
34 : {
35 0 : return servus::Servus::Result(servus::Servus::Result::NOT_SUPPORTED);
36 : }
37 :
38 0 : void withdraw() final {}
39 0 : bool isAnnounced() const final { return false; }
40 0 : servus::Servus::Result beginBrowsing(const servus::Servus::Interface) final
41 : {
42 0 : return servus::Servus::Result(servus::Servus::Result::NOT_SUPPORTED);
43 : }
44 :
45 0 : servus::Servus::Result browse(const int32_t) final
46 : {
47 0 : return servus::Servus::Result(servus::Servus::Result::NOT_SUPPORTED);
48 : }
49 :
50 0 : void endBrowsing() final {}
51 0 : bool isBrowsing() const final { return false; }
52 0 : void _updateRecord() final {}
53 : };
54 : }
55 : }
|