Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Message.h

Go to the documentation of this file.
00001 /* ****************************************************************** **
00002 **    OpenSees - Open System for Earthquake Engineering Simulation    **
00003 **          Pacific Earthquake Engineering Research Center            **
00004 **                                                                    **
00005 **                                                                    **
00006 ** (C) Copyright 1999, The Regents of the University of California    **
00007 ** All Rights Reserved.                                               **
00008 **                                                                    **
00009 ** Commercial use of this program without express permission of the   **
00010 ** University of California, Berkeley, is strictly prohibited.  See   **
00011 ** file 'COPYRIGHT'  in main directory for information on usage and   **
00012 ** redistribution,  and for a DISCLAIMER OF ALL WARRANTIES.           **
00013 **                                                                    **
00014 ** Developed by:                                                      **
00015 **   Frank McKenna (fmckenna@ce.berkeley.edu)                         **
00016 **   Gregory L. Fenves (fenves@ce.berkeley.edu)                       **
00017 **   Filip C. Filippou (filippou@ce.berkeley.edu)                     **
00018 **                                                                    **
00019 ** ****************************************************************** */
00020                                                                         
00021 // $Revision: 1.1.1.1 $
00022 // $Date: 2000/09/15 08:23:16 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/actor/message/Message.h,v $
00024                                                                         
00025                                                                         
00026 // File: ~/actor/Message.h
00027 //
00028 // Written: fmk 11/96
00029 // Revised:
00030 //
00031 // Purpose: This file contains the class definition for Message.
00032 
00033 #ifndef Message_h
00034 #define Message_h
00035 
00099 class Message
00100 {
00101   public:
00103     Message();
00104 
00106     Message(double *, int);
00108     Message(int *, int);
00110     Message(char *, int);
00112     virtual ~Message();
00113 
00115     virtual int putData(char *theData, int startLoc, int endLoc);    
00117     virtual const char *getData(void);
00119     virtual int getSize(void);
00120 
00122     friend #include <TCP_Socket.h>
00123     friend #include <TCP_SocketNoDelay.h>
00124     friend #include <UDP_Socket.h>
00125     friend #include <MPI_Channel.h>
00126     
00127   private:
00128     int length;
00130     char *data;    
00131 };
00132 
00133 #endif
Copyright Contact Us