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

C++ set_info函数代码示例

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

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



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

示例1: set_info

void k052109_device::set_char_ram(bool ram)
{
	if (ram)
		set_info(gfxinfo_ram);
	else
		set_info(gfxinfo);
}
开发者ID:fesh0r,项目名称:mame-full,代码行数:7,代码来源:k052109.cpp


示例2: throw_exception_

 void
 throw_exception_( E const & x, char const * current_function, char const * file, int line )
 {
     throw_exception(
         set_info(
             set_info(
                 set_info(
                     enable_error_info(x),
                     throw_function(current_function)),
                 throw_file(file)),
             throw_line(line)));
 }
开发者ID:Nanonid,项目名称:Javolution,代码行数:12,代码来源:throw_exception.hpp


示例3: throw_exception_

 BOOST_ATTRIBUTE_NORETURN
 void
 throw_exception_( E const & x, char const * current_function, char const * file, int line )
 {
     boost::throw_exception(
         set_info(
             set_info(
                 set_info(
                     boost::enable_error_info(x),
                     throw_function(current_function)),
                 throw_file(file)),
             throw_line(line)));
 }
开发者ID:00liujj,项目名称:dealii,代码行数:13,代码来源:throw_exception.hpp


示例4: throw_exception_

 BOOST_NORETURN
 void
 throw_exception_( E const & x, char const * current_function, char const * file, int line )
 {
     geofeatures_boost::throw_exception(
         set_info(
             set_info(
                 set_info(
                     enable_error_info(x),
                     throw_function(current_function)),
                 throw_file(file)),
             throw_line(line)));
 }
开发者ID:Niko-r,项目名称:geofeatures,代码行数:13,代码来源:throw_exception.hpp


示例5: switch

void k05324x_device::set_bpp(int bpp)
{
	switch(bpp)
	{
		case 4:
			set_info(gfxinfo);
			break;
		case 6:
			set_info(gfxinfo_6bpp);
			break;
		default:
			fatalerror("Unsupported bpp\n");
	}
}
开发者ID:MASHinfo,项目名称:mame,代码行数:14,代码来源:k053244_k053245.cpp


示例6: luaopen_zip

LUAZIP_API int luaopen_zip (lua_State *L) {
	lua_pop(L,createmeta(L));
	lua_newtable(L);
	luaL_setfuncs(L, ziplib, 0);
  set_info(L);
  return 1;
}
开发者ID:msva,项目名称:luazip,代码行数:7,代码来源:luazip.c


示例7: luaopen_zip

LUAZIP_API int luaopen_zip (lua_State *L) {
  createmeta(L);
  lua_pushvalue(L, -1);
  luaL_openlib(L, LUA_ZIPLIBNAME, ziplib, 1);
  set_info(L);
  return 1;
}
开发者ID:luigiScarso,项目名称:luatexjit,代码行数:7,代码来源:luazip.c


示例8: get_position

// Check if town has been captured and set new owner
// Only report if there's a change of ownership
// Maybe change to unit checks when it stops moving
OgrePlayer *OgreTown::check_conquest(std::list<OgreUnit*> units){
    sf::Vector2f town_position = get_position();

    OgrePlayer *possible_owner = nullptr;
    OgrePlayer *unit_owner;
    bool contested = false;

    // step for each level of speed
    for(auto unit : units){
        unit_owner = unit->get_owner();
        if (unit->distance<>(town_position) < TOWN_SIZE)
        {
            // Set new possible owner
            if (possible_owner == nullptr)
                possible_owner = unit_owner;
            // Multiple units, don't change owner
            // just comparing pointers, not actual ids...
            else if (possible_owner == unit_owner)
                contested = true;
                break;
        }
    }
    // set new owner and damage town
    if (!contested && possible_owner != nullptr && possible_owner != get_owner())
    {
        set_owner(possible_owner);
        pillage();
        set_info(hp);
        return possible_owner;
    }
    else
        return nullptr;
}
开发者ID:dvbuntu,项目名称:ogre,代码行数:36,代码来源:town.cpp


示例9: set_info

void AccountDialog::ok_acc(){
	int cur;
	if(p_val->validate(p_number->text(),cur) == QValidator::Acceptable){
		set_info();
		accept();
	}
}
开发者ID:bobbybonifacia,项目名称:MiptTelecomBalance,代码行数:7,代码来源:account_settings_dialog.cpp


示例10: luaopen_lfs

int luaopen_lfs (lua_State *L) {
	dir_create_meta (L);
	lock_create_meta (L);
	luaL_register (L, "lfs", fslib);
	set_info (L);
	return 1;
}
开发者ID:svarog2741,项目名称:xrluafix,代码行数:7,代码来源:lfs.c


示例11: show_project_info

