本文整理汇总了C++中StringStream::toString方法的典型用法代码示例。如果您正苦于以下问题:C++ StringStream::toString方法的具体用法?C++ StringStream::toString怎么用?C++ StringStream::toString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StringStream
的用法示例。
在下文中一共展示了StringStream::toString方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: toString
//////////////////////////////////////////////////////////////////////
//
// get packet's debug string
//
//////////////////////////////////////////////////////////////////////
string GCAddEffectToTile::toString ()
const throw()
{
__BEGIN_TRY
StringStream msg;
msg << "GCAddEffectToTile("
<< ",ObjectID:" << (int)m_ObjectID
<< ",X,Y:" << (int)m_X << "," << (int)m_Y
<< ",EffectID:" << (int)m_EffectID
<< ",Duration:" << (int)m_Duration
<< ")";
return msg.toString();
__END_CATCH
}
示例2: toString
string CGThrowItem::toString () const
throw()
{
__BEGIN_TRY
StringStream msg;
msg << "CGThrowItem("
<< "ObjectID:" << (int)m_ObjectID
<< ",TargetObjectID:" << (int)m_TargetObjectID
<< ",InvenX" << (int)m_InvenX
<< ",InvenY" << (int)m_InvenY
<< ")" ;
return msg.toString();
__END_CATCH
}
示例3: toString
string EffectSharpShield::toString()
const throw()
{
__BEGIN_TRY
StringStream msg;
msg << "EffectSharpShield("
<< "ObjectID:" << getObjectID()
<< ",ClientEffectClass:" << (int)m_ClientEffectClass
<< ",Damage:" << m_Damage
<< ")";
return msg.toString();
__END_CATCH
}
示例4: toString
string EffectFuryOfGnome::toString()
const throw()
{
__BEGIN_TRY
StringStream msg;
msg << "EffectFuryOfGnome("
<< "ObjectID:" << getObjectID()
<< ")";
return msg.toString();
__END_CATCH
}
示例5: toString
string EffectMiracleShield::toString()
const throw()
{
__BEGIN_TRY
StringStream msg;
msg << "EffectMiracleShield("
<< "Defense:" << m_DefenseBonus
<< ",Protection:" << m_ProtectionBonus
<< ")";
return msg.toString();
__END_CATCH
}
示例6: toString
string ShrineInfo::toString() const
throw()
{
StringStream msg;
msg << "ShrineInfo("
<< "MonsterType:" << (int)m_MonsterType
<< ",ShrineType:" << (m_ShrineType==SHRINE_GUARD?"GUARD":"HOLY")
<< ",ZoneID:" << (int)m_ZoneID
<< ",X:" << (int)m_X
<< ",Y:" << (int)m_Y
<< ",Name:" << m_Name
<< ")";
return msg.toString();
}
示例7: toString
//////////////////////////////////////////////////////////////////////
//
// get packet's debug string
//
//////////////////////////////////////////////////////////////////////
string GCStatusCurrentHP::toString () const
throw()
{
__BEGIN_TRY
StringStream msg;
msg << "GCStatusCurrentHP("
<< "ObjectID:" << m_ObjectID
<< ",CurrentHP:" << (int)m_CurrentHP
<< ")" ;
return msg.toString();
__END_CATCH
}
示例8: toString
//--------------------------------------------------------------------------------
// get packet's debug string
//--------------------------------------------------------------------------------
string GCAddVampireFromBurrowing::toString () const
throw()
{
__BEGIN_TRY
StringStream msg;
msg << "GCAddVampireFromBurrowing("
<< "VampireInfo:" << m_VampireInfo.toString()
<< "EffectInfo:" << m_pEffectInfo->toString()
<< ")" ;
return msg.toString();
__END_CATCH
}
示例9: toString
string OustersEXPInfo::toString() const
throw()
{
__BEGIN_TRY
StringStream msg;
msg << "OustersEXPInfo ("
<< " Level : " << (int)m_Level
<< " GoalExp : " << (int)m_GoalExp
<< " AccumExp : " << (int)m_AccumExp
<< " SkillPointBonus : " << (int)m_SkillPointBonus
<< ")";
return msg.toString();
__END_CATCH
}
示例10: toString
//////////////////////////////////////////////////////////////////////
// get packet's debug string
//////////////////////////////////////////////////////////////////////
string GCModifyGuildMemberInfo::toString () const
throw()
{
__BEGIN_TRY
StringStream msg;
msg << "GCModifyGuildMemberInfo("
<< "GuildID:" << (int)m_GuildID
<< "GuildName:" << m_GuildName
<< "GuildMemberRank:" << (int)m_GuildMemberRank
<< ")" ;
return msg.toString();
__END_CATCH
}
示例11: toString
/////////////////////////////////////////////////////////////////////
//
// get packet's debug string
//
//////////////////////////////////////////////////////////////////////
string ServerGroupInfo::toString ()
const throw()
{
__BEGIN_TRY
StringStream msg;
msg << "ServerGroupInfo("
<< "GroupID : "<< m_GroupID
<< "GroupName : " << m_GroupName
<< "Stat : " << m_Stat
<< ")";
return msg.toString();
__END_CATCH
}
示例12: throw
//////////////////////////////////////////////////////////////////////
//
// get packet's debug string
//
//////////////////////////////////////////////////////////////////////
string GCSkillToSelfOK1::toString ()
const throw()
{
__BEGIN_TRY
StringStream msg;
msg << "GCSkillToSelfOK1("
<< "SkillType:" << (int)m_SkillType
<< ",CEffectID:" << (int)m_CEffectID
<< ",Duration:" << (int)m_Duration
<< ",Grade:" << (int)m_Grade;
msg << ModifyInfo::toString();
msg << ")";
return msg.toString();
__END_CATCH
}
示例13: toString
//----------------------------------------------------------------------
// get debug string
//----------------------------------------------------------------------
string EffectTransportCreature::toString () const
throw()
{
StringStream msg;
if (m_pZone)
{
msg << "EffectTransportCreature("
<< ",ZoneName:" << m_ZoneName.c_str()
<< ",ZoneID:" << (int)m_pZone->getZoneID()
<< ",X:" << (int)getX()
<< ",Y:" << (int)getY()
<< ")";
}
return msg.toString();
}
示例14: toString
string CGAddZoneToInventory::toString ()
const throw()
{
__BEGIN_TRY
StringStream msg;
msg << "CGAddZoneToInventory("
<< "ObjectID : " << (int)m_ObjectID
<< ", ZoneX : " << (int)m_ZoneX
<< ", ZoneY : " << (int)m_ZoneY
<< ", InventoryX : " << (int)m_InvenX
<< ", InventoryY : " << (int)m_InvenY
<< ")";
return msg.toString();
__END_CATCH
}
示例15: toString
string EventQuestLootingInfo::toString() const
{
StringStream msg;
msg << "EventQuestLootingInfo : "
<< "QuestLevel : " << m_QuestLevel
<< " ,Type : " << (uint)m_Type
<< "\n\tZoneID : " << m_LootingZoneID
<< " ,MonsterType : " << m_LootingMonsterType
<< "\n\tItemClass : " << ItemClass2String[m_LootingItemClass].c_str()
<< " ,MinItemType : " << m_LootingItemTypeMin
<< " ,MaxItemType : " << m_LootingItemTypeMax
<< "\n\tRace : " << (uint)m_Race
<< " ,Min Grade : " << m_MinGrade
<< " ,Max Grade : " << m_MaxGrade;
return msg.toString();
}