- Main Page
- Modules
- Classes
- Files
- Directories

# cfilecommbuffer.h

    00001 //=========================================================================
    00002 //  CFILECOMMBUFFER.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 __CFILECOMMBUFFER_H__
    00021 #define __CFILECOMMBUFFER_H__
    00022
    00023 #include "ccommbufferbase.h"
    00024
    00025
    00032 class cFileCommBuffer : public cCommBufferBase
    00033 {
    00034   public:
    00038     cFileCommBuffer();
    00039
    00043     virtual ~cFileCommBuffer();
    00044
    00048     void setMessageSize(int size);
    00049
    00052     virtual void pack(char d);
    00053     virtual void pack(unsigned char d);
    00054     virtual void pack(bool d);
    00055     virtual void pack(short d);
    00056     virtual void pack(unsigned short d);
    00057     virtual void pack(int d);
    00058     virtual void pack(unsigned int d);
    00059     virtual void pack(long d);
    00060     virtual void pack(unsigned long d);
    00061     virtual void pack(float d);
    00062     virtual void pack(double d);
    00063     virtual void pack(long double d);
    00064     virtual void pack(const char *d);
    00065     virtual void pack(opp_string& d);
    00067
    00070     virtual void pack(const char *d, int size);
    00071     virtual void pack(unsigned char *d, int size);
    00072     virtual void pack(bool *d, int size);
    00073     virtual void pack(short *d, int size);
    00074     virtual void pack(unsigned short *d, int size);
    00075     virtual void pack(int *d, int size);
    00076     virtual void pack(unsigned int *d, int size);
    00077     virtual void pack(long *d, int size);
    00078     virtual void pack(unsigned long *d, int size);
    00079     virtual void pack(float *d, int size);
    00080     virtual void pack(double *d, int size);
    00081     virtual void pack(long double *d, int size);
    00082     virtual void pack(const char **d, int size);
    00083     virtual void pack(opp_string *d, int size);
    00085
    00088     virtual void unpack(char& d);
    00089     virtual void unpack(unsigned char& d);
    00090     virtual void unpack(bool& d);
    00091     virtual void unpack(short& d);
    00092     virtual void unpack(unsigned short& d);
    00093     virtual void unpack(int& d);
    00094     virtual void unpack(unsigned int& d);
    00095     virtual void unpack(long& d);
    00096     virtual void unpack(unsigned long& d);
    00097     virtual void unpack(float& d);
    00098     virtual void unpack(double& d);
    00099     virtual void unpack(long double& d);
    00100     virtual void unpack(const char *&d);
    00101     virtual void unpack(opp_string& d);
    00103
    00106     virtual void unpack(char *d, int size);
    00107     virtual void unpack(unsigned char *d, int size);
    00108     virtual void unpack(bool *d, int size);
    00109     virtual void unpack(short *d, int size);
    00110     virtual void unpack(unsigned short *d, int size);
    00111     virtual void unpack(int *d, int size);
    00112     virtual void unpack(unsigned int *d, int size);
    00113     virtual void unpack(long *d, int size);
    00114     virtual void unpack(unsigned long *d, int size);
    00115     virtual void unpack(float *d, int size);
    00116     virtual void unpack(double *d, int size);
    00117     virtual void unpack(long double *d, int size);
    00118     virtual void unpack(const char **d, int size);
    00119     virtual void unpack(opp_string *d, int size);
    00121 };
    00122
    00123 #endif