blob: 995746c2d18089b7a543a0314686fef024b3170d [file] [log] [blame]
Jeff Thompson9c41dfe2013-06-27 12:10:25 -07001/*
2 * Author: Jeff Thompson
3 *
4 * BSD license, See the LICENSE file for more information.
5 */
6
Jeff Thompsone6063512013-07-01 15:11:28 -07007#include <sstream>
Jeff Thompson9c41dfe2013-06-27 12:10:25 -07008#include "Name.hpp"
9
10using namespace std;
11
12namespace ndn {
13
Jeff Thompson48815112013-06-28 18:22:48 -070014Name::Name()
15{
16}
17
Jeff Thompsone6063512013-07-01 15:11:28 -070018std::string Name::to_uri()
19{
20 // TODO: implement fully.
21 ostringstream output;
22 for (int i = 0; i < components_.size(); ++i) {
23 output << "/";
24 for (int j = 0; j < components_[i].size(); ++j)
25 output << components_[i][j];
26 }
27
28 return output.str();
29}
30
Jeff Thompson9c41dfe2013-06-27 12:10:25 -070031}