EtsT_Client_State_Xml_Import_Proc

Note: Requires OPNET Development Kit

Abstract

Callback: Called when the client state needs to be imported from an XML file.

Syntax

<xml_import_proc_name> (contents_ptr)
Argument Type Description
contents_ptr PrgT_String_Hash_Table * A hash table whose keys are the names of the values under the node and whose values are string representations of the actual values.

Return Type

void *

The newly allocated client state, or PRGC_NIL if the import failed.

ets_pstate.h

Details

When an object with an installed client state is imported from XML, the corresponding xml_import_proc (registered by Ets_Client_State_Handlers_Register_Xml()) is called. This callback should translate the data stored in the XML node by using the Ets_State_Xml_ read functions (deserialization), allocate memory for the client state, and fill in its contents from the data stored in the block.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com