Equalizer  1.4.1
objectICommand.h
00001 
00002 /* Copyright (c) 2012, Daniel Nachbaur <danielnachbaur@gmail.com>
00003  *               2012, Stefan.Eilemann@epfl.ch
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_OBJECTICOMMAND_H
00020 #define CO_OBJECTICOMMAND_H
00021 
00022 #include <co/iCommand.h>   // base class
00023 
00024 namespace co
00025 {
00026 enum ObjectCommands
00027 {
00028     CMD_OBJECT_INSTANCE,
00029     CMD_OBJECT_DELTA,
00030     CMD_OBJECT_SLAVE_DELTA,
00031     CMD_OBJECT_MAX_VERSION
00032     // check that not more then CMD_OBJECT_CUSTOM have been defined!
00033 };
00034 
00035 namespace detail { class ObjectICommand; }
00036 
00038 class ObjectICommand : public ICommand
00039 {
00040 public:
00042     CO_API ObjectICommand( LocalNodePtr local, NodePtr remote,
00043                           ConstBufferPtr buffer, const bool swap );
00044 
00046     CO_API ObjectICommand( const ICommand& command );
00047 
00049     CO_API ObjectICommand( const ObjectICommand& rhs );
00050 
00052     CO_API virtual ~ObjectICommand();
00053 
00055     const UUID& getObjectID() const;
00056 
00058     uint32_t getInstanceID() const;
00059 
00060 private:
00061     ObjectICommand();
00062     ObjectICommand& operator = ( const ObjectICommand& );
00063     detail::ObjectICommand* const _impl;
00064 
00065     void _init();
00066 };
00067 
00068 CO_API std::ostream& operator << ( std::ostream& os, const ObjectICommand& );
00069 
00070 }
00071 
00072 #endif //CO_OBJECTICOMMAND_H
Generated on Mon Nov 26 2012 14:41:49 for Equalizer 1.4.1 by  doxygen 1.7.6.1