Changeset 2440 for source/ariba/SpoVNetProperties.cpp
- Timestamp:
- Feb 17, 2009, 12:07:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/SpoVNetProperties.cpp
r2409 r2440 43 43 const SpoVNetProperties SpoVNetProperties::DEFAULT; 44 44 45 SpoVNetProperties::SpoVNetProperties() : 46 name( Name::random() ), type( ONE_HOP_OVERLAY ), idLength( 192 ), 47 initiator( NodeID::UNSPECIFIED ), hidden( false ) { 48 49 id = name.toSpoVNetId(); 45 50 } 51 52 SpoVNetProperties::SpoVNetProperties(const SpoVNetProperties& copy) : 53 name( copy.name ), id( copy.id ), 54 type( copy.type ), idLength( copy.idLength ), 55 initiator( copy.initiator ), hidden( copy.hidden ) { 56 } 57 58 SpoVNetProperties::~SpoVNetProperties() { 59 } 60 61 const Name& SpoVNetProperties::getName() const { 62 return name; 63 } 64 65 const SpoVNetID& SpoVNetProperties::getId() const { 66 return id; 67 } 68 69 const NodeID& SpoVNetProperties::getInitiator() const { 70 return initiator; 71 } 72 73 uint16_t SpoVNetProperties::getIdentifierLength() const { 74 return idLength; 75 } 76 77 const SpoVNetProperties::OverlayType SpoVNetProperties::getBaseOverlayType() const { 78 return (OverlayType)type; 79 } 80 81 bool SpoVNetProperties::isHidden() const { 82 return hidden; 83 } 84 85 std::string SpoVNetProperties::toString() const { 86 std::ostringstream buf; 87 buf << "spovnet" 88 << " name=" << name.toString() 89 << " id=" << id.toString() 90 << " overlay_type=" << type 91 << " id_length=" << idLength 92 << " initiator=" << initiator 93 << " hidden=" << hidden; 94 return buf.str(); 95 } 96 97 } // namespace ariba
Note:
See TracChangeset
for help on using the changeset viewer.