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

C++ ePipeline类代码示例

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

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



在下文中一共展示了ePipeline类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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: CreateDataInstance

void CMemoryView::ResetData(ePipeline& DataList){
	
	CTitle* Title = (CTitle*)m_ChildList[1];
	Title->DeleteAll();
	Title->m_ObjectCount=0;

	for (int i=0; i<DataList.Size(); i+=2)
	{
		int64 InstanceID = *(int64*)DataList.GetData(i);
		ePipeline*  InstanceItem = (ePipeline*)DataList.GetData(i+1);
		tstring InstanceName = InstanceItem->GetLabel();
		CreateDataInstance(InstanceName);

		CTextItem* DataList = (CTextItem*)Title->m_ChildList[Title->m_ObjectCount-1];
		
		for (int j=0; j<InstanceItem->Size(); j++)
		{
			ePipeline* Data = (ePipeline*)InstanceItem->GetData(j);
			
			CMemoryView::CTextItem*  DataItem = Data2Item(j,Data);

			if (DataItem==NULL)
			{
				return;
			}	

			//DataItem->m_State = SPACE_NOTOOLABR;

			DataList->PushChild(DataItem);
		}
	}
	Layout();
}
开发者ID:GMIS,项目名称:GMIS,代码行数:33,代码来源:MemoryView.cpp


示例3: eINT

void  CDebugView::Item2Path(CVSpace2* Item,ePipeline& Path){
	assert(Item);
	
	Path.Push_Front(new eINT(Item->m_Alias));

	CVSpace2* Parent = Item->m_Parent;
	while (Parent != this)
	{
		Path.Push_Front(new eINT(Parent->m_Alias));
		Parent = Parent->m_Parent;
	}
}
开发者ID:GMIS,项目名称:GMIS,代码行数:12,代码来源:DebugView.cpp


示例4: SetCurSpaceAddress

void  CAddressBar::SetCurSpaceAddress(ePipeline& Addr){
    m_CurAddress = _T("");

	while (Addr.Size())
	{
		tstring s = Addr.PopString();
        m_CurAddress +=s;
		if(Addr.Size()){
			m_CurAddress += _T("\\");
		}
	}
	Invalidate();
}
开发者ID:GMIS,项目名称:GMIS,代码行数:13,代码来源:AddressBar.cpp


示例5: FindSpace

SpaceAddress  FindSpace(ePipeline& Path){
	SpaceAddress Addr;
	
	if (Path.Size()==0)
	{
		Addr.ParentID = ROOT_SPACE;
		Addr.ChildID  = LOCAL_SPACEID;
		return Addr;
	}
	
	CppSQLite3Buffer SQL;
	
	int64 ParentID = 0;
	int64 ChildID  = ROOT_SPACE;
	
	char       ParentName[30]; 
	while (Path.Size())
	{
		tstring Name = Path.PopString();
		AnsiString AnsiName = WStoUTF8(Name);
		
		ParentID = ChildID;
		ChildID  = 0;
		
		int64toa(ParentID,ParentName);
		
		SQL.format("select %s from \"%s\" where %s=\"%s\"",
			ITEM_ID,
			ParentName,
			ITEM_NAME,
			AnsiName.c_str()
			);
		CppSQLite3Query Result = GetWorldDB().execQuery(SQL);
		
		if(!Result.eof()){
			ChildID  = Result.getInt64Field(0);
			Result.nextRow();
		}else{
			return  Addr;
		}
	}
	
	assert(Path.Size()==0);
	
	Addr.ParentID = ParentID;
	Addr.ChildID  = ChildID;
    return Addr;	
}
开发者ID:GMIS,项目名称:GMIS,代码行数:48,代码来源:Space.cpp


示例6: RegisterGlobalPeople

void  CBrainMemory::RegisterGlobalPeople(ePipeline& PeopleData){
	tstring& Name = *(tstring*)PeopleData.GetData(0);
	_tcsupr(&Name[0]);

	CLock lk(&m_MemoryMutex);
	m_GlobalPeopleList[Name] = PeopleData;	
};
开发者ID:GMIS,项目名称:GMIS,代码行数:7,代码来源:BrainMemory.cpp


示例7: 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


示例8: assert

void   CSpace::SetProerty(ePipeline& Pipe){
	assert(Size()>5);
	assert(Pipe.Size());

	assert(GetDataType(4) == TYPE_PIPELINE);
	ePipeline* Property = (ePipeline*)GetData(4);
	Property->Clear();
	*Property << Pipe;
};
开发者ID:GMIS,项目名称:GMIS,代码行数:9,代码来源:Space.cpp


