LEFT | RIGHT |
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) 2008 INRIA | 3 * Copyright (c) 2008 INRIA |
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 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1215 is >> tidString; | 1215 is >> tidString; |
1216 bool ok = TypeId::LookupByNameFailSafe (tidString, &tid); | 1216 bool ok = TypeId::LookupByNameFailSafe (tidString, &tid); |
1217 if (!ok) | 1217 if (!ok) |
1218 { | 1218 { |
1219 is.setstate (std::ios_base::badbit); | 1219 is.setstate (std::ios_base::badbit); |
1220 } | 1220 } |
1221 return is; | 1221 return is; |
1222 } | 1222 } |
1223 | 1223 |
1224 | 1224 |
1225 #ifdef _WIN32 | |
1226 ATTRIBUTE_HELPER_CPP_LIB (TypeId, NS3CORELIB); | 1225 ATTRIBUTE_HELPER_CPP_LIB (TypeId, NS3CORELIB); |
1227 #else | |
1228 ATTRIBUTE_HELPER_CPP (TypeId); | |
1229 #endif | |
1230 | 1226 |
1231 bool operator < (TypeId a, TypeId b) | 1227 bool operator < (TypeId a, TypeId b) |
1232 { | 1228 { |
1233 return a.m_tid < b.m_tid; | 1229 return a.m_tid < b.m_tid; |
1234 } | 1230 } |
1235 | 1231 |
1236 } // namespace ns3 | 1232 } // namespace ns3 |
LEFT | RIGHT |