NetAnim: Prevent closing the routing trace when splitting files
This commit is contained in:
@@ -157,7 +157,7 @@ void AnimationInterface::StartNewTraceFile ()
|
||||
{
|
||||
return;
|
||||
}
|
||||
StopAnimation ();
|
||||
StopAnimation (true);
|
||||
m_outputFileName = m_originalFileName + "-" + oss.str ();
|
||||
StartAnimation (true);
|
||||
++i;
|
||||
@@ -673,7 +673,7 @@ void AnimationInterface::ConnectCallbacks ()
|
||||
}
|
||||
|
||||
|
||||
void AnimationInterface::StopAnimation ()
|
||||
void AnimationInterface::StopAnimation (bool onlyAnimation)
|
||||
{
|
||||
m_started = false;
|
||||
NS_LOG_INFO ("Stopping Animation");
|
||||
@@ -687,6 +687,10 @@ void AnimationInterface::StopAnimation ()
|
||||
std::fclose (m_f);
|
||||
}
|
||||
m_outputFileSet = false;
|
||||
if (onlyAnimation)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_routingF)
|
||||
{
|
||||
WriteN (GetXMLClose ("anim"), m_routingF);
|
||||
|
||||
@@ -455,7 +455,7 @@ private:
|
||||
* \brief Closes the interface to the animator.
|
||||
*
|
||||
*/
|
||||
void StopAnimation ();
|
||||
void StopAnimation (bool onlyAnimation = false);
|
||||
|
||||
void DevTxTrace (std::string context,
|
||||
Ptr<const Packet> p,
|
||||
|
||||
Reference in New Issue
Block a user