Public Member Functions | |
DVPSIPCMessage () | |
default constructor | |
DVPSIPCMessage (const DVPSIPCMessage ©) | |
copy constructor | |
virtual | ~DVPSIPCMessage () |
destructor | |
DVPSIPCMessage & | operator= (const DVPSIPCMessage &) |
copy assignment operator | |
void | setMessageType (Uint32 msgtype) |
sets the message type | |
Uint32 | getMessageType () |
returns the message type | |
void | addStringToPayload (const char *str) |
adds a character string into the message payload. | |
void | addIntToPayload (Uint32 i) |
adds an integer into the message payload. | |
OFBool | extractStringFromPayload (OFString &str) |
extracts a string from the message payload and copies it into the given str object. | |
OFBool | extractIntFromPayload (Uint32 &i) |
extracts an integer from the message payload. | |
void | rewindPayload () |
rewinds the read offset to the beginning of the message payload | |
void | erasePayload () |
removes all payload | |
OFBool | send (DcmTransportConnection &connection) |
sends the current message over the given transport connection. | |
OFBool | receive (DcmTransportConnection &connection) |
receives a messages from the given transport connection and stores it in the current object, replacing any existing payload. | |
Static Public Attributes | |
const Uint32 | OK |
const Uint32 | requestApplicationID |
const Uint32 | assignApplicationID |
const Uint32 | applicationTerminates |
const Uint32 | receivedUnencryptedDICOMConnection |
const Uint32 | receivedEncryptedDICOMConnection |
const Uint32 | connectionClosed |
const Uint32 | connectionAborted |
const Uint32 | requestedUnencryptedDICOMConnection |
const Uint32 | requestedEncryptedDICOMConnection |
const Uint32 | receivedDICOMObject |
const Uint32 | sentDICOMObject |
const Uint32 | statusOK |
const Uint32 | statusWarning |
const Uint32 | statusError |
const Uint32 | clientOther |
const Uint32 | clientStoreSCP |
const Uint32 | clientStoreSCU |
const Uint32 | clientPrintSCP |
const Uint32 | clientPrintSCU |
const Uint32 | clientQRSCP |
Private Member Functions | |
void | resizePayload (Uint32 i) |
resize payload if necessary such that at least i bytes can be written | |
Private Attributes | |
Uint32 | messageType |
type of message | |
Uint32 | payloadUsed |
number of bytes actually used in payload | |
Uint32 | payloadAllocated |
number of bytes allocated in payload | |
Uint32 | payloadReadOffset |
read offset into payload in bytes | |
unsigned char * | payload |
pointer to raw payload data in big endian byte order |
Definition at line 46 of file dvpsmsg.h.
|
adds an integer into the message payload.
|
|
adds a character string into the message payload.
|
|
extracts an integer from the message payload.
|
|
extracts a string from the message payload and copies it into the given str object.
|
|
returns the message type
References messageType. |
|
receives a messages from the given transport connection and stores it in the current object, replacing any existing payload.
|
|
resize payload if necessary such that at least i bytes can be written
|
|
sends the current message over the given transport connection.
|
|
sets the message type
References messageType. |