本文整理汇总了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);
//目前只有这些,其它后续再添加
}
示例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;
}
示例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);
};
示例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;
}
示例5: CreateDefaultOwnerInfo
void CSpace::CreateDefaultOwnerInfo(ePipeline& Pipe){
Pipe.PushInt(NO_RIGHT);
ePipeline Empty;
Pipe.PushPipe(Empty);
}