• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ INIT_CLASS_ENTRY函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中INIT_CLASS_ENTRY函数的典型用法代码示例。如果您正苦于以下问题:C++ INIT_CLASS_ENTRY函数的具体用法?C++ INIT_CLASS_ENTRY怎么用?C++ INIT_CLASS_ENTRY使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了INIT_CLASS_ENTRY函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: mongo_init_MongoCursorException

void mongo_init_MongoCursorException(TSRMLS_D)
{
	zend_class_entry ce;

	INIT_CLASS_ENTRY(ce, "MongoCursorException", MongoCursorException_methods);
	mongo_ce_CursorException = zend_register_internal_class_ex(&ce, mongo_ce_Exception, NULL TSRMLS_CC);

	zend_declare_property_null(mongo_ce_CursorException, "host", strlen("host"), ZEND_ACC_PRIVATE|ZEND_ACC_DEPRECATED  TSRMLS_CC);
}
开发者ID:AndrewHarkusha,项目名称:mongo-php-driver,代码行数:9,代码来源:cursor_exception.c


示例2: curlfile_register_class

void curlfile_register_class(TSRMLS_D)
{
	zend_class_entry ce;
	INIT_CLASS_ENTRY( ce, "CURLFile", curlfile_funcs );
	curl_CURLFile_class = zend_register_internal_class(&ce TSRMLS_CC);
	zend_declare_property_string(curl_CURLFile_class, "name", sizeof("name")-1, "", ZEND_ACC_PUBLIC TSRMLS_CC);
	zend_declare_property_string(curl_CURLFile_class, "mime", sizeof("mime")-1, "", ZEND_ACC_PUBLIC TSRMLS_CC);
	zend_declare_property_string(curl_CURLFile_class, "postname", sizeof("postname")-1, "", ZEND_ACC_PUBLIC TSRMLS_CC);
}
开发者ID:JelleZijlstra,项目名称:php-src,代码行数:9,代码来源:curl_file.c


示例3: INIT_CLASS_ENTRY

/* This probably should be initialized somewhere, but I didn't find a suitable
 * place so it's wrapped in a function for now */
zend_class_entry *get_zend_standard_class_def() {
  if (!zend_standard_class_def) {
    zend_class_entry class_entry;

    INIT_CLASS_ENTRY(class_entry, "stdClass", nullptr);
    zend_standard_class_def =
      zend_register_internal_class(&class_entry TSRMLS_CC);
  }
  return zend_standard_class_def;
}
开发者ID:2bj,项目名称:hhvm,代码行数:12,代码来源:zend.cpp


示例4: init_distance_map

void init_distance_map(TSRMLS_D) {
    zend_class_entry ce;

    INIT_CLASS_ENTRY(ce, "distance_map", distance_map_methods);
    distance_map_ce = zend_register_internal_class(&ce TSRMLS_CC);
    distance_map_ce->create_object = create_distance_map_object;

    memcpy(&distance_map_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers));
    distance_map_handlers.clone_obj = clone_distance_map_object;
}
开发者ID:robchett,项目名称:flight_optimiser,代码行数:10,代码来源:distance_map.c


示例5: init_class

void init_class(TSRMLS_D) {
	zend_class_entry ce;
 
	INIT_CLASS_ENTRY(ce, "MTF", mtf_class_methods);
	//INIT_CLASS_ENTRY(ce, "MTF", Null);
	object = zend_register_internal_class(&ce TSRMLS_CC);
 
	zend_declare_property_string(object, "debug", strlen("debug"), "", ZEND_ACC_PUBLIC TSRMLS_CC);	
	zend_declare_property_string(object, "session", strlen("session"), "", ZEND_ACC_PUBLIC TSRMLS_CC);
}
开发者ID:netkiller,项目名称:php_extension_class,代码行数:10,代码来源:mtf.c


示例6: NS

void NS(MqBufferS_Init) (TSRMLS_D) {
    zend_class_entry me_ce;

    // create class and make depend on "Exception"
    INIT_CLASS_ENTRY(me_ce,"MqBufferS", NS(MqBufferS_functions));
    NS(MqBufferS) = zend_register_internal_class(&me_ce TSRMLS_CC);

    // define additional properties "buf" to save the "struct MqBufferS *" pointer
    zend_declare_property_null(NS(MqBufferS), ID(__buf), ZEND_ACC_PRIVATE TSRMLS_CC);
}
开发者ID:BackupTheBerlios,项目名称:nhi1-svn,代码行数:10,代码来源:MqBufferS_php.c


示例7: mongo_init_MongoTimestamp

