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

C++ List函数代码示例

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

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



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

示例1: FlowSimulator

	FlowSimulator(
		const images::Image& flow_map_image,
		GLuint first_tex_unit
	): size(1024)
	 , prog(size)
	 , holder(size, first_tex_unit, flow_map_image)
	 , screen(List("Position")("TexCoord").Get(), shapes::Screen(), prog)
	{
	 	Uniform<SLtoCpp<SLDataType::Sampler2D>> flow_map(prog, "FlowMap");
		flow_map.Set(holder.FlowMapUnit());

		fbo.Bind(Framebuffer::Target::Draw);
		Framebuffer::AttachColorTexture(
			Framebuffer::Target::Draw,
			0,
			holder.BumpMap(),
			0
		);
	}
开发者ID:BrainlessLabsInc,项目名称:oglplus,代码行数:19,代码来源:027_flow.cpp


示例2: Abstract

void ISymbol::DeepCopy(ISymbolPtr c)
{
	c->Name()=Name();

	c->Abstract() = Abstract();
	c->Atomic() = Atomic();
	c->Attributes() = Attributes();
	c->BaseTypeName() = BaseTypeName();
	c->Compositor() = Compositor();
	c->DerivedType() = DerivedType();
	c->Dimension() = Dimension();
	c->Enumerations() = Enumerations();
	c->FacetKinds() = FacetKinds();
	c->Facets() = Facets();
	c->Global() = Global();
	c->Level() = Level();
	c->List() = List();
	c->ListSize() = ListSize();
	c->ListType() = ListType();
	c->LowerBounds() = LowerBounds();
	c->Namespace() = Namespace();
	c->Optional() = Optional();
	c->OuterElementName() = OuterElementName();
	c->OuterElementTypeName() = OuterElementTypeName();
	c->Parent() = Parent();
	c->Parsed() = Parsed();
	c->PrimitiveType() = PrimitiveType();
	c->Required() = Required();
	c->SimpleContent() = SimpleContent();
	c->SimpleType() = SimpleType();
	c->SqlCount() = SqlCount();
	c->SqlType() = SqlType();
	c->SubstitutionGroupAffiliation() = SubstitutionGroupAffiliation();
	c->SubstitutionList() = SubstitutionList();
	c->SubTypes() = SubTypes();
	c->SuperTypes() =  SuperTypes();
	c->Type() = Type();
	c->TypeName() = TypeName();
	c->UpperBounds() = UpperBounds();
	c->Variable() = Variable();
	c->Visited() = Visited();
	c->XercesType() = XercesType();
}
开发者ID:usnistgov,项目名称:QIF,代码行数:43,代码来源:Symbol.cpp


示例3: FBTexExample

	FBTexExample(void)
	 : gl()
	 , vertex_shader(ObjectDesc("Vertex"))
	 , prog(make_prog())
	 , projection_matrix(prog, "ProjectionMatrix")
	 , camera_matrix(prog, "CameraMatrix")
	 , model_matrix(prog, "ModelMatrix")
	 , cube(List("Position")("Normal")("TexCoord").Get(), shapes::Cube(), prog)
	 , width(800)
	 , height(600)
	{
		UniformSampler(prog, "TexUnit").Set(0);
		Uniform<Vec3f>(prog, "LightPos").Set(40.0f, 40.0f, -80.0f);

		Texture::Active(0);
		tex.Bind(Texture::Target::_2D);

		Use();
	}
开发者ID:Extrunder,项目名称:oglplus,代码行数:19,代码来源:026_nv_path_rendering.cpp


