|
DCMTK Version 3.6.9
OFFIS DICOM Toolkit
|
Class representing a User Identity Negotiation acknowledgement sub item. More...
Inheritance diagram for UserIdentityNegotiationSubItemAC:Public Member Functions | |
| UserIdentityNegotiationSubItemAC () | |
| Constructor, creates an empty user identity response structure. | |
| unsigned char | pduType () const |
| Denotes that instance is part of a request (DUL_TYPEASSOCIATEAC) | |
| virtual void | clear () |
| Clears member variables and frees memory. | |
| void | setServerResponse (const char *rsp, const Uint16 &rspLen) |
| Sets server response value. | |
| Uint16 | getServerResponse (char *&targetBuffer, Uint16 &resultLen) const |
| Returns content of server response field Memory is allocated by this function and must be freed by the caller. | |
| OFCondition | streamedLength (unsigned long &length) const |
| Computes total length of item if streamed into buffer. | |
| OFCondition | stream (unsigned char *targetBuffer, unsigned long &lengthWritten) const |
| Stream the package into a byte stream for network transmission. | |
| OFCondition | parseFromBuffer (unsigned char *readBuffer, unsigned long &bytesRead, unsigned long availData) |
| Parse sub item from buffer. | |
| void | dump (STD_NAMESPACE ostream &outstream) const |
| Dump content of this user identity sub item to output stream. | |
| UserIdentityNegotiationSubItemAC & | operator= (const UserIdentityNegotiationSubItemAC &rhs) |
| Assignment operator, does a deep copy of a class instance. | |
| UserIdentityNegotiationSubItemAC (const UserIdentityNegotiationSubItemAC &rhs) | |
| Copy constructor, does a deep copy of a class instance. | |
| ~UserIdentityNegotiationSubItemAC () | |
| Destructor, frees memory. | |
Public Member Functions inherited from UserIdentityNegotiationSubItem | |
| UserIdentityNegotiationSubItem (const unsigned char itemType) | |
| Constructor. | |
| UserIdentityNegotiationSubItem (const UserIdentityNegotiationSubItem &src) | |
| Copy constructor. | |
| virtual unsigned char | getItemType () const |
| Returns item type, which is 0x58 for requests, and 0x58 for acknowledgements. | |
| virtual unsigned char | getReserved () const |
| Returns reserved field, which is 0 in this implementation (see DICOM standard) | |
| virtual | ~UserIdentityNegotiationSubItem () |
| Destructor, nothing to clean up. | |
Private Attributes | |
| char * | m_serverRsp |
| Buffer for server response. | |
| Uint16 | m_rspLength |
| Length of server response in bytes. | |
Class representing a User Identity Negotiation acknowledgement sub item.
| UserIdentityNegotiationSubItemAC::UserIdentityNegotiationSubItemAC | ( | const UserIdentityNegotiationSubItemAC & | rhs | ) |
Copy constructor, does a deep copy of a class instance.
| rhs | The class instance to copy from |
References UserIdentityNegotiationSubItemAC().
|
virtual |
Dump content of this user identity sub item to output stream.
| outstream | The stream to dump to |
Implements UserIdentityNegotiationSubItem.
| Uint16 UserIdentityNegotiationSubItemAC::getServerResponse | ( | char *& | targetBuffer, |
| Uint16 & | resultLen ) const |
Returns content of server response field Memory is allocated by this function and must be freed by the caller.
| targetBuffer | Content of server response field. NULL if not set. Memory of buffer must be freed by the caller. |
| resultLen | Length of returned buffer |
| UserIdentityNegotiationSubItemAC & UserIdentityNegotiationSubItemAC::operator= | ( | const UserIdentityNegotiationSubItemAC & | rhs | ) |
Assignment operator, does a deep copy of a class instance.
| rhs | Right hand side of assignment |
References UserIdentityNegotiationSubItemAC().
|
virtual |
Parse sub item from buffer.
The buffer has to start with the correct user item type.
| readBuffer | The buffer to read from. The pointer to the buffer gets incremented by "bytesRead" bytes. |
| bytesRead | Returns number of bytes read by this function |
| availData | Size of the read buffer |
Implements UserIdentityNegotiationSubItem.
|
virtual |
Denotes that instance is part of a request (DUL_TYPEASSOCIATEAC)
Implements UserIdentityNegotiationSubItem.
| void UserIdentityNegotiationSubItemAC::setServerResponse | ( | const char * | rsp, |
| const Uint16 & | rspLen ) |
Sets server response value.
| rsp | Content of server response value (copied by function) |
| rspLen | Length of buffer |
|
virtual |
Stream the package into a byte stream for network transmission.
| targetBuffer | The buffer to stream to |
| lengthWritten | Returns number of bytes written to buffer |
Implements UserIdentityNegotiationSubItem.
|
virtual |
Computes total length of item if streamed into buffer.
| length | Returns length of the item if streamed |
Implements UserIdentityNegotiationSubItem.