PFObject

The objects of this class encapsulate one or more data streams, describing a protocol object.

tPF_ObjectType getType();
Description:

Returns object type.

void setType(tPF_ObjectType type);
Description:

Set object type.

bool isReadOnly();
Description:

Returns true if the object is read-only, i.e. posting it to session has no effect.

void setReadOnly(bool value);
Description:

Assigns read-only flag.

int getStreamCount();
Description:

Returns a number of object streams.

PFStream *getStream(int index = 0);
Description:

Returns a stream at the specified position.

void clear();
Description:

Clears object streams.

PFObject *clone();
Description:

Creates a copy of object.

PFObject *detach();
Description:

Creates a copy of object by moving all streams of old object to new one. The original object streams become empty. This method is useful as a faster analogue of clone(). For example it makes sense to use detach() during implementing a queue of objects indicated via dataAvailable().

void free();
Description:

Deletes object in case if it was created via PFObject_create(), clone() or detach().