void mongo_init_MongoTimestamp(TSRMLS_D)
{
    zend_class_entry ce;

    INIT_CLASS_ENTRY(ce, "MongoTimestamp", MongoTimestamp_methods);
    mongo_ce_Timestamp = zend_register_internal_class(&ce TSRMLS_CC);

    zend_declare_property_long(mongo_ce_Timestamp, "sec", strlen("sec"), 0, ZEND_ACC_PUBLIC TSRMLS_CC);
    zend_declare_property_long(mongo_ce_Timestamp, "inc", strlen("inc"), 0, ZEND_ACC_PUBLIC TSRMLS_CC);
}
开发者ID:hongaar,项目名称:hhvm,代码行数:10,代码来源:timestamp.cpp


示例8: class_init_apple_push

static void class_init_apple_push(void)
{
    zend_class_entry ce;
    INIT_CLASS_ENTRY(ce, "apple_push", apple_push_methods);
    apple_push_ce_ptr = zend_register_internal_class(&ce);
    zend_declare_property_string(apple_push_ce_ptr, "certificate", strlen("certificate"), "null", ZEND_ACC_STATIC TSRMLS_CC);
    zend_declare_property_string(apple_push_ce_ptr, "gateway", strlen("gateway"), "gateway.push.apple.com:2195", ZEND_ACC_STATIC TSRMLS_CC);
    zend_declare_property_string(apple_push_ce_ptr, "passphrase", strlen("passphrase"), "", ZEND_ACC_STATIC TSRMLS_CC);

}
开发者ID:tetang1230,项目名称:apple_push,代码行数:10,代码来源:apple_push.c


示例9: swoole_client_init

void swoole_client_init(int module_number TSRMLS_DC)
{
    INIT_CLASS_ENTRY(swoole_client_ce, "swoole_client", swoole_client_methods);
    swoole_client_class_entry_ptr = zend_register_internal_class(&swoole_client_ce TSRMLS_CC);

    zend_declare_property_long(swoole_client_class_entry_ptr, SW_STRL("errCode")-1, 0, ZEND_ACC_PUBLIC TSRMLS_CC);
    zend_declare_property_long(swoole_client_class_entry_ptr, SW_STRL("sock")-1, 0, ZEND_ACC_PUBLIC TSRMLS_CC);

    zend_hash_init(&php_sw_long_connections, 16, NULL, ZVAL_PTR_DTOR, 1);
}
开发者ID:hustxiaoc,项目名称:swoole-src,代码行数:10,代码来源:swoole_client.c


示例10: mongo_init_MongoDBRef

void mongo_init_MongoDBRef(TSRMLS_D)
{
	zend_class_entry ce;

	INIT_CLASS_ENTRY(ce, "MongoDBRef", MongoDBRef_methods);
	mongo_ce_DBRef = zend_register_internal_class(&ce TSRMLS_CC);

	zend_declare_property_string(mongo_ce_DBRef, "refKey", strlen("refKey"), "$ref", ZEND_ACC_PROTECTED|ZEND_ACC_STATIC TSRMLS_CC);
	zend_declare_property_string(mongo_ce_DBRef, "idKey", strlen("idKey"), "$id", ZEND_ACC_PROTECTED|ZEND_ACC_STATIC TSRMLS_CC);
}
开发者ID:BumBliss,项目名称:mongo-php-driver,代码行数:10,代码来源:db_ref.c


示例11: register_focus_interface

int register_focus_interface()
{
	zend_class_entry temp_ce;
	INIT_CLASS_ENTRY(temp_ce, "Focus\\Focus", focusphp_focus_interface_functions);

	focusphp_focus_interface = zend_register_internal_class(&temp_ce TSRMLS_CC);
	focusphp_focus_interface->ce_flags |= ZEND_ACC_INTERFACE;

	return SUCCESS;
}
开发者ID:mylxsw,项目名称:FocusPHP-Ext,代码行数:10,代码来源:focusphp.c


示例12: php_driver_define_Custom

void
php_driver_define_Custom(TSRMLS_D)
{
  zend_class_entry ce;

  INIT_CLASS_ENTRY(ce, PHP_DRIVER_NAMESPACE "\\Custom", php_driver_custom_methods);
  php_driver_custom_ce = zend_register_internal_class(&ce TSRMLS_CC);
  zend_class_implements(php_driver_custom_ce TSRMLS_CC, 1, php_driver_value_ce);
  php_driver_custom_ce->ce_flags |= ZEND_ACC_ABSTRACT;
}
开发者ID:datastax,项目名称:php-driver,代码行数:10,代码来源:Custom.c


示例13: php_protocolbuffers_enum_descriptor_builder_class

