LEFT | RIGHT |
(no file at all) | |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2013 University of Washington | 3 * Copyright (c) 2013 University of Washington |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 // Chop off up to last token. | 111 // Chop off up to last token. |
112 pathWithoutLastToken = path.substr (0, lastSlash); | 112 pathWithoutLastToken = path.substr (0, lastSlash); |
113 | 113 |
114 // Save the last token without the last slash. | 114 // Save the last token without the last slash. |
115 lastToken = path.substr (lastSlash + 1, std::string::npos); | 115 lastToken = path.substr (lastSlash + 1, std::string::npos); |
116 } | 116 } |
117 | 117 |
118 // See if there are any matches for the probe's path with the last | 118 // See if there are any matches for the probe's path with the last |
119 // token removed. | 119 // token removed. |
120 Config::MatchContainer matches = Config::LookupMatches (pathWithoutLastToken); | 120 Config::MatchContainer matches = Config::LookupMatches (pathWithoutLastToken); |
121 uint32_t matchCount = matches.GetN (); | 121 std::size_t matchCount = matches.GetN (); |
122 | 122 |
123 // This is used to make the probe's context be unique. | 123 // This is used to make the probe's context be unique. |
124 std::string matchIdentifier; | 124 std::string matchIdentifier; |
125 | 125 |
126 /// This is used to indicate if multiple aggregators are needed. | 126 /// This is used to indicate if multiple aggregators are needed. |
127 bool onlyOneAggregator; | 127 bool onlyOneAggregator; |
128 | 128 |
129 // Hook one or more probes and one or more aggregators together. | 129 // Hook one or more probes and one or more aggregators together. |
130 if (matchCount == 1 && pathHasNoWildcards) | 130 if (matchCount == 1 && pathHasNoWildcards) |
131 { | 131 { |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 std::string adaptorTraceSource = "Output"; | 564 std::string adaptorTraceSource = "Output"; |
565 m_timeSeriesAdaptorMap[probeContext]->TraceConnect | 565 m_timeSeriesAdaptorMap[probeContext]->TraceConnect |
566 (adaptorTraceSource, | 566 (adaptorTraceSource, |
567 probeContext, | 567 probeContext, |
568 MakeCallback (&FileAggregator::Write2d, | 568 MakeCallback (&FileAggregator::Write2d, |
569 m_aggregatorMap[probeContext])); | 569 m_aggregatorMap[probeContext])); |
570 } | 570 } |
571 | 571 |
572 } // namespace ns3 | 572 } // namespace ns3 |
573 | 573 |
LEFT | RIGHT |