OLD | NEW |
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) 2009 University of Washington | 3 * Copyright (c) 2009 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 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 else | 672 else |
673 { | 673 { |
674 node = i->second; | 674 node = i->second; |
675 remaining = remaining.substr (offset + 1); | 675 remaining = remaining.substr (offset + 1); |
676 NS_LOG_LOGIC ("Intermediate segment parsed"); | 676 NS_LOG_LOGIC ("Intermediate segment parsed"); |
677 continue; | 677 continue; |
678 } | 678 } |
679 } | 679 } |
680 } | 680 } |
681 | 681 |
| 682 #ifndef _WIN32 |
682 NS_ASSERT_MSG (node, "NamesPriv::Find(): Internal error: this can't happen"); | 683 NS_ASSERT_MSG (node, "NamesPriv::Find(): Internal error: this can't happen"); |
683 return 0; | 684 return 0; |
| 685 #endif |
684 } | 686 } |
685 | 687 |
686 Ptr<Object> | 688 Ptr<Object> |
687 NamesPriv::Find (std::string path, std::string name) | 689 NamesPriv::Find (std::string path, std::string name) |
688 { | 690 { |
689 NS_LOG_FUNCTION (this << path << name); | 691 NS_LOG_FUNCTION (this << path << name); |
690 | 692 |
691 if (path == "/Names") | 693 if (path == "/Names") |
692 { | 694 { |
693 return Find (Ptr<Object> (0, false), name); | 695 return Find (Ptr<Object> (0, false), name); |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
851 } | 853 } |
852 | 854 |
853 Ptr<Object> | 855 Ptr<Object> |
854 Names::FindInternal (Ptr<Object> context, std::string name) | 856 Names::FindInternal (Ptr<Object> context, std::string name) |
855 { | 857 { |
856 NS_LOG_FUNCTION (context << name); | 858 NS_LOG_FUNCTION (context << name); |
857 return NamesPriv::Get ()->Find (context, name); | 859 return NamesPriv::Get ()->Find (context, name); |
858 } | 860 } |
859 | 861 |
860 } // namespace ns3 | 862 } // namespace ns3 |
OLD | NEW |