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


C++ StringStream::toString方法代码示例

本文整理汇总了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
}
开发者ID:hillwah,项目名称:darkeden,代码行数:21,代码来源:GCAddEffectToTile.cpp

示例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
}
开发者ID:hillwah,项目名称:darkeden,代码行数:16,代码来源:CGThrowItem.cpp

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

}
开发者ID:hillwah,项目名称:darkeden,代码行数:16,代码来源:EffectSharpShield.cpp

示例4: toString

string EffectFuryOfGnome::toString()
	const throw()
{
	__BEGIN_TRY

	StringStream msg;

	msg << "EffectFuryOfGnome("
		<< "ObjectID:" << getObjectID()
		<< ")";

	return msg.toString();

	__END_CATCH

}
开发者ID:jun199004,项目名称:server,代码行数:16,代码来源:EffectFuryOfGnome.cpp

示例5: toString

string EffectMiracleShield::toString()
	const throw()
{
	__BEGIN_TRY

	StringStream msg;

	msg << "EffectMiracleShield("
		<< "Defense:" << m_DefenseBonus
		<< ",Protection:" << m_ProtectionBonus
		<< ")";

	return msg.toString();

	__END_CATCH
}
开发者ID:jun199004,项目名称:server,代码行数:16,代码来源:EffectMiracleShield.cpp

示例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();
}
开发者ID:hillwah,项目名称:darkeden,代码行数:16,代码来源:ShrineInfoManager.cpp

示例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
}
开发者ID:hillwah,项目名称:darkeden,代码行数:21,代码来源:GCStatusCurrentHP.cpp

示例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
}
开发者ID:hillwah,项目名称:darkeden,代码行数:19,代码来源:GCAddVampireFromBurrowing.cpp

示例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
}
开发者ID:hillwah,项目名称:darkeden,代码行数:16,代码来源:OustersEXPInfo.cpp

示例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
}
开发者ID:jun199004,项目名称:server,代码行数:20,代码来源:GCModifyGuildMemberInfo.cpp

示例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
}
开发者ID:hillwah,项目名称:darkeden,代码行数:22,代码来源:ServerGroupInfo.cpp

示例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
}
开发者ID:hillwah,项目名称:darkeden,代码行数:22,代码来源:GCSkillToSelfOK1.cpp

示例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();
}
开发者ID:jun199004,项目名称:server,代码行数:20,代码来源:EffectTransportCreature.cpp

示例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
}
开发者ID:hillwah,项目名称:darkeden,代码行数:17,代码来源:CGAddZoneToInventory.cpp

示例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();
}
开发者ID:hillwah,项目名称:darkeden,代码行数:17,代码来源:EventQuestLootingManager.cpp


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