void php_protocolbuffers_enum_descriptor_builder_class(TSRMLS_D)
{
	zend_class_entry ce;

	INIT_CLASS_ENTRY(ce, "ProtocolBuffersEnumDescriptorBuilder", protocolbuffers_enum_descriptor_builder_methods);
	php_protocol_buffers_enum_descriptor_builder_class_entry = zend_register_internal_class(&ce TSRMLS_CC);
	PHP_PROTOCOLBUFFERS_REGISTER_NS_CLASS_ALIAS(PHP_PROTOCOLBUFFERS_NAMESPACE, "EnumDescriptorBuilder", php_protocol_buffers_enum_descriptor_builder_class_entry);

	//zend_declare_property_null(php_protocol_buffers_enum_descriptor_builder_class_entry, ZEND_STRL("values")-1, ZEND_ACC_PROTECTED TSRMLS_CC);
}
开发者ID:henryzxj,项目名称:php-protocolbuffers,代码行数:10,代码来源:enum_descriptor_builder.c


示例14: mongo_init_MongoCode

void mongo_init_MongoCode(TSRMLS_D)
{
	zend_class_entry ce;
	INIT_CLASS_ENTRY(ce, "MongoCode", MongoCode_methods);
	ce.create_object = php_mongo_type_object_new;
	mongo_ce_Code = zend_register_internal_class(&ce TSRMLS_CC);

	zend_declare_property_string(mongo_ce_Code, "code", strlen("code"), "", ZEND_ACC_PUBLIC|MONGO_ACC_READ_ONLY TSRMLS_CC);
	zend_declare_property_null(mongo_ce_Code, "scope", strlen("scope"), ZEND_ACC_PUBLIC|MONGO_ACC_READ_ONLY  TSRMLS_CC);
}
开发者ID:alexvasilyev,项目名称:mongo-php-driver,代码行数:10,代码来源:code.c


示例15: rtv_init_rtvtemplate

void rtv_init_rtvtemplate(TSRMLS_D){
	zend_class_entry ce;

	INIT_CLASS_ENTRY(ce,"RtvTemplate",rtvtemplate_methods);
	ce.create_object = create_rtv_template_fragments;
	rtv_ce_rtvtemplate = zend_register_internal_class(&ce TSRMLS_CC);

	/* fields */
	zend_declare_property_bool(rtv_ce_rtvtemplate,"html", strlen("html"),1,ZEND_ACC_PUBLIC TSRMLS_CC);
}
开发者ID:rtestaverde,项目名称:phpext,代码行数:10,代码来源:rtvtemplate.c


示例16: yee_base_exceptions_do_register_ce

void yee_base_exceptions_do_register_ce() {
	zend_class_entry ce_exception;
	INIT_CLASS_ENTRY(ce_exception, "yii\\base\\Exception", exception_methods);
	yee_ce_Exception = zend_register_internal_class_ex(&ce_exception, zend_exception_get_default(TSRMLS_CC), "Exception");
	zend_class_implements(yee_ce_Exception TSRMLS_CC, 1, yee_ce_Arrayable);
	
	zend_class_entry ce_invalid_call;
	INIT_CLASS_ENTRY(ce_invalid_call, "yii\\base\\InvalidCallException", invalid_call_exception_methods);
	yee_ce_InvalidCallException = zend_register_internal_class_ex(&ce_invalid_call, yee_ce_Exception, "yii\\base\\Exception");
	
	zend_class_entry ce_invalid_config;
	INIT_CLASS_ENTRY(ce_invalid_config, "yii\\base\\InvalidConfigException", invalid_config_exception_methods);
	yee_ce_InvalidConfigException = zend_register_internal_class_ex(&ce_invalid_config, yee_ce_Exception, "yii\\base\\Exception");
	
	zend_class_entry ce_invalid_param;
	INIT_CLASS_ENTRY(ce_invalid_param, "yii\\base\\InvalidParamException", invalid_param_exception_methods);
	yee_ce_InvalidParamException = zend_register_internal_class_ex(&ce_invalid_param, yee_ce_Exception, "yii\\base\\Exception");
	
	zend_class_entry ce_invalid_route;
	INIT_CLASS_ENTRY(ce_invalid_route, "yii\\base\\InvalidRouteException", invalid_route_exception_methods);
	yee_ce_InvalidRouteException = zend_register_internal_class_ex(&ce_invalid_route, yee_ce_Exception, "yii\\base\\Exception");
		
	zend_class_entry ce_not_supported;
	INIT_CLASS_ENTRY(ce_not_supported, "yii\\base\\NotSupportedException", not_supported_exception_methods);
	yee_ce_NotSupportedException = zend_register_internal_class_ex(&ce_not_supported, yee_ce_Exception, "yii\\base\\Exception");
	
	zend_class_entry ce_unknown_class;
	INIT_CLASS_ENTRY(ce_unknown_class, "yii\\base\\UnknowClassException", unknown_class_exception_methods);
	yee_ce_UnknownClassException = zend_register_internal_class_ex(&ce_unknown_class, yee_ce_Exception, "yii\\base\\Exception");
	
	zend_class_entry ce_unknown_method;
	INIT_CLASS_ENTRY(ce_unknown_method, "yii\\base\\UnknowMethodException", unknown_method_exception_methods);
	yee_ce_UnknownMethodException = zend_register_internal_class_ex(&ce_unknown_method, yee_ce_Exception, "yii\\base\\Exception");
			
	zend_class_entry ce_unknown_property;
	INIT_CLASS_ENTRY(ce_unknown_property, "yii\\base\\UnknowPropertyException", unknown_property_exception_methods);
	yee_ce_UnknownPropertyException = zend_register_internal_class_ex(&ce_unknown_property, yee_ce_Exception, "yii\\base\\Exception");
	
	zend_class_entry ce_user_excepton;
	INIT_CLASS_ENTRY(ce_user_excepton, "yii\\base\\UserException", NULL);
	yee_ce_UserException = zend_register_internal_class_ex(&ce_user_excepton, yee_ce_Exception, "yii\\base\\Exception");
}
开发者ID:bixuehujin,项目名称:yee,代码行数:42,代码来源:exceptions.c