// Show project info
static void show_project_info() {
	char msg[160];
	if (g_proj.offset) {
		sprintf(msg, "Name: %s\nSize: %d (%dMiB)\nSample rate: %d\nSample size: %d\nDef Scene: %s\nOffset: 0x%08"PRIu64,
			g_proj.name, g_proj.size, g_proj.size/1048576, g_proj.splrate, g_proj.splsize, g_proj.defscene.name, g_poff);
		set_info(msg);
	}
}
开发者ID:phlash,项目名称:deepstripper,代码行数:9,代码来源:deepstripper-gtk.c


示例12: card_rule_cb

static int card_rule_cb(void *arg, int col_n, char **row, char **titles){
	int *i=(int*)arg;
	char *ptr,q[100];
	int len;

	len=strlen(row[0]);
	ptr=row[0];
	set_info(i,len,75,q,ptr);

	len=strlen(row[1]);
	ptr=row[1];
	set_info(i,len,75,q,ptr);

	(*i)++;

	return SQLITE_OK;
}
开发者ID:heckendorfc,项目名称:netccg,代码行数:17,代码来源:cursesui.c


示例13: RETURN_ERR

blargg_err_t Gzip_Extractor::stat_v()
{
	RETURN_ERR( open_arc_file( true ) );
	if ( !gr.opened() || gr.tell() != 0 )
		RETURN_ERR( gr.open( &arc() ) );
	
	set_info( gr.remain(), 0, gr.crc32() );
	return blargg_ok;
}
开发者ID:clems71,项目名称:QuickNES_Core,代码行数:9,代码来源:Gzip_Extractor.cpp


示例14: luaopen_lfs

LUALIB_API int luaopen_lfs(lua_State *L) {
	dir_create_meta(L);
	lock_create_meta(L);
	luaL_newlib(L, fslib);
	lua_pushvalue(L, -1);
	lua_setglobal(L, LUA_LFSLIBNAME);
	set_info(L);
	return 1;
}
开发者ID:Charsi82,项目名称:lua_npp,代码行数:9,代码来源:lfs.c


示例15: toggle_fps

int toggle_fps(MENU_ITEM *self)
{
  conf.show_fps^=1;
  if (!conf.show_fps)
    unset_info();
  else
    set_info("fps:..");
  return 2;
}
开发者ID:pepone42,项目名称:gngb,代码行数:9,代码来源:menu.c


示例16: create

static void 
create() 
{
    ::create();
    set_name("Helmet of True Sight");
    set_short("a visored helmet");
    set_long("A visored helmet made of the finest steel.");
    set_info("This helmet will grant its wearer " + 
             bold("true") + " sight.");
    add_id(({"helmet","visored helmet"}));    
开发者ID:simonthoresen,项目名称:viking,代码行数:10,代码来源:helmet.c


示例17: add_info

static void add_info(char *info) {
	gchar buf[1024];
	const gchar *c = gtk_label_get_label(GTK_LABEL(g_info));
	if (c) {
		strncpy(buf, c, sizeof(buf));
	} else {
		buf[0] = 0;
	}
	strncat(buf, info, sizeof(buf)-strlen(buf));
	set_info(buf);
}
开发者ID:phlash,项目名称:deepstripper,代码行数:11,代码来源:deepstripper-gtk.c


示例18: get_flags

	void User::set_flags(const ustring& name, DWORD in, bool value, const ustring& dom) {
		const DWORD level = 1008;
		DWORD dwFlags = get_flags(name, dom);
		if (value)
			bits::Flags::set(dwFlags, in);
		else
			bits::Flags::unset(dwFlags, in);
		USER_INFO_1008 info;
		info.usri1008_flags = dwFlags;
		set_info(name, dom, level, &info);
	}
开发者ID:pombreda,项目名称:main,代码行数:11,代码来源:user.cpp


示例19: close_project

// Close this current project (if any)
static void close_project() {
	// Empty all data
	int i;
	for (i=0; i<N_TABS; i++) {
		gtk_list_store_clear(g_data[i]);
	}
	set_info(DEFAULT_INFO);
	akaiosproject_clear(&g_proj);
	set_title(NULL, NULL, "");
	clear_buffer();
}
开发者ID:phlash,项目名称:deepstripper,代码行数:12,代码来源:deepstripper-gtk.c


示例20: luaopen_lxp

LUAMODULE_API int luaopen_lxp (lua_State *L) {
  luaL_newmetatable(L, ParserType);
  lua_pushliteral(L, "__index");
  lua_pushvalue(L, -2);
  lua_rawset(L, -3);
  luaL_openlib (L, NULL, lxp_meths, 0);
  luaL_openlib (L, "lxp", lxp_funcs, 0);
  set_info (L);

  return 1;
}
开发者ID:WeyrSDev,项目名称:gamecode3,代码行数:11,代码来源:lxplib.c



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C++ set_inode_flag函数代码示例发布时间:2022-05-30
下一篇:
C++ set_hide_on_ok函数代码示例发布时间: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