|
DCMTK
Version 3.6.1 20170228
OFFIS DICOM Toolkit
|
class for IPC message exchange between different processes of the DICOMscope application More...
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 More... | |
| Uint32 | getMessageType () |
| returns the message type More... | |
| void | addStringToPayload (const char *str) |
| adds a character string into the message payload. More... | |
| void | addIntToPayload (Uint32 i) |
| adds an integer into the message payload. More... | |
| OFBool | extractStringFromPayload (OFString &str) |
| extracts a string from the message payload and copies it into the given str object. More... | |
| OFBool | extractIntFromPayload (Uint32 &i) |
| extracts an integer from the message payload. More... | |
| 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. More... | |
| OFBool | receive (DcmTransportConnection &connection) |
| receives a messages from the given transport connection and stores it in the current object, replacing any existing payload. More... | |
Private Member Functions | |
| void | resizePayload (Uint32 i) |
| resize payload if necessary such that at least i bytes can be written More... | |
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 | |
class for IPC message exchange between different processes of the DICOMscope application
| void DVPSIPCMessage::addIntToPayload | ( | Uint32 | i | ) |
adds an integer into the message payload.
| value | to write |
| void DVPSIPCMessage::addStringToPayload | ( | const char * | str | ) |
adds a character string into the message payload.
| str | zero terminated string, may be NULL (in which case an empty string is added) |
| OFBool DVPSIPCMessage::extractIntFromPayload | ( | Uint32 & | i | ) |
extracts an integer from the message payload.
| i | integer is written into this parameter |
extracts a string from the message payload and copies it into the given str object.
| str | string is written into this parameter |
|
inline |
returns the message type
| OFBool DVPSIPCMessage::receive | ( | DcmTransportConnection & | connection | ) |
receives a messages from the given transport connection and stores it in the current object, replacing any existing payload.
| connection | transport connection to be used |
|
private |
resize payload if necessary such that at least i bytes can be written
| i | number of bytes required in buffer |
| OFBool DVPSIPCMessage::send | ( | DcmTransportConnection & | connection | ) |
sends the current message over the given transport connection.
| connection | transport connection to be used |
|
inline |
sets the message type
| msgtype | new message type |