Changeset 5479 for source/ariba/utility/bootstrap/modules/periodicbroadcast
- Timestamp:
- Jul 30, 2009, 12:57:05 PM (15 years ago)
- Location:
- source/ariba/utility/bootstrap/modules/periodicbroadcast
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/utility/bootstrap/modules/periodicbroadcast/PeriodicBroadcast.h
r5465 r5479 181 181 void sendservice(Service service){ 182 182 183 PeriodicBroadcastMessage msg( service.name, service.info1, service.info2, service.info3 ); 183 PeriodicBroadcastMessage msg; 184 185 msg.setName( service.name ); 186 msg.setInfo1( service.info1 ); 187 msg.setInfo2( service.info2 ); 188 msg.setInfo3( service.info3 ); 189 184 190 Data data = data_serialize( msg, DEFAULT_V ); 185 191 uint8_t* pnt = data.getBuffer(); -
source/ariba/utility/bootstrap/modules/periodicbroadcast/PeriodicBroadcastMessage.cpp
r4851 r5479 44 44 vsznDefault(PeriodicBroadcastMessage); 45 45 46 PeriodicBroadcastMessage::PeriodicBroadcastMessage( 47 string _name, string _info1, string _info2, string _info3) 48 : name(_name), info1(_info1), info2(_info2), info3(_info3){ 46 PeriodicBroadcastMessage::PeriodicBroadcastMessage() 47 : name(""), info1(""), info2(""), info3(""){ 49 48 } 50 49 51 50 PeriodicBroadcastMessage::~PeriodicBroadcastMessage(){ 51 } 52 53 void PeriodicBroadcastMessage::setName(string _name){ 54 name = _name; 55 } 56 57 void PeriodicBroadcastMessage::setInfo1(string _info1){ 58 info1 = _info1; 59 } 60 61 void PeriodicBroadcastMessage::setInfo2(string _info2){ 62 info2 = _info2; 63 } 64 65 void PeriodicBroadcastMessage::setInfo3(string _info3){ 66 info3 = _info3; 52 67 } 53 68 -
source/ariba/utility/bootstrap/modules/periodicbroadcast/PeriodicBroadcastMessage.h
r4851 r5479 61 61 62 62 public: 63 PeriodicBroadcastMessage( string _name = "", string _info1 = "", string _info2 = "", string _info3 = "");63 PeriodicBroadcastMessage(); 64 64 virtual ~PeriodicBroadcastMessage(); 65 66 void setName(string _name); 67 void setInfo1(string _info1); 68 void setInfo2(string _info2); 69 void setInfo3(string _info3); 65 70 66 71 string getName();
Note:
See TracChangeset
for help on using the changeset viewer.