示例9: IsEqualAddress

	bool IsEqualAddress(ePipeline& Address1,ePipeline& Address2)
	{
		int32 n = Address1.Size();
		if (n != Address2.Size())
		{
			return FALSE;
		}
		
		for (int i=0; i<n; i++)
		{
			int64& ID1 = *(int64*)Address1.GetData(i);
			int64& ID2 = *(int64*)Address2.GetData(i);
			if (ID1 != ID2)
			{
				return FALSE;
			}
		}
		return TRUE;
}
开发者ID:loy1991,项目名称:GMIS_BASE,代码行数:19,代码来源:LinkerPipe.cpp


示例10: while

void CDebugView::MassItem::Init(ePipeline& Pipe){
	m_Alias = Pipe.GetID();
	m_Name = Pipe.GetLabel();
	int64 Type = Pipe.PopInt();

	m_Type   = Type;

	if (m_Type == MASS_ELEMENT)
	{
		while(Pipe.Size()){
			eElectron E;
			Pipe.Pop(&E);
			ePipeline* ChildPipe = (ePipeline*)E.Value();
			MassItem* ChildItem = new MassItem();
			PushChild(ChildItem);
			ChildItem->Init(*ChildPipe);
		}
	}
}
开发者ID:GMIS,项目名称:GMIS,代码行数:19,代码来源:DebugView.cpp


示例11: Object

void   CSpacePortal::OnRequestUseObject(int64 SourceID,ePipeline& RequestInfo){

  int64 EventID = RequestInfo.PopInt();
  ePipeline* ObjectInfo = (ePipeline*)RequestInfo.GetData(0);
  ePipeline* ExePipe = (ePipeline*)RequestInfo.GetData(1);

  CObjectData Object(*ObjectInfo);
  
  int64  ExecuterID = Object.m_ID;

  CLinker ExecuterLinker;
  GetLinker(ExecuterID,ExecuterLinker);
  if (!ExecuterLinker.IsValid())
  {		  
	  ExePipe->GetLabel() = Format1024(_T("Error: Executer not started."));
	  ExePipe->SetID(RETURN_ERROR);
	  
	  CLinker Requester;
	  GetLinker(SourceID,Requester);
	  if (Requester.IsValid())
	  {
		  CMsg FeedbackMsg(MSG_TASK_FEEDBACK,NULL,EventID);
		  ePipeline& Letter = FeedbackMsg.GetLetter();
		  
		  Letter.PushPipe(*ExePipe);  
		  Requester().PushMsgToSend(FeedbackMsg);
	  }
	  return;
  }

  PushExecuterEvent(ExecuterID,SourceID,EventID);

  WriteLogDB(_T("Use Object Event:%I64ld"),EventID);


  CMsg NewMsg(MSG_OBJECT_RUN,NULL,EventID);
  ePipeline& NewLetter = NewMsg.GetLetter();
  NewLetter.PushPipe(*ExePipe);
  
  ExecuterLinker().PushMsgToSend(NewMsg);
  
};
开发者ID:GMIS,项目名称:GMIS,代码行数:42,代码来源:RequestProc.cpp


示例12: assert

//以下函数内部使用无需加锁
//////////////////////////////////////////////////////////////////////////
	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


示例13: DeleteAll

void CDebugView::Reset(ePipeline& ItemList){

	DeleteAll();

	m_Toolbar.m_Owner = NULL;
    m_SpaceFocused    = NULL;

	Layout();	
	
	m_TaskTimeStamp = ItemList.GetID();
	if(ItemList.Size()==0){
		return;
	};

	ePipeline* TaskPipe = (ePipeline*)ItemList.GetData(0);
	MassItem* Task = new MassItem;
	PushChild(Task);
	Task->Init(*TaskPipe);
	Task->m_Alias = 1; //任务ID是一个64位整数,显示不方便,这里改为1
    Layout();
	return ;
};
开发者ID:GMIS,项目名称:GMIS,代码行数:22,代码来源:DebugView.cpp


示例14: _tcslwr

void  CBrainMemory::RegisterGlobalObject(ePipeline& ObjectData){
	tstring& Name = *(tstring*)ObjectData.GetData(0);
//    tstring& Fingerprint = *(tstring*)ObjectData.GetData(2);
	_tcslwr(&Name[0]);
//	_tcsupr(&Fingerprint[0]);
	
	CLock lk(&m_MemoryMutex);
	map<tstring,ePipeline>::iterator It = m_GlobalObjectList.find(Name);
	if(It!=m_GlobalObjectList.end()){
		return;
	};

	m_GlobalObjectList[Name] = ObjectData;
};
开发者ID:GMIS,项目名称:GMIS,代码行数:14,代码来源:BrainMemory.cpp


