Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IKMIPEncoder::initialize ( P6KMIPENCODERFLAGS  flags,
P6KMIPVERSION  version,
p6IIoBufferFactory pPool,
P6KMIP_ENCODER_PREF pPreferences 
)
pure virtual

Sets up the object to run properly.

Parameters
flags[IN] Set perferences for the new object. These preferences are fixed during the lifetime of object.
version[IN] KMIP protocol version, { P6KMIP_VERSION_10, P6KMIP_VERSION_11, P6KMIP_VERSION_12, P6KMIP_VERSION_13, P6KMIP_VERSION_14 } are current supported values
pPool[IN] Caller provided memory pool for use in generating KMIP request/response messages stored in buffers from this pool.
pPreferences[IN] Allows the caller to tailor the actions of this KMIP encoder. This parameter is option and when set to NULL it is ignored.
Returns
SuccessP6R::eOk 
FailureP6R::eAlreadyInitializedMethod can only be called once successfully.
P6R::eInvalidArgpPool is NULL