# BasicMessage.hh

Go to the documentation of this file.

    00001 // ----------------------------------------------------------------------------
    00002 // CERTI - HLA RunTime Infrastructure
    00003 // Copyright (C) 2002-2005  ONERA
    00004 //
    00005 // This file is part of CERTI-libCERTI
    00006 //
    00007 // CERTI-libCERTI is free software ; you can redistribute it and/or
    00008 // modify it under the terms of the GNU Lesser General Public License
    00009 // as published by the Free Software Foundation ; either version 2 of
    00010 // the License, or (at your option) any later version.
    00011 //
    00012 // CERTI-libCERTI is distributed in the hope that it will be useful, but
    00013 // WITHOUT ANY WARRANTY ; without even the implied warranty of
    00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    00015 // Lesser General Public License for more details.
    00016 //
    00017 // You should have received a copy of the GNU Lesser General Public
    00018 // License along with this program ; if not, write to the Free Software
    00019 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
    00020 // USA
    00021 //
    00022 // $Id: BasicMessage.hh,v 3.12 2008/05/30 14:04:47 erk Exp $
    00023 // ----------------------------------------------------------------------------
    00024
    00025 #ifndef LIBCERTI_BASIC_MESSAGE
    00026 #define LIBCERTI_BASIC_MESSAGE
    00027
    00028 #include "Extent.hh"
    00029 #include "MessageBuffer.hh"
    00030 #include "BaseRegion.hh"
    00031 #include <vector>
    00032
    00033 namespace certi {
    00034
    00041 class CERTI_EXPORT BasicMessage
    00042 {
    00043 public:
    00044     void setExtents(const std::vector<Extent> &);
    00045     const std::vector<Extent> &getExtents() const ;
    00046
    00047     void setRegions(const BaseRegion **, int);
    00048     void setRegions(const std::vector<RegionHandle> &);
    00049     const std::vector<RegionHandle> &getRegions() const ;
    00050
    00051 protected:
    00052     virtual ~BasicMessage();
    00053     virtual void serialize(MessageBuffer& msgBuffer);
    00054     virtual void deserialize(MessageBuffer& msgBuffer);
    00055
    00056     void readExtents(MessageBuffer& msgBuffer);
    00057     void writeExtents(MessageBuffer& msgBuffer) const ;
    00058
    00059     void readRegions(MessageBuffer& msgBuffer);
    00060     void writeRegions(MessageBuffer& msgBuffer);
    00061
    00062     std::vector<Extent> extents ;
    00063     std::vector<RegionHandle> regions ;
    00064
    00065 };
    00066
    00067 } // namespace certi
    00068
    00069 #endif // LIBCERTI_BASIC_MESSAGE
    00070
    00071 // $Id: BasicMessage.hh,v 3.12 2008/05/30 14:04:47 erk Exp $