示例4: FBTexThread

	FBTexThread(FBTexExample& example)
	 : gl()
	 , prog(make_prog(example))
	 , projection_matrix(prog, "ProjectionMatrix")
	 , camera_matrix(prog, "CameraMatrix")
	 , model_matrix(prog, "ModelMatrix")
	 , shape(List("Position")("Normal")("TexCoord").Get(), shapes::TwistedTorus(), prog)
	 , tex_side(512)
	 , parent_ready(example.parent_ready)
	{
		example.thread_ready = &thread_ready;

		Uniform<Vec3f>(prog, "LightPos").Set(20.0f, 30.0f, 40.0f);

		Texture::Active(0);
		gl.Bound(Texture::Target::_2D, example.tex)
			.MinFilter(TextureMinFilter::Linear)
			.MagFilter(TextureMagFilter::Linear)
			.WrapS(TextureWrap::Repeat)
			.WrapT(TextureWrap::Repeat)
			.Image2D(
				0,
				PixelDataInternalFormat::RGBA,
				tex_side, tex_side,
				0,
				PixelDataFormat::RGBA,
				PixelDataType::UnsignedByte,
				nullptr
			);

		gl.Bound(Renderbuffer::Target::Renderbuffer, rbo)
 			.Storage(
				PixelDataInternalFormat::DepthComponent,
				tex_side,
				tex_side
			);

		gl.Bound(Framebuffer::Target::Draw, fbo)
			.AttachTexture(FramebufferAttachment::Color, example.tex, 0)
			.AttachRenderbuffer(FramebufferAttachment::Depth, rbo);

		Use();
	}
开发者ID:xubingyue,项目名称:oglplus,代码行数:43,代码来源:025_rendered_texture_mt.cpp


示例5: insertModule

    void insertModule(int i, QString module)
    {
		_lists.insert(i, List());

		// insert new option
		if(_lists.size() > _ld->levelOptionsCount())
		{
            QVector<BtMiniLevelOption> os;
			for(int ii = 0; ii < _ld->levelOptionsCount(); ++ii)
				os.append(_ld->levelOption(ii));

			os.insert(i, _ld->levelOption(i));

			for(int ii = 0; ii < os.size(); ++ii)
				_ld->setLevelOption(ii, os[ii]);
		}

		setupModule(i, module);
    }
开发者ID:kalemas,项目名称:bibletime,代码行数:19,代码来源:btminimoduletextmodel.cpp


示例6: CWXListCtrl

BOOL CDlgEmployee::OnInitDialog()
{
    CDialog::OnInitDialog();

    std::vector<SWXLISTCTROLCOLUMN> vecTitle;
    vecTitle.push_back(SWXLISTCTROLCOLUMN(0,"员工号", LVCFMT_LEFT, 50));
    vecTitle.push_back(SWXLISTCTROLCOLUMN(1,"姓名", LVCFMT_LEFT, 74));
    vecTitle.push_back(SWXLISTCTROLCOLUMN(2,"部门", LVCFMT_LEFT, 100));
    vecTitle.push_back(SWXLISTCTROLCOLUMN(3,"性别", LVCFMT_LEFT, 50));
    vecTitle.push_back(SWXLISTCTROLCOLUMN(4,"生日", LVCFMT_LEFT, 110));
    vecTitle.push_back(SWXLISTCTROLCOLUMN(5,"手机", LVCFMT_LEFT, 80));
    vecTitle.push_back(SWXLISTCTROLCOLUMN(6,"座机", LVCFMT_LEFT, 80));
    vecTitle.push_back(SWXLISTCTROLCOLUMN(7,"职位", LVCFMT_LEFT, 60));
    vecTitle.push_back(SWXLISTCTROLCOLUMN(8,"当前状态", LVCFMT_LEFT, 60));
    CWXListCtrl(&this->m_list).SetColTitle(vecTitle);


    List();

    if(E_START_TYPE_SELECTION==m_eStartType)
    {
        this->GetDlgItem(IDC_BUTTON1)->ShowWindow(0);
        this->GetDlgItem(IDC_BUTTON8)->ShowWindow(0);

        EnabaleOk();
    }
    else
    {
        this->GetDlgItem(IDOK)->ShowWindow(0);

        if(!BNS::Power()->GetEmployeePower(BNS::Login()->GetLoginID()).IsCreatePower())
        {
            this->GetDlgItem(IDC_BUTTON1)->ShowWindow(0);
        }
        if(!BNS::Power()->GetEmployeePower(BNS::Login()->GetLoginID()).IsEditPower())
        {
            this->GetDlgItem(IDC_BUTTON8)->ShowWindow(0);
        }
    }

    return TRUE;  // 除非将焦点设置到控件,否则返回 TRUE
}
开发者ID:tastelife,项目名称:WX3000,代码行数:42,代码来源:DlgEmployee.cpp


示例7: List