示例15: RegisterGlobalLogic

void CBrainMemory::RegisterGlobalLogic(tstring& Name, const tstring& LogicText, ePipeline& LogicData, uint32 State,
									    tstring LogicMeaning /*=""*/, tstring InputDescrip /*=""*/, tstring OutputDescrip /*=""*/ )
{	
	ePipeline LogicItem;
	LogicItem.SetLabel(Name.c_str());
	LogicItem.PushInt(State);
	LogicItem.PushString(LogicText);
	LogicItem.PushString(LogicMeaning);
	LogicItem.PushString(InputDescrip);
	LogicItem.PushString(OutputDescrip);
    LogicItem.Push_Directly(LogicData.Clone());
	ePipeline RefList;
	LogicItem.PushPipe(RefList); //引用名:谁引用,字符串成对保存

	CLock lk(&m_MemoryMutex);
	m_GlobalLogicList.PushPipe(LogicItem);
};
开发者ID:GMIS,项目名称:GMIS,代码行数:17,代码来源:BrainMemory.cpp


示例16:

CObjectData::CObjectData(ePipeline& ObjectData){
	if (ObjectData.Size()!=4)
	{
		return;
	}
	m_ID   = ObjectData.GetID();
	m_Name = *(tstring*)ObjectData.GetData(0);
	m_Type = *(SPACETYPE*)ObjectData.GetData(1);
	m_Fingerprint = *(tstring*)ObjectData.GetData(2);
	ePipeline* Path = (ePipeline*)ObjectData.GetData(3);
	m_Address << *Path;
}
开发者ID:GMIS,项目名称:GMIS,代码行数:12,代码来源:Space.cpp


示例17: 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


示例18: CreateDefaultOwnerInfo

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


示例19: _stprintf

void CPipeView::PrintPipe(ePipeline& Pipe,int32 TabNum/*=0*/)
{
	
	TCHAR buffer[200];
    int i;
	int size = Pipe.Length();

	int Tab=TabNum;

	for(i=0; i<Tab; i++){
		buffer[i]=_T('\t');
	}

	//限制嵌套数目
	if(Tab>90){
		throw std::exception("WARNING: Nest Pipe too much, end View");
	}

	tstring PipeLabel = Pipe.m_Label;
	_stprintf(buffer+Tab,_T("Pipe<%s>: %d Data\n"),PipeLabel.c_str(), Pipe.Size());
	m_Result.PushString(buffer);

	Tab = ++TabNum;
	for(i=0; i<Tab; i++){
		buffer[i]=_T('\t');
	}

	for(i=0; i<size; i++){
	   uint32 Type = Pipe.GetDataType(i);
	   switch(Type){
	   case TYPE_NULL:
		   {
		   _stprintf(buffer+Tab,_T("%03d NULL\n"),i);
		   m_Result.PushString(buffer);
		   }
		   break;

	   case TYPE_INT:
		   {
		   int64* value=(int64 *)Pipe.GetData(i);
           _stprintf(buffer+Tab,_T("%03d INT64: %I64ld\n"),i, *value);
           m_Result.PushString(buffer);
		   }
		   break;
	   case TYPE_FLOAT:
		   {
		   float64* value=(float64 *)Pipe.GetData(i);
           _stprintf(buffer+Tab,_T("%03d FLOAT64: %f\n"),i, *value);
           m_Result.PushString(buffer);
		   }
		   break;
	   case TYPE_STRING:
		   {
		   tstring* value=(tstring *)Pipe.GetData(i);
           _stprintf(buffer+Tab,_T("%03d STRING:"),i);
		   //MBPrintf("test1","%s",value->c_str());
		   tstring s(buffer);
		   s +=(*value);
		   s +=_T('\n');

           m_Result.PushString(s);
		   //MBPrintf("test","size=%d",Result.Size());
		   }
		   break;
	   case TYPE_PIPELINE:
		   {
		   ePipeline* value=(ePipeline *)Pipe.GetData(i);
    
		   //如果不用PipeNum++而用t++,导致t增大不能恢复,中间形成空格,之后打印的数据不可见
		   PrintPipe(*value,TabNum);
		   }      
		   break;
	   }
	}
    TabNum--;
}
开发者ID:GMIS,项目名称:GMIS,代码行数:76,代码来源:SpaceMsgList.cpp



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C++ ePoint类代码示例发布时间:2022-05-31
下一篇:
C++ dynamic_string_array类代码示例发布时间:2022-05-31
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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