本文整理汇总了C++中PANSC_COMPONENT_OBJECT::Initialize方法的典型用法代码示例。如果您正苦于以下问题:C++ PANSC_COMPONENT_OBJECT::Initialize方法的具体用法?C++ PANSC_COMPONENT_OBJECT::Initialize怎么用?C++ PANSC_COMPONENT_OBJECT::Initialize使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PANSC_COMPONENT_OBJECT
的用法示例。
在下文中一共展示了PANSC_COMPONENT_OBJECT::Initialize方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: return
ANSC_HANDLE
BbhmDiagnsCreate
(
ANSC_HANDLE hContainerContext,
ANSC_HANDLE hOwnerContext,
ANSC_HANDLE hAnscReserved
)
{
ANSC_STATUS returnStatus = ANSC_STATUS_SUCCESS;
PANSC_COMPONENT_OBJECT pBaseObject = NULL;
PBBHM_DIAG_NS_LOOKUP_OBJECT pMyObject = NULL;
/*
* We create object by first allocating memory for holding the variables and member functions.
*/
pMyObject = (PBBHM_DIAG_NS_LOOKUP_OBJECT)AnscAllocateMemory(sizeof(BBHM_DIAG_NS_LOOKUP_OBJECT));
if ( !pMyObject )
{
return (ANSC_HANDLE)NULL;
}
else
{
pBaseObject = (PANSC_COMPONENT_OBJECT)pMyObject;
}
/*
* Initialize the common variables and functions for a container object.
*/
AnscCopyString(pBaseObject->Name, BBHM_DIAG_NS_LOOKUP_NAME);
pBaseObject->hContainerContext = hContainerContext;
pBaseObject->hOwnerContext = hOwnerContext;
pBaseObject->Oid = BBHM_DIAG_NS_LOOKUP_OID;
pBaseObject->Create = BbhmDiagnsCreate;
pBaseObject->Remove = BbhmDiagnsRemove;
pBaseObject->EnrollObjects = BbhmDiagnsEnrollObjects;
pBaseObject->Initialize = BbhmDiagnsInitialize;
pBaseObject->EnrollObjects((ANSC_HANDLE)pBaseObject);
pBaseObject->Initialize ((ANSC_HANDLE)pBaseObject);
g_DiagNSLookupObj = pMyObject;
return (ANSC_HANDLE)pMyObject;
}
示例2: return
ANSC_HANDLE
HttpScoCreate
(
ANSC_HANDLE hContainerContext,
ANSC_HANDLE hOwnerContext,
ANSC_HANDLE hAnscReserved
)
{
ANSC_STATUS returnStatus = ANSC_STATUS_SUCCESS;
PANSC_COMPONENT_OBJECT pBaseObject = NULL;
PHTTP_SIMPLE_CLIENT_OBJECT pMyObject = NULL;
/*
* We create object by first allocating memory for holding the variables and member functions.
*/
pMyObject = (PHTTP_SIMPLE_CLIENT_OBJECT)AnscAllocateMemory(sizeof(HTTP_SIMPLE_CLIENT_OBJECT));
if ( !pMyObject )
{
return (ANSC_HANDLE)NULL;
}
else
{
pBaseObject = (PANSC_COMPONENT_OBJECT)pMyObject;
}
/*
* Initialize the common variables and functions for a container object.
*/
#ifndef _CCSP_CWMP_TCP_CONNREQ_HANDLER
AnscCopyString(pBaseObject->Name, HTTP_SIMPLE_CLIENT_NAME);
#endif
pBaseObject->hContainerContext = hContainerContext;
pBaseObject->hOwnerContext = hOwnerContext;
pBaseObject->Oid = HTTP_SIMPLE_CLIENT_OID;
pBaseObject->Create = HttpScoCreate;
pBaseObject->Remove = HttpScoRemove;
pBaseObject->EnrollObjects = HttpScoEnrollObjects;
pBaseObject->Initialize = HttpScoInitialize;
pBaseObject->EnrollObjects((ANSC_HANDLE)pBaseObject);
pBaseObject->Initialize ((ANSC_HANDLE)pBaseObject);
return (ANSC_HANDLE)pMyObject;
}
示例3: return
ANSC_HANDLE
HttpMboIdtCreate
(
ANSC_HANDLE hContainerContext,
ANSC_HANDLE hOwnerContext,
ANSC_HANDLE hAnscReserved
)
{
ANSC_STATUS returnStatus = ANSC_STATUS_SUCCESS;
PANSC_COMPONENT_OBJECT pBaseObject = NULL;
PHTTP_MBO_IDENTITY_OBJECT pMyObject = NULL;
/*
* We create object by first allocating memory for holding the variables and member functions.
*/
pMyObject = (PHTTP_MBO_IDENTITY_OBJECT)AnscAllocateMemory(sizeof(HTTP_MBO_IDENTITY_OBJECT));
if ( !pMyObject )
{
return (ANSC_HANDLE)NULL;
}
else
{
pBaseObject = (PANSC_COMPONENT_OBJECT)pMyObject;
}
/*
* Initialize the common variables and functions for a container object.
*/
/* AnscCopyString(pBaseObject->Name, HTTP_MBO_IDENTITY_NAME); */
pBaseObject->hContainerContext = hContainerContext;
pBaseObject->hOwnerContext = hOwnerContext;
pBaseObject->Oid = HTTP_MBO_IDENTITY_OID;
pBaseObject->Create = HttpMboIdtCreate;
pBaseObject->Remove = HttpMboIdtRemove;
pBaseObject->EnrollObjects = HttpMboIdtEnrollObjects;
pBaseObject->Initialize = HttpMboIdtInitialize;
pBaseObject->EnrollObjects((ANSC_HANDLE)pBaseObject);
pBaseObject->Initialize ((ANSC_HANDLE)pBaseObject);
return (ANSC_HANDLE)pMyObject;
}
示例4: return
ANSC_HANDLE
WebMcoCreate
(
ANSC_HANDLE hContainerContext,
ANSC_HANDLE hOwnerContext,
ANSC_HANDLE hAnscReserved
)
{
ANSC_STATUS returnStatus = ANSC_STATUS_SUCCESS;
PANSC_COMPONENT_OBJECT pBaseObject = NULL;
PWEB_MODULE_CONTAINER_OBJECT pMyObject = NULL;
/*
* We create object by first allocating memory for holding the variables and member functions.
*/
pMyObject = (PWEB_MODULE_CONTAINER_OBJECT)AnscAllocateMemory(sizeof(WEB_MODULE_CONTAINER_OBJECT));
if ( !pMyObject )
{
return (ANSC_HANDLE)NULL;
}
else
{
pBaseObject = (PANSC_COMPONENT_OBJECT)pMyObject;
}
/*
* Initialize the common variables and functions for a container object.
*/
AnscCopyString(pBaseObject->Name, WEB_MODULE_CONTAINER_NAME);
pBaseObject->hContainerContext = hContainerContext;
pBaseObject->hOwnerContext = hOwnerContext;
pBaseObject->Oid = WEB_MODULE_CONTAINER_OID;
pBaseObject->Create = WebMcoCreate;
pBaseObject->Remove = WebMcoRemove;
pBaseObject->EnrollObjects = WebMcoEnrollObjects;
pBaseObject->Initialize = WebMcoInitialize;
pBaseObject->EnrollObjects((ANSC_HANDLE)pBaseObject);
pBaseObject->Initialize ((ANSC_HANDLE)pBaseObject);
return (ANSC_HANDLE)pMyObject;
}
示例5: return
ANSC_HANDLE
CcspCwmpsoCreate
(
ANSC_HANDLE hContainerContext,
ANSC_HANDLE hOwnerContext,
ANSC_HANDLE hAnscReserved
)
{
ANSC_STATUS returnStatus = ANSC_STATUS_SUCCESS;
PANSC_COMPONENT_OBJECT pBaseObject = NULL;
PCCSP_CWMP_SESSION_OBJECT pMyObject = NULL;
/*
* We create object by first allocating memory for holding the variables and member functions.
*/
pMyObject = (PCCSP_CWMP_SESSION_OBJECT)CcspTr069PaAllocateMemory(sizeof(CCSP_CWMP_SESSION_OBJECT));
if ( !pMyObject )
{
return (ANSC_HANDLE)NULL;
}
else
{
pBaseObject = (PANSC_COMPONENT_OBJECT)pMyObject;
}
/*
* Initialize the common variables and functions for a container object.
*/
/* AnscCopyString(pBaseObject->Name, CCSP_CWMP_SESSION_NAME); */
pBaseObject->hContainerContext = hContainerContext;
pBaseObject->hOwnerContext = hOwnerContext;
pBaseObject->Oid = CCSP_CWMP_SESSION_OID;
pBaseObject->Create = CcspCwmpsoCreate;
pBaseObject->Remove = CcspCwmpsoRemove;
pBaseObject->EnrollObjects = CcspCwmpsoEnrollObjects;
pBaseObject->Initialize = CcspCwmpsoInitialize;
pBaseObject->EnrollObjects((ANSC_HANDLE)pBaseObject);
pBaseObject->Initialize ((ANSC_HANDLE)pBaseObject);
return (ANSC_HANDLE)pMyObject;
}
示例6: return
ANSC_HANDLE
AnscObjectArrayCOCreate
(
ANSC_HANDLE hContainerContext,
ANSC_HANDLE hOwnerContext,
ANSC_HANDLE hAnscReserved
)
{
ANSC_STATUS returnStatus = ANSC_STATUS_SUCCESS;
PANSC_COMPONENT_OBJECT pBaseObject = NULL;
PANSC_OBJECT_ARRAY_OBJECT pMyObject = NULL;
/*
* We create object by first allocating memory for holding the variables and member functions.
*/
pMyObject = (PANSC_OBJECT_ARRAY_OBJECT)AnscAllocateMemory(sizeof(ANSC_OBJECT_ARRAY_OBJECT));
if ( !pMyObject )
{
return (ANSC_HANDLE)NULL;
}
else
{
pBaseObject = (PANSC_COMPONENT_OBJECT)pMyObject;
}
/*
* Initialize the common variables and functions for a component object.
*/
AnscCopyString(pBaseObject->Name, ANSC_OBJECT_ARRAY_COMPONENT_NAME);
pBaseObject->hContainerContext = hContainerContext;
pBaseObject->hOwnerContext = hOwnerContext;
pBaseObject->Oid = ANSC_OBJECT_ARRAY_COMPONENT_OID;
pBaseObject->Create = AnscObjectArrayCOCreate;
pBaseObject->Remove = AnscObjectArrayCORemove;
pBaseObject->EnrollObjects = AnscObjectArrayCOEnrollObjects;
pBaseObject->Initialize = AnscObjectArrayCOInitialize;
pBaseObject->EnrollObjects((ANSC_HANDLE)pBaseObject);
pBaseObject->Initialize ((ANSC_HANDLE)pBaseObject);
return (ANSC_HANDLE)pMyObject;
}
示例7: return
ANSC_HANDLE
SysIroV2Create
(
ANSC_HANDLE hContainerContext,
ANSC_HANDLE hOwnerContext,
ANSC_HANDLE hAnscReserved
)
{
ANSC_STATUS returnStatus = ANSC_STATUS_SUCCESS;
PANSC_COMPONENT_OBJECT pBaseObject = NULL;
PSYS_IROV2_OBJECT pMyObject = NULL;
/*
* We create object by first allocating memory for holding the variables and member functions.
*/
pMyObject = (PSYS_IROV2_OBJECT)AnscAllocateMemory(sizeof(SYS_IROV2_OBJECT));
if ( !pMyObject )
{
return (ANSC_HANDLE)NULL;
}
else
{
pBaseObject = (PANSC_COMPONENT_OBJECT)pMyObject;
}
/*
* Initialize the common variables and functions for a container object.
*/
AnscCopyString(pBaseObject->Name, SYS_INFO_REPOSITORY_NAME);
pBaseObject->hContainerContext = hContainerContext;
pBaseObject->hOwnerContext = hOwnerContext;
pBaseObject->Oid = SYS_INFO_REPOSITORY_OID;
pBaseObject->Create = SysIroV2Create;
pBaseObject->Remove = SysIroV2Remove;
pBaseObject->EnrollObjects = SysIroV2EnrollObjects;
pBaseObject->Initialize = SysIroV2Initialize;
pBaseObject->EnrollObjects((ANSC_HANDLE)pBaseObject);
pBaseObject->Initialize ((ANSC_HANDLE)pBaseObject);
return (ANSC_HANDLE)pMyObject;
}
示例8: return
ANSC_HANDLE
TlsHsoServerCreate
(
ANSC_HANDLE hContainerContext,
ANSC_HANDLE hOwnerContext,
ANSC_HANDLE hAnscReserved
)
{
PANSC_COMPONENT_OBJECT pBaseObject = NULL;
PTLS_HSO_SERVER_OBJECT pMyObject = NULL;
/*
* We create object by first allocating memory for holding the variables and member functions.
*/
pMyObject = (PTLS_HSO_SERVER_OBJECT)AnscAllocateMemory(sizeof(TLS_HSO_SERVER_OBJECT));
if ( !pMyObject )
{
return (ANSC_HANDLE)NULL;
}
else
{
pBaseObject = (PANSC_COMPONENT_OBJECT)pMyObject;
}
/*
* Initialize the common variables and functions for a container object.
*/
/* AnscCopyString(pBaseObject->Name, TLS_HSO_SERVER_NAME); */
pBaseObject->hContainerContext = hContainerContext;
pBaseObject->hOwnerContext = hOwnerContext;
pBaseObject->Oid = TLS_HSO_SERVER_OID;
pBaseObject->Create = TlsHsoServerCreate;
pBaseObject->Remove = TlsHsoServerRemove;
pBaseObject->EnrollObjects = TlsHsoServerEnrollObjects;
pBaseObject->Initialize = TlsHsoServerInitialize;
pBaseObject->EnrollObjects((ANSC_HANDLE)pBaseObject);
pBaseObject->Initialize ((ANSC_HANDLE)pBaseObject);
return (ANSC_HANDLE)pMyObject;
}