Changeset 7468 for source/ariba/SpoVNetProperties.cpp
- Timestamp:
- Jan 25, 2010, 10:50:57 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/SpoVNetProperties.cpp
r3690 r7468 44 44 45 45 SpoVNetProperties::SpoVNetProperties() : 46 name( Name::random() ), type( CHORD_OVERLAY ), idLength( 192 ), 47 initiator( NodeID::UNSPECIFIED ), hidden( false ) { 48 49 id = name.toSpoVNetId(); 46 type( CHORD_OVERLAY ){ 50 47 } 51 48 52 49 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 ) { 50 type( copy.type ){ 56 51 } 57 52 58 53 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 54 } 76 55 … … 79 58 } 80 59 81 bool SpoVNetProperties::isHidden() const {82 return hidden;83 }84 85 60 std::string SpoVNetProperties::toString() const { 86 61 std::ostringstream buf; 87 62 buf << "spovnet" 88 << " name=" << name.toString() 89 << " id=" << id.toString() 90 << " overlay_type=" << type 91 << " id_length=" << idLength 92 << " initiator=" << initiator 93 << " hidden=" << hidden; 63 << " overlay_type=" << type; 94 64 return buf.str(); 95 65 }
Note:
See TracChangeset
for help on using the changeset viewer.