Equalizer  1.2.1
queueSlave.h
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_QUEUESLAVE_H
00020 #define CO_QUEUESLAVE_H
00021 
00022 #include "api.h"
00023 #include "global.h" // used inline
00024 #include "object.h" // base class
00025 #include "types.h"
00026 
00027 namespace co
00028 {
00029 namespace detail { class QueueSlave; }
00030 
00037 class QueueSlave : public Object
00038 {
00039 public:
00054     CO_API QueueSlave( const uint32_t prefetchMark = 
00055                        Global::getIAttribute( Global::IATTR_QUEUE_MIN_SIZE ),
00056                        const uint32_t prefetchAmount = 
00057                        Global::getIAttribute( Global::IATTR_QUEUE_REFILL ));
00058 
00060     virtual CO_API ~QueueSlave();
00061 
00071     CO_API Command* pop();
00072 
00073 private:
00074     detail::QueueSlave* const _impl;
00075 
00076     CO_API virtual void attach(const base::UUID& id, const uint32_t instanceID);
00077 
00078     virtual ChangeType getChangeType() const { return STATIC; }
00079     virtual void getInstanceData( co::DataOStream& ) { EQDONTCALL }
00080     virtual void applyInstanceData( co::DataIStream& is );
00081 };
00082 
00083 } // co
00084 
00085 #endif // CO_QUEUESLAVE_H
Generated on Fri Jun 8 2012 15:44:32 for Equalizer 1.2.1 by  doxygen 1.8.0