void CDirectory::Clear(BSTR path)
{
	VARIANT vList;
	List(path, 0, &vList);

	long upperBound;
	::SafeArrayGetUBound(vList.parray, 1, &upperBound);

	for(long i = 0; i < upperBound; i++)
	{
		VARIANT vListEntry;
		::SafeArrayGetElement(vList.parray, &i, &vListEntry);

		IListEntry* listEntry;
		vListEntry.pdispVal->QueryInterface(__uuidof(listEntry),
			(LPVOID*) &listEntry);

		BSTR name;
		listEntry->get_Name(&name);

		TCHAR newPath[MAX_PATH];
		::StringCchCopy(newPath, MAX_PATH, path);
		::PathAppend(newPath, name);
		::SysFreeString(name);

		BOOL bDir;
		listEntry->get_IsDirectory(&bDir);

		if(bDir)
		{
			Clear(newPath);
		}
		else
		{
			::DeleteFile(newPath);
		}

		listEntry->Release();
	}
	::SafeArrayDestroy(vList.parray);
	::RemoveDirectory(path);
}
开发者ID:chatgen,项目名称:pandion,代码行数:42,代码来源:Directory.cpp


示例8: switch

void Application::run()
{
	if (!MMEnu)
	{
		cout << "Pas de menu accocher à l'application en cours! " << endl;
		return;
	}

	this->Again = true;


	do
	{
		this->MMEnu->display(cout);

		switch (this->MMEnu->askChoice(cout))
		{

		case eCREATE:		Create();	break;
		case eREAD:			Read();		break;
		case eUPDATE:		Update();	break;
		case eDELETE:		Delete();	break;
		case eDELETEALL:	DeleteAll(); break;
		case eLIST:			List();		break;
		case eFIRST:		First();	break;
		case eNEXT:			Next();		break;
		case eLAST:			Last();		break;
		case ePREVIOUS:		Previous();	break;
		case eSORT:			Sort();		break;
		case eSEARCH:		Shearch();	break;
		case eERROR:		Error();	break;
		case eQUIT:			Quit();		break;
		default:			Bydefault(); break;

		}


	} while (this->Again);


}
开发者ID:Phrederik2,项目名称:Projet-C-2ieme,代码行数:41,代码来源:Application.cpp


示例9: List

void CSpaceObjectList::NotifyOnObjEnteredGate (CSpaceObject *pGatingObj, CTopologyNode *pDestNode, const CString &sDestEntryPoint, CSpaceObject *pStargate)

//	NotifyOnObjEnteredGate
//
//	Notify all objects in the list that the given object has entered a stargate.

	{
	int i;

	if (GetCount() > 0)
		{
		TArray<CSpaceObject *> List(m_List);

		for (i = 0; i < List.GetCount(); i++)
			{
			CSpaceObject *pObj = List[i];
			if (!pObj->IsDestroyed())
				pObj->FireOnObjEnteredGate(pGatingObj, pDestNode, sDestEntryPoint, pStargate);
			}
		}
	}
开发者ID:bmer,项目名称:Mammoth,代码行数:21,代码来源:CSpaceObjectList.cpp


示例10: CubeExample

	CubeExample(void)
	 : cube(
		List("Position")("Normal")("TexCoord").Get(),
		shapes::Cube(),
		cube_prog
	)
	{
		// setup the texture
		{
			GLuint tex_side = 512;
			auto image = images::NewtonFractal(
				tex_side, tex_side,
				Vec3f(0.2f, 0.1f, 0.4f),
				Vec3f(0.8f, 0.8f, 1.0f),
				Vec2f(-1.0f, -1.0f),
				Vec2f( 1.0f,  1.0f),
				images::NewtonFractal::X4Minus1(),
				images::NewtonFractal::DefaultMixer()
			);

			gl.Bound(Texture::Target::_2D, cube_tex)
				.Image2D(image)
				.GenerateMipmap()
				.BorderColor(Vec4f(0.8f, 0.8f, 1.0f, 1.0f))
				.MinFilter(TextureMinFilter::LinearMipmapLinear)
				.MagFilter(TextureMagFilter::Linear)
				.WrapS(TextureWrap::Repeat)
				.WrapT(TextureWrap::Repeat);
		}

		cube_prog.cube_tex = 0;
		cube_prog.light_position.Set(4.0f, 4.0f, -8.0f);

		gl.ClearColor(0.8f, 0.8f, 0.7f, 0.0f);
		gl.ClearDepth(1.0f);
		gl.Enable(Capability::DepthTest);
		gl.Enable(Capability::CullFace);
		gl.CullFace(Face::Back);
	}
开发者ID:Extrunder,项目名称:oglplus,代码行数:39,代码来源:025_subroutines.cpp


示例11: CRowSet

CRowSet* Inventory::List( EVEItemFlags _flag, uint32 forOwner ) const
{
	DBRowDescriptor* header = new DBRowDescriptor;
	header->AddColumn( "itemID",     DBTYPE_I4 );
	header->AddColumn( "typeID",     DBTYPE_I2 );
	header->AddColumn( "ownerID",    DBTYPE_I4 );
	header->AddColumn( "locationID", DBTYPE_I4 );
	header->AddColumn( "flagID",     DBTYPE_I2 );
	header->AddColumn( "singleton",  DBTYPE_BOOL );
	header->AddColumn( "quantity",   DBTYPE_I4 );
	header->AddColumn( "groupID",    DBTYPE_I2 );
	header->AddColumn( "categoryID", DBTYPE_UI1 );
	header->AddColumn( "customInfo", DBTYPE_STR );
	header->AddColumn( "stacksize" , DBTYPE_I4 );




    CRowSet* rowset = new CRowSet( &header );
    List( rowset, _flag, forOwner );
    return rowset;
}
开发者ID:Almamu,项目名称:evemu_incursion,代码行数:22,代码来源:Inventory.cpp


示例12: allocVector

SEXP aRTconn::Summary()
{
	SEXP info, element, names;

	info = allocVector(VECSXP, aRTconnSSum); // List containing the connection attributes
	names = allocVector(STRSXP, aRTconnSSum); // Names Vector

    STRING_LIST_ITEM(info, names, aRTconnSClass,     "class",    Class());
    STRING_LIST_ITEM(info, names, aRTconnSUser,      "user",     User);
    STRING_LIST_ITEM(info, names, aRTconnSPassword,  "password", Password);
    STRING_LIST_ITEM(info, names, aRTconnSHost,      "host",     Host);

    INTEGER_LIST_ITEM(info, names, aRTconnSPort,     "port",     Port);

    SET_STRING_ELT(names, aRTconnSDatabases, mkChar("databases"));
    element = List();
    SET_VECTOR_ELT(info, aRTconnSDatabases, element);

	setAttrib(info, R_NamesSymbol, names); // Set the names of the list
	
	return info;		 
}
开发者ID:pedro-andrade-inpe,项目名称:aRT-old,代码行数:22,代码来源:aRTconn.cpp


示例13: verify_attached

ValueType Object::get_property_value_impl(ContextType& ctx, const Property &property)
{
    verify_attached();

    size_t column = property.table_column;
    if (is_nullable(property.type) && m_row.is_null(column)) {
        return ctx.null_value();
    }

    if (is_array(property.type) && property.type != PropertyType::LinkingObjects) {
        REALM_ASSERT(property.type == PropertyType::Object);
        return ctx.box(List(m_realm, m_row.get_linklist(column)));
    }

    switch (property.type & ~PropertyType::Flags) {
        case PropertyType::Bool:   return ctx.box(m_row.get_bool(column));
        case PropertyType::Int:    return ctx.box(m_row.get_int(column));
        case PropertyType::Float:  return ctx.box(m_row.get_float(column));
        case PropertyType::Double: return ctx.box(m_row.get_double(column));
        case PropertyType::String: return ctx.box(m_row.get_string(column));
        case PropertyType::Data:   return ctx.box(m_row.get_binary(column));
        case PropertyType::Date:   return ctx.box(m_row.get_timestamp(column));
        case PropertyType::Any:    return ctx.box(m_row.get_mixed(column));
        case PropertyType::Object: {
            auto linkObjectSchema = m_realm->schema().find(property.object_type);
            TableRef table = ObjectStore::table_for_object_type(m_realm->read_group(), property.object_type);
            return ctx.box(Object(m_realm, *linkObjectSchema, table->get(m_row.get_link(column))));
        }
        case PropertyType::LinkingObjects: {
            auto target_object_schema = m_realm->schema().find(property.object_type);
            auto link_property = target_object_schema->property_for_name(property.link_origin_property_name);
            TableRef table = ObjectStore::table_for_object_type(m_realm->read_group(), target_object_schema->name);
            auto tv = m_row.get_table()->get_backlink_view(m_row.get_index(), table.get(), link_property->table_column);
            return ctx.box(Results(m_realm, std::move(tv)));
        }
        default: REALM_UNREACHABLE();
    }
}
开发者ID:Macostik,项目名称:Swifty,代码行数:38,代码来源:object_accessor.hpp


