# cmpicommbuffer.h

    00001 //=========================================================================
    00002 //  CMPICOMMBUFFER.H - part of
    00003 //
    00004 //                  OMNeT++/OMNEST
    00005 //           Discrete System Simulation in C++
    00006 //
    00007 //   Written by:  Andras Varga, 2003
    00008 //
    00009 //=========================================================================
    00010
    00011 /*--------------------------------------------------------------*
    00012   Copyright (C) 2003-2005 Andras Varga
    00013   Monash University, Dept. of Electrical and Computer Systems Eng.
    00014   Melbourne, Australia
    00015
    00016   This file is distributed WITHOUT ANY WARRANTY. See the file
    00017   `license' for details on this and other legal matters.
    00018 *--------------------------------------------------------------*/
    00019
    00020 #ifndef __CMPICOMMBUFFER_H__
    00021 #define __CMPICOMMBUFFER_H__
    00022
    00023 #include "ccommbufferbase.h"
    00024
    00025
    00031 class cMPICommBuffer : public cCommBufferBase
    00032 {
    00033   public:
    00037     cMPICommBuffer();
    00038
    00042     virtual ~cMPICommBuffer();
    00043
    00046     virtual void pack(char d);
    00047     virtual void pack(unsigned char d);
    00048     virtual void pack(bool d);
    00049     virtual void pack(short d);
    00050     virtual void pack(unsigned short d);
    00051     virtual void pack(int d);
    00052     virtual void pack(unsigned int d);
    00053     virtual void pack(long d);
    00054     virtual void pack(unsigned long d);
    00055     virtual void pack(float d);
    00056     virtual void pack(double d);
    00057     virtual void pack(long double d);
    00058     virtual void pack(const char *d);
    00059     virtual void pack(opp_string& d);
    00061
    00064     virtual void pack(const char *d, int size);
    00065     virtual void pack(unsigned char *d, int size);
    00066     virtual void pack(bool *d, int size);
    00067     virtual void pack(short *d, int size);
    00068     virtual void pack(unsigned short *d, int size);
    00069     virtual void pack(int *d, int size);
    00070     virtual void pack(unsigned int *d, int size);
    00071     virtual void pack(long *d, int size);
    00072     virtual void pack(unsigned long *d, int size);
    00073     virtual void pack(float *d, int size);
    00074     virtual void pack(double *d, int size);
    00075     virtual void pack(long double *d, int size);
    00076     virtual void pack(const char **d, int size);
    00077     virtual void pack(opp_string *d, int size);
    00079
    00082     virtual void unpack(char& d);
    00083     virtual void unpack(unsigned char& d);
    00084     virtual void unpack(bool& d);
    00085     virtual void unpack(short& d);
    00086     virtual void unpack(unsigned short& d);
    00087     virtual void unpack(int& d);
    00088     virtual void unpack(unsigned int& d);
    00089     virtual void unpack(long& d);
    00090     virtual void unpack(unsigned long& d);
    00091     virtual void unpack(float& d);
    00092     virtual void unpack(double& d);
    00093     virtual void unpack(long double& d);
    00094     virtual void unpack(const char *&d);
    00095     virtual void unpack(opp_string& d);
    00097
    00100     virtual void unpack(char *d, int size);
    00101     virtual void unpack(unsigned char *d, int size);
    00102     virtual void unpack(bool *d, int size);
    00103     virtual void unpack(short *d, int size);
    00104     virtual void unpack(unsigned short *d, int size);
    00105     virtual void unpack(int *d, int size);
    00106     virtual void unpack(unsigned int *d, int size);
    00107     virtual void unpack(long *d, int size);
    00108     virtual void unpack(unsigned long *d, int size);
    00109     virtual void unpack(float *d, int size);
    00110     virtual void unpack(double *d, int size);
    00111     virtual void unpack(long double *d, int size);
    00112     virtual void unpack(const char **d, int size);
    00113     virtual void unpack(opp_string *d, int size);
    00115 };
    00116
    00117 #endif
    00118