Collage  0.6.1
objectHandler.h
00001 
00002 /* Copyright (c) 2012, Stefan Eilemann <eile@eyescale.ch>
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_OBJECTHANDLER_H
00019 #define CO_OBJECTHANDLER_H
00020 
00021 namespace co
00022 {
00024     class ObjectHandler
00025     {
00026     public:
00028         ObjectHandler(){}
00029 
00031         virtual ~ObjectHandler() {}
00032 
00044         virtual bool registerObject( Object* object ) = 0;
00045 
00051         virtual void deregisterObject( Object* object ) = 0;
00052 
00062         virtual uint32_t mapObjectNB( Object* object, const UUID& id,
00063                                       const uint128_t& version,
00064                                       NodePtr master ) = 0;
00065 
00067         virtual bool mapObjectSync( const uint32_t requestID ) = 0;
00068 
00070         virtual void unmapObject( Object* object ) = 0;
00071     };
00072 }
00073 #endif // CO_OBJECTHANDLER_H
Generated on Mon Nov 26 2012 14:41:44 for Collage 0.6.1 by  doxygen 1.7.6.1