示例17: mongo_init_MongoRegex

void mongo_init_MongoRegex(TSRMLS_D)
{
    zend_class_entry ce;

    INIT_CLASS_ENTRY(ce, "MongoRegex", MongoRegex_methods);
    ce.create_object = php_mongo_type_object_new;
    mongo_ce_Regex = zend_register_internal_class(&ce TSRMLS_CC);

    zend_declare_property_string(mongo_ce_Regex, "regex", strlen("regex"), "", ZEND_ACC_PUBLIC|MONGO_ACC_READ_ONLY TSRMLS_CC);
    zend_declare_property_string(mongo_ce_Regex, "flags", strlen("flags"), "", ZEND_ACC_PUBLIC|MONGO_ACC_READ_ONLY TSRMLS_CC);
}
开发者ID:seebeb,项目名称:mongo-php-driver,代码行数:11,代码来源:regex.c


示例18: couchbase_init_metadoc

void couchbase_init_metadoc(INIT_FUNC_ARGS) {
	zend_class_entry ce;

	INIT_CLASS_ENTRY(ce, "CouchbaseMetaDoc", metadoc_methods);
	metadoc_ce = zend_register_internal_class(&ce TSRMLS_CC);

	zend_declare_property_null(metadoc_ce, "error", strlen("error"), ZEND_ACC_PUBLIC TSRMLS_CC);
	zend_declare_property_null(metadoc_ce, "value", strlen("value"), ZEND_ACC_PUBLIC TSRMLS_CC);
	zend_declare_property_null(metadoc_ce, "flags", strlen("flags"), ZEND_ACC_PUBLIC TSRMLS_CC);
	zend_declare_property_null(metadoc_ce, "cas", strlen("cas"), ZEND_ACC_PUBLIC TSRMLS_CC);
}
开发者ID:ctbsea,项目名称:php-couchbase,代码行数:11,代码来源:metadoc.c


示例19: class_init_Handler

static void class_init_Handler(void)
{
	zend_class_entry ce;

	INIT_CLASS_ENTRY(ce, "Handler", Handler_methods);
	Handler_ce_ptr = zend_register_internal_class(&ce);

	/* {{{ Property registration */
	zend_declare_property_long(Handler_ce_ptr, "x", 1, 0, ZEND_ACC_PUBLIC TSRMLS_DC);
	/* }}} Property registration */
}
开发者ID:kouhwata,项目名称:devel,代码行数:11,代码来源:helloworld.c


示例20: grpc_init_timeval

void grpc_init_timeval() {
  zend_class_entry ce;
  INIT_CLASS_ENTRY(ce, "Grpc\\Timeval", timeval_methods);
  ce.create_object = create_wrapped_grpc_timeval;
  grpc_ce_timeval = zend_register_internal_class(&ce);
  memcpy(&timeval_object_handlers_timeval, zend_get_std_object_handlers(),
         sizeof(zend_object_handlers));
  timeval_object_handlers_timeval.offset =
    XtOffsetOf(wrapped_grpc_timeval, std);
  timeval_object_handlers_timeval.free_obj = free_wrapped_grpc_timeval;
}
开发者ID:mdhheydari,项目名称:grpc-php7,代码行数:11,代码来源:timeval.c



注:本文中的INIT_CLASS_ENTRY函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ INIT_COMPLETION函数代码示例发布时间:2022-05-30
下一篇:
C++ INITSTATUS函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap