当前位置: 首页>>代码示例>>C++>>正文


C++ ePipeline::PushInt方法代码示例

本文整理汇总了C++中ePipeline::PushInt方法的典型用法代码示例。如果您正苦于以下问题:C++ ePipeline::PushInt方法的具体用法?C++ ePipeline::PushInt怎么用?C++ ePipeline::PushInt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ePipeline的用法示例。


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

示例1: CreateDefaultProerty

void CSpace::CreateDefaultProerty(ePipeline& Pipe){
	Pipe.PushInt(0);
	Pipe.PushString(_T(""));
	ePipeline Empty;
	Pipe.PushPipe(Empty);
	//目前只有这些,其它后续再添加
}
开发者ID:GMIS,项目名称:GMIS,代码行数:7,代码来源:Space.cpp

示例2: GetAllChildList

int32 GetAllChildList(int64 ParentID, ePipeline& ChildList,int64 NotIncludeChildID /*=0*/){
    assert(ParentID >0);
	ChildList.Clear();

	char TableName[30];
	int64toa(ParentID,TableName);
	if(!GetWorldDB().tableExists(TableName)){
		return 0;
	}

	//ChildList.SetID(ParentID);

    CppSQLite3Buffer SQL;
	SQL.format("select %s,%s,%s,%s from \"%s\"",
		     ITEM_ID,
		     ITEM_NAME,
			 ITEM_TYPE,
			 ITEM_FINGERPRINT,
		     TableName
	);

	CppSQLite3Query Result = GetWorldDB().execQuery(SQL);
	
	while(!Result.eof()){
		int64      ChildID     = Result.getInt64Field(0);
		
		if (ChildID !=NotIncludeChildID)
		{
			AnsiString s    = Result.getStringField(1,"");
			
			tstring Name = UTF8toWS(s);
			Name = GetFileNoPathName(Name);
			Name = GetFileName(Name);
			
			int32      Type        = Result.getIntField(2);
			AnsiString FingerPrint = Result.getStringField(3,"");

			//ChildList.PushInt64(ChildID);
			ChildList.PushString(Name);
			ChildList.PushInt(Type);
			ChildList.PushString(FingerPrint);

		}
		Result.nextRow();
	}
	return ChildList.Size()/3;
}
开发者ID:GMIS,项目名称:GMIS,代码行数:47,代码来源:Space.cpp

示例3: CreateDefaultOwner

void CSpace::CreateDefaultOwner(ePipeline& Pipe)
{
    tstring  Name = _T("Unkown");
	tstring  Cryptograhp = _T("");
	SPACE_RIGHT  Right = NO_RIGHT;
    tstring  Email = _T("Unkown");
    tstring  Memo = _T("Unkown");
   
    eBLOB* Validata = new eBLOB();   
	
    Pipe.PushString(Name);
    Pipe.PushInt(Right);
    Pipe.PushString(Cryptograhp);
    Pipe.PushString(Email);
    Pipe.PushString(Memo);  
    Pipe.Push_Directly(Validata);
};
开发者ID:GMIS,项目名称:GMIS,代码行数:17,代码来源:Space.cpp

示例4:

//以下函数内部使用无需加锁
//////////////////////////////////////////////////////////////////////////
	bool  CLinkerPipe::ReceiverID2LocalAddress(ePipeline& Receiver,ePipeline& LocalAddress){
		int64 ReceiverID = Receiver.PopInt();

		if (ReceiverID==SYSTEM_SOURCE)
		{
			LocalAddress.PushInt(ReceiverID);
			LocalAddress<<Receiver; //可能还有其它地址
			return TRUE;
		}
		
		assert(Receiver.Size()==0); //其它情况应该没有多余地址

		map<int64,ePipeline>::iterator It = m_LocalAddressList.find(ReceiverID);
		if(It != m_LocalAddressList.end()){
			ePipeline& Pipe =  It->second;
			LocalAddress = Pipe;
			return TRUE;
		}
		return FALSE;
    }
开发者ID:loy1991,项目名称:GMIS_BASE,代码行数:22,代码来源:LinkerPipe.cpp

示例5: CreateDefaultOwnerInfo

void CSpace::CreateDefaultOwnerInfo(ePipeline& Pipe){
	Pipe.PushInt(NO_RIGHT);
    ePipeline Empty;
	Pipe.PushPipe(Empty);
}
开发者ID:GMIS,项目名称:GMIS,代码行数:5,代码来源:Space.cpp


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