class Message


Public Methods

Message()
Message(double *, int)
Message(int *, int)
Message(char *, int)
virtual ~Message()
virtual int putData(char *theData, int startLoc, int endLoc)
virtual const char* getData(void)
virtual int getSize(void)

Documentation

Messages are objects that can be sent between Channels. They are provided to allow data of arbitrary length and type, e.g. structs, to be sent between processes running on similar machine architectures. WARNING Sending Messages between machines with different architectures can result in erroniuos data being received. Each Message object keeps a pointer to the data it represents and an integer outlining the data size. There is no copy of the data kept by the Message.

Message()

Message(double *, int num);

Message(double *, int)

Message(char *, int num);

Message(int *, int)

Message(char *, int)

To construct an empty message

virtual ~Message()

To construct a message for sending/receiving an array containing num doubles

virtual int putData(char *theData, int startLoc, int endLoc)

A method which will put the data given by the character pointer theData of size endLoc -startLoc into the data array pointed to by the Message starting at location startLoc in this array. Returns 0 if successful; an error message is printed and a -1 is returned if not. The routine bcopy() is used to copy the data.

virtual const char* getData(void)

A method which returns a const char * pointer to the messages data

virtual int getSize(void)

A method to get the size of the array. The unit of size is that of a character.


This class has no child classes.

alphabetic index Contents

this page has been generated automatically by a slightly modified version of doc++ for OpenSees

Copyright Contact Us