示例14: main

 main() 
 { 
    int a; 
    while(1)
    {
        List(); 
        printf("\t请选择:"); 
        while(scanf("%d",&a)!=1||a<0||a>7)
        { 
             printf("\t输入错误!\n\t重新选择:"); 
             getchar(); 
        } 
       
         switch(a){
         case 1: 
            fuli1(); 
             break; 
         case 2: 
            fuli2(); 
             break; 
         case 3: 
             danli(); 
             break; 
         case 4:
            benjin();
             break;
         case 5:
             shijian();
             break;
         case 6:
             benxi();
             break;
         case 7:
             benxi();
             break;
        }
    }
 } 
开发者ID:TheSShine,项目名称:321123,代码行数:38,代码来源:c.c


示例15: BarDisplay

	BarDisplay(void)
	 : gl()
	 , side(128)
	 , shadow_size(512)
	 , cube(
		List("Position")("Normal").Get(),
		shapes::Cube(0.95, 1.0, 0.95, 0.0, 0.5, 0.0)
	), display_vao(cube.VAOForProgram(display_prog))
	 , shadow_vao(cube.VAOForProgram(shadow_prog))
	{
		init_shadows();
		init_heights();
		init_offsets();

		auto light_proj = CamMatrixf::PerspectiveX(
			Degrees(74),
			1.0,
			1, 3*side
		);
		display_prog.light_proj_matrix.Set(light_proj);
		shadow_prog.projection_matrix.Set(light_proj);
		gl.PolygonOffset(4.0, 4.0);
	}
开发者ID:Extrunder,项目名称:oglplus,代码行数:23,代码来源:030_pin_display.cpp


示例16: main

int main (int argc, char **argv)
{
	int i,j,k;
	int fd1=0,fd2=0,fd3=0;
	char buffer[255];
	/*Invalid input message*/
	if (argc != 2) { // If the user doesn't enter the correct number of parameters...
        fprintf(stderr, "usage: %s <hostname>\n", argv[0]); // Print out usage information.
        exit(1); // And exit with an error code.
    	}
    	clnt = clnt_create(argv[1], SSNFSPROG, SSNFSVER, "tcp"); // Create the RPC client.
  	if (clnt == NULL) { // If there was an error creating the client...
        	fprintf(stderr, "getting client handle failed"); // Report an error message.
        	exit(2); // And exit with an error code.
    	}

      	username = getpwuid(geteuid())->pw_name; // Get the user's username.
	
	fd1=Open("File1"); // opens the file
	printf("\n file descriptor we received is : %d",fd1);
	fd2=Open("File2");
	printf("\n file descriptor received is : %d",fd2);
	for (i=0; i<20;i++){
		Write(fd1, "funny contents in file file1", 15);
	}
	
	Close(&fd1);
		
	for (j=0; j< 5;j++){
		Read(fd2, buffer, 10);
	}
	Close(&fd2);
	Delete("File1");
	List();
	exit (0);

}	
开发者ID:jayantiandhale,项目名称:Implementation-of-a-Simple-Stateful-Network-File-Server-supporting-Remote-File-Service-Model,代码行数:37,代码来源:client.c


示例17: main

int main(int argc, char *argv[])
{
	Status s = TRUE;
	int i,k;
	for(i=0;i<MAX_LEN;i++) /* 初始化串 */
		InitString(&T[i]);
	while (s) {
		printf("请选择: 1.打开文件(新或旧)  2.显示文件内容\n");
		printf("        3.插入行  4.删除行  5.拷贝行  6.修改行\n");
		printf("        7.查找字符串        8.替换字符串\n");
		printf("        9.存盘退出          0.放弃编辑\n");
		scanf("%d",&k);
		switch (k)
		{
		case 1: Open();
			break;
		case 2: List();
			break;
		case 3: Insert();
			break;
		case 4: Delete();
			break;
		/* case 5: Copy(); */
		/* 	break; */
		/* case 6: Modify(); */
		/* 	break; */
		/* case 7: Search(); */
		/* 	break; */
		/* case 8: Replace1(); */
		/* 	break; */
		case 9: Save();
		case 0: s=FALSE;
		}
	}

	return 0;
}
开发者ID:schwxd,项目名称:linux-kernel,代码行数:37,代码来源:editor.c


