Collage  0.6.1
zeroconf.h
00001 
00002 /* Copyright (c) 2012, Stefan Eilemann <eile@equalizergraphics.com>
00003  *
00004  * This library is free software; you can redistribute it and/or modify it under
00005  * the terms of the GNU Lesser General Public License version 2.1 as published
00006  * by the Free Software Foundation.
00007  *
00008  * This library is distributed in the hope that it will be useful, but WITHOUT
00009  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00010  * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
00011  * details.
00012  *
00013  * You should have received a copy of the GNU Lesser General Public License
00014  * along with this library; if not, write to the Free Software Foundation, Inc.,
00015  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00016  */
00017 
00018 #ifndef CO_ZEROCONF_H
00019 #define CO_ZEROCONF_H
00020 
00021 #include <co/api.h>
00022 #include <co/types.h>
00023 
00024 namespace co
00025 {
00026 namespace detail { class Zeroconf; }
00043     class Zeroconf
00044     {
00045     public:
00047         CO_API Zeroconf( const Zeroconf& from );
00048 
00050         CO_API ~Zeroconf();
00051 
00053         CO_API Zeroconf& operator = ( const Zeroconf& rhs );
00054 
00065         CO_API void set( const std::string& key, const std::string& value );
00066 
00068         CO_API Strings getInstances() const;
00069 
00071         CO_API Strings getKeys( const std::string& instance ) const;
00072 
00074         CO_API bool containsKey( const std::string& instance,
00075                                  const std::string& key ) const;
00076 
00078         CO_API const std::string& get( const std::string& instance,
00079                                        const std::string& key ) const;
00080     private:
00081         Zeroconf();
00082         Zeroconf( lunchbox::Servus& service );
00083         friend class LocalNode;
00084 
00085         detail::Zeroconf* _impl;
00086     };
00087 }
00088 #endif // CO_ZEROCONF_H
Generated on Mon Nov 26 2012 14:41:44 for Collage 0.6.1 by  doxygen 1.7.6.1