PrimitiveMessage

This class defines a minimal abstraction of a text-bearing message. The class provides method to set and retrieve the text that is part of the message but is unable to provide any higher-level handling of the text. The PrimitiveMessage object always maintains its own private copy of the text string so that its value is unaffected by changes to text strings outside of the PrimitiveMessage object.

[ Index | Source | Summary | Member Functions ]

Quick Index


Class Summary

class PrimitiveMessage
{

public:
PrimitiveMessage(char* text);
void SetText(char* newText);
char* GetText();
~PrimitiveMessage();
}; // PrimitiveMessage

Back to the top of PrimitiveMessage


PrimitiveMessage(char* text);

Construct a PrimitiveMessage object with a given text string.

	PrimitiveMessage(char* text);

Back to the top of PrimitiveMessage


void SetText(char* newText);

Change the text string of the object to a new text string.

	void SetText(char* newText);

Back to the top of PrimitiveMessage


char* GetText();

Return the current text string of the PrimitiveMessage object. A copy of the text string held by the object is returned (so the return string can be altered or deleted without changing the text string of the PrimitiveMessage.

	char* GetText();

Back to the top of PrimitiveMessage


~PrimitiveMessage();

Reclaim the resources (the text string) that is associated with the object being deleted.

	~PrimitiveMessage();

Back to the top of PrimitiveMessage


Member Functions

public:
void SetText(char* newText);
char* GetText();

Back to the top of PrimitiveMessage


Generated from source by the Cocoon utilities on Thu Apr 02 12:39:41 1998 .

Report problems to jkotula@unimax.com