#include <SessionItemDeserializer.h>
Public Member Functions | |
| virtual bool | deserialize (void *pData, unsigned int size)=0 |
| virtual bool | deserialize (std::vector< unsigned char > &data)=0 |
| virtual XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * | deserialize (XmlReader &reader)=0 |
| virtual XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * | deserialize (XmlReader &reader, const char *pRootElementName)=0 |
| virtual int | getCurrentBlock () const =0 |
| virtual void | nextBlock ()=0 |
| virtual std::vector< int64_t > | getBlockSizes () const =0 |
Protected Member Functions | |
| virtual | ~SessionItemDeserializer () |
Definition at line 25 of file SessionItemDeserializer.h.
| virtual SessionItemDeserializer::~SessionItemDeserializer | ( | ) | [protected, virtual] |
Destroys the SessionItemDeserializer object.
The SessionItemDeserializer object is automatically deleted by SessionManager. Plug-ins do not need to destroy it.
Definition at line 132 of file SessionItemDeserializer.h.
| virtual bool SessionItemDeserializer::deserialize | ( | void * | pData, | |
| unsigned int | size | |||
| ) | [pure virtual] |
Restores a portion of the data from a serialized SessionItem.
This method reads some data from the session and provides it back to the caller. The data will be retrieved from the current block. The data in a block in the session can be retrieved incrementally via multiple calls to this method.
| pData | A pointer to a buffer into which the data is to be placed. The buffer must be big enough to hold the specified number of bytes of data. | |
| size | The number of bytes to be placed into the buffer |
| virtual bool SessionItemDeserializer::deserialize | ( | std::vector< unsigned char > & | data | ) | [pure virtual] |
Restores a portion of the data from a serialized SessionItem.
This method reads some data from the session and provides it back to the caller. The data will be retrieved from the current block. The data in a block in the session can be retrieved incrementally via multiple calls to this method.
| data | A vector into which the data should be placed. The size of the vector determines the amount of data that will be retrieved from the session. |
| virtual XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument* SessionItemDeserializer::deserialize | ( | XmlReader & | reader | ) | [pure virtual] |
Restores a portion of the data from a serialized SessionItem.
This method reads all of the data from a block in the session, parses it as XML and returns the root node.
| reader | The XmlReader to parse the session data with. |
| virtual XERCES_CPP_NAMESPACE_QUALIFIER DOMElement* SessionItemDeserializer::deserialize | ( | XmlReader & | reader, | |
| const char * | pRootElementName | |||
| ) | [pure virtual] |
Restores a portion of the data from a serialized SessionItem.
This is a convenience function that reads all of the data from a block in the session, parses it as XML and returns the root node if the root node has the specified name.
| reader | The XmlReader to parse the session data with. | |
| pRootElementName | The name of the root element. |
NULL otherwise. | virtual int SessionItemDeserializer::getCurrentBlock | ( | ) | const [pure virtual] |
Accessor for the current block index.
| virtual void SessionItemDeserializer::nextBlock | ( | ) | [pure virtual] |
Moves to the next block of the serialized session.
This method moves the deserializer to the next block of serialized data in the session. This method should be used when deserializing data from a SessionItem that stored its data in multiple blocks via SessionItemSerializer::endBlock().
| virtual std::vector<int64_t> SessionItemDeserializer::getBlockSizes | ( | ) | const [pure virtual] |
Returns the sizes of the blocks in the serialized item.
This method returns the sizes of the blocks that were saved when the SessionItem was serialized.