remove old trace system

This commit is contained in:
Mathieu Lacage committed 2008-03-02 22:53:11 +01:00
1 parent df41aef5da
commit bdba1171f3
2 files changed
-119

No files matched your search

-60
View File
@@ -23,33 +23,12 @@
#define NODE_LIST_H
#include <vector>
#include "ns3/trace-context-element.h"
#include "ns3/ptr.h"
namespace ns3 {
class Node;
class CallbackBase;
class TraceResolver;
/**
* \brief hold in a TraceContext the index of a node within a NodeList.
*/
class NodeListIndex : public TraceContextElement
{
public:
NodeListIndex ();
NodeListIndex (uint32_t index);
void Print (std::ostream &os);
static uint16_t GetUid (void);
/**
* \returns the index of the node within the NodeList
*/
uint32_t Get (void) const;
std::string GetTypeName (void) const;
private:
uint32_t m_index;
};
/**
@@ -85,45 +64,6 @@ public:
* \returns the Node associated to index n.
*/
static Ptr<Node> GetNode (uint32_t n);
/**
* \param name namespace regexp to match
* \param cb callback to connect
*
* Connect input callback to all trace sources which match
* the input namespace regexp.
* A tutorial which explains how to use this method can be
* found in the \ref tracing section.
*/
static void Connect (std::string name, const CallbackBase &cb);
/**
* \param name namespace regexp to match
* \param cb callback to connect
*
* Disconnect input callback from all trace sources which match
* the input namespace regexp.
*/
static void Disconnect (std::string name, const CallbackBase &cb);
/**
* \param os the output stream on which the content of each trace event should be
* dumped in ascii format.
*
* Enable _every_ trace source accessible from the NodeList and write to the
* output stream an ascii representation of each trace event.
* This method is very useful to get quick-and-dirty trace output from a
* simulation.
* More fancy tracing output could be generated with the ns3::NodeList::Connect
* method as explained in the \ref tracing section.
*/
static void TraceAll (std::ostream &os);
/**
* \returns the trace resolver used by the ns3::NodeList::Connect,
* ns3::NodeList::Disconnect, and, ns3::NodeList::TraceAll methods.
*
* Using this method directly is not really recommended. Instead, users
* should use one of the three methods ns3::NodeList::Connect,
* ns3::NodeList::Disconnect, or, ns3::NodeList::TraceAll methods.
*/
static Ptr<TraceResolver> GetTraceResolver (void);
};
}//namespace ns3