Collage
0.6.1
|
00001 00002 /* Copyright (c) 2011, Stefan Eilemann <eile@eyescale.ch> 00003 * 2011, Carsten Rohn <carsten.rohn@rtt.ag> 00004 * 00005 * This library is free software; you can redistribute it and/or modify it under 00006 * the terms of the GNU Lesser General Public License version 2.1 as published 00007 * by the Free Software Foundation. 00008 * 00009 * This library is distributed in the hope that it will be useful, but WITHOUT 00010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 00012 * details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public License 00015 * along with this library; if not, write to the Free Software Foundation, Inc., 00016 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00017 */ 00018 00019 #ifndef CO_QUEUEMASTER_H 00020 #define CO_QUEUEMASTER_H 00021 00022 #include "object.h" // base class 00023 #include "api.h" 00024 00025 namespace co 00026 { 00027 namespace detail { class QueueMaster; } 00028 00036 class QueueMaster : public Object 00037 { 00038 public: 00040 CO_API QueueMaster(); 00041 00043 virtual CO_API ~QueueMaster(); 00044 00056 CO_API void push( const QueueItemPacket& packet ); 00057 00059 CO_API void clear(); 00060 00061 private: 00062 detail::QueueMaster* const _impl; 00063 00064 CO_API virtual void attach(const UUID& id, const uint32_t instanceID); 00065 00066 virtual ChangeType getChangeType() const { return STATIC; } 00067 virtual void getInstanceData( co::DataOStream& os ); 00068 virtual void applyInstanceData( co::DataIStream& ) { LBDONTCALL } 00069 }; 00070 00071 } // co 00072 00073 #endif // CO_QUEUEMASTER_H