src/core/trace-resolver.h
changeset 1399 5945e92014e2
parent 1397 fdc239ba72a7
child 1419 ac2a81821ab5
equal deleted inserted replaced
1398:607b6e86e143 1399:5945e92014e2
    71   virtual void Disconnect (std::string path, CallbackBase const &cb) = 0;
    71   virtual void Disconnect (std::string path, CallbackBase const &cb) = 0;
    72 
    72 
    73   class SourceCollection
    73   class SourceCollection
    74   {
    74   {
    75   public:
    75   public:
    76     void Print (std::ostream &os) const;
       
    77     void PrintDoxygen (std::ostream &os) const;
       
    78     void AddUnique (std::string path, 
       
    79                     const TraceContext &context,
       
    80                     const TraceDoc &doc);
       
    81   private:
       
    82     struct Source
    76     struct Source
    83     {
    77     {
    84       std::string path;
    78       std::string path;
    85       TraceContext context;
    79       TraceContext context;
    86       TraceDoc doc;
    80       TraceDoc doc;
    87     };
    81     };
       
    82     typedef std::vector<struct Source>::const_iterator Iterator;
       
    83     void AddUnique (std::string path, 
       
    84                     const TraceContext &context,
       
    85                     const TraceDoc &doc);
       
    86 
       
    87     Iterator Begin (void) const;
       
    88     Iterator End (void) const;
       
    89   private:
    88     typedef std::vector<struct Source> SourceVector;
    90     typedef std::vector<struct Source> SourceVector;
    89     SourceVector m_sources;
    91     SourceVector m_sources;
    90   };
    92   };
    91   /**
    93   /**
    92    * \param path the path to the current recursive level.
    94    * \param path the path to the current recursive level.