|
DCMTK Version 3.6.9
OFFIS DICOM Toolkit
|
Abstract base class for User Identity Negotiation user items. More...
Inheritance diagram for UserIdentityNegotiationSubItem:Public Member Functions | |
| UserIdentityNegotiationSubItem (const unsigned char itemType) | |
| Constructor. | |
| UserIdentityNegotiationSubItem (const UserIdentityNegotiationSubItem &src) | |
| Copy constructor. | |
| virtual unsigned char | pduType () const =0 |
| Denotes whether instance is part of a request (DUL_TYPEASSOCIATERQ) or acknowledgement PDU (DUL_TYPEASSOCIATEAC) | |
| 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 OFCondition | streamedLength (unsigned long &length) const =0 |
| Computes total length of item if streamed to a buffer. | |
| virtual OFCondition | parseFromBuffer (unsigned char *readBuffer, unsigned long &bytesRead, unsigned long availData)=0 |
| Parse item from buffer. | |
| virtual OFCondition | stream (unsigned char *targetBuffer, unsigned long &lengthWritten) const =0 |
| Stream the package into a byte stream for network transmission. | |
| virtual void | clear ()=0 |
| Clears member variables and frees memory. | |
| virtual void | dump (STD_NAMESPACE ostream &outstream) const =0 |
| Dump content of this user identity sub item to output stream. | |
| virtual | ~UserIdentityNegotiationSubItem () |
| Destructor, nothing to clean up. | |
Private Member Functions | |
| UserIdentityNegotiationSubItem & | operator= (const UserIdentityNegotiationSubItem &) |
| Undefined private assignment operator. | |
Private Attributes | |
| const unsigned char | m_itemType |
| Item type of this user item. | |
| const unsigned char | m_reserved |
| Reserved field, should be always sent with value 0 (default) | |
Abstract base class for User Identity Negotiation user items.
| UserIdentityNegotiationSubItem::UserIdentityNegotiationSubItem | ( | const unsigned char | itemType | ) |
Constructor.
| itemType | Must be set to 0x58 for requests, 0x59 for acknowledgements (done in constructors of sub classes) |
Referenced by UserIdentityNegotiationSubItem(), and operator=().
|
inline |
Copy constructor.
Needed to keep some compilers quiet.
| src | item that should be copied from. |
References UserIdentityNegotiationSubItem(), m_itemType, and m_reserved.
|
pure virtual |
Dump content of this user identity sub item to output stream.
| outstream | The stream to dump to |
Implemented in UserIdentityNegotiationSubItemAC, and UserIdentityNegotiationSubItemRQ.
|
inlinevirtual |
Returns item type, which is 0x58 for requests, and 0x58 for acknowledgements.
References m_itemType.
|
inlinevirtual |
Returns reserved field, which is 0 in this implementation (see DICOM standard)
References m_reserved.
|
private |
Undefined private assignment operator.
Needed to keep some compilers quiet.
References UserIdentityNegotiationSubItem().
|
pure virtual |
Parse item from buffer.
The buffer has to start with the correct user item type.
| readBuffer | The buffer to read from (input and output). The pointer to the buffer gets incremented by "bytesRead" bytes. |
| bytesRead | Returns number of bytes read by this function |
| availData | Size of the buffer for reading |
Implemented in UserIdentityNegotiationSubItemAC, and UserIdentityNegotiationSubItemRQ.
|
pure virtual |
Denotes whether instance is part of a request (DUL_TYPEASSOCIATERQ) or acknowledgement PDU (DUL_TYPEASSOCIATEAC)
Implemented in UserIdentityNegotiationSubItemAC, and UserIdentityNegotiationSubItemRQ.
|
pure 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 |
Implemented in UserIdentityNegotiationSubItemAC, and UserIdentityNegotiationSubItemRQ.
|
pure virtual |
Computes total length of item if streamed to a buffer.
| length | - [out] The total length of the item in bytes |
Implemented in UserIdentityNegotiationSubItemAC, and UserIdentityNegotiationSubItemRQ.
|
private |
Item type of this user item.
For User Identity Negotiation, this is always 0x58 for requests and 0x59 for acknowledgements.
Referenced by UserIdentityNegotiationSubItem(), and getItemType().