示例18: cross

Expr cross(const Expr& a, const Expr& b)
{
  TEST_FOR_EXCEPTION(a.size() != b.size(), RuntimeError,
    "mismatched vector sizes in cross(a,b): a.size()=" << a.size()
    << ", b.size()=" << b.size());

  TEST_FOR_EXCEPTION(a.size() < 2 || a.size() > 3, RuntimeError,
    "cross(a,b) undefined for dim=" << a.size());

  if (a.size()==2)
  {
    return a[0]*b[1] - a[1]*b[0];
  }
  else
  {
    return List(
      cross(List(a[1],a[2]), List(b[1],b[2])),
      -cross(List(a[0],a[2]), List(b[0],b[2])),
      cross(List(a[0],a[1]), List(b[0],b[1]))
      );
  }
}
开发者ID:coyigg,项目名称:trilinos,代码行数:22,代码来源:SundanceVectorCalculus.cpp


示例19: List

truth commandsystem::ShowKeyLayout(character*)
{
  felist List(CONST_S("Keyboard Layout"));
  List.AddDescription(CONST_S(""));
  List.AddDescription(CONST_S("Key       Description"));
  festring Buffer;

  for(int c = 1; GetCommand(c); ++c)
    if(!GetCommand(c)->IsWizardModeFunction())
    {
      Buffer.Empty();
      Buffer << GetCommand(c)->GetKey();
      Buffer.Resize(10);
      List.AddEntry(Buffer + GetCommand(c)->GetDescription(), LIGHT_GRAY);
    }

  if(game::WizardModeIsActive())
  {
    List.AddEntry(CONST_S(""), WHITE);
    List.AddEntry(CONST_S("Wizard mode functions:"), WHITE);
    List.AddEntry(CONST_S(""), WHITE);

    for(int c = 1; GetCommand(c); ++c)
      if(GetCommand(c)->IsWizardModeFunction())
      {
        Buffer.Empty();
        Buffer << GetCommand(c)->GetKey();
        Buffer.Resize(10);
        List.AddEntry(Buffer + GetCommand(c)->GetDescription(), LIGHT_GRAY);
      }
  }

  game::SetStandardListAttributes(List);
  List.Draw();
  return false;
}
开发者ID:AlexMooney,项目名称:ivan,代码行数:36,代码来源:command.cpp


示例20: PyList

CRowSet* Inventory::List( EVEItemFlags _flag, uint32 forOwner ) const
{
    PyList *keywords = new PyList();
    keywords->AddItem(new_tuple(new PyString("stacksize"), new PyToken("util.StackSize")));
    keywords->AddItem(new_tuple(new PyString("singleton"), new PyToken("util.Singleton")));

    DBRowDescriptor* header = new DBRowDescriptor(keywords);
    header->AddColumn( "itemID",     DBTYPE_I8 );
    header->AddColumn( "typeID",     DBTYPE_I4 );
    header->AddColumn( "ownerID",    DBTYPE_I4 );
    header->AddColumn( "locationID", DBTYPE_I8 );
    header->AddColumn( "flagID",     DBTYPE_I2 );
    header->AddColumn( "quantity",   DBTYPE_I4 );
    header->AddColumn( "groupID",    DBTYPE_I2 );
    header->AddColumn( "categoryID", DBTYPE_I4 );
    header->AddColumn( "customInfo", DBTYPE_STR );

    //header->AddColumn( "singleton",  DBTYPE_BOOL );
    //header->AddColumn( "stacksize" , DBTYPE_I4 );

    CRowSet* rowset = new CRowSet( &header );
    List( rowset, _flag, forOwner );
    return rowset;
}
开发者ID:Almamu,项目名称:evemu_server,代码行数:24,代码来源:Inventory.cpp



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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