Changeset 12774 for source/ariba/utility/transport/messages
- Timestamp:
- Mar 26, 2014, 6:44:32 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/utility/transport/messages/message.hpp
r12773 r12774 69 69 /// Create a new message 70 70 inline message_t() : 71 imsg(), 72 MAGIC_IDENTIFIER("!!message_t-MAGIC_IDENTIFIER!!"), // XXX Mario: Debugging 73 MAGIC_NUMBER(421337) // XXX Mario: Debugging 71 imsg() 74 72 { 75 73 } … … 77 75 /// Copy message 78 76 inline message_t(const message_t& msg) : 79 imsg(msg.imsg), 80 MAGIC_IDENTIFIER(msg.MAGIC_IDENTIFIER), // XXX 81 MAGIC_NUMBER(msg.MAGIC_NUMBER) // XXX 77 imsg(msg.imsg) 82 78 83 79 { 84 assert ( msg.MAGIC_NUMBER == 421337 ); // XXX85 86 80 if ( imsg ) 87 81 imsg->owner = NULL; … … 96 90 inline message_t& operator=(const message_t& msg) 97 91 { 98 assert ( msg.MAGIC_NUMBER == 421337 ); // XXX99 100 92 if ( msg.imsg ) 101 93 { … … 105 97 else 106 98 { 107 // TODO: is this a valid state? (since it can definitely been reached...)108 99 imsg.reset(); 109 100 } … … 274 265 mlength_t index, length; 275 266 276 // XXX Mario: Debugging277 const std::string MAGIC_IDENTIFIER;278 const int MAGIC_NUMBER;279 267 public: 280 268 inline imsg_t() : 281 269 owner(NULL), 282 270 index(0), 283 length(0), 284 MAGIC_IDENTIFIER("!!imsg_t-MAGIC_IDENTIFIER!!"), // XXX Mario: Debugging 285 MAGIC_NUMBER(133742) 271 length(0) 286 272 { 287 273 } 288 274 inline imsg_t(const imsg_t& imsg) : 289 index(imsg.index), length(imsg.length), 290 MAGIC_IDENTIFIER(imsg.MAGIC_IDENTIFIER), // XXX 291 MAGIC_NUMBER(imsg.MAGIC_NUMBER) // XXX 275 index(imsg.index), length(imsg.length) 292 276 { 293 277 for (mlength_t i = 0; i < length; i++) … … 359 343 length--; 360 344 } 361 }; 345 }; // [ class imsg_t ] -- inner class 346 362 347 /// own a new message 363 348 inline imsg_t& own() { … … 368 353 return *imsg; 369 354 } 370 boost::shared_ptr<imsg_t> imsg; 371 372 // XXX Mario: Debugging 373 public: 374 const std::string MAGIC_IDENTIFIER; 375 const int MAGIC_NUMBER; 376 }; 355 boost::shared_ptr<imsg_t> imsg; 356 }; // [ class message_t ] -- outer class 377 357 378 358 inline message_t operator+(const message_t& lhs, const message_t& rhs) {
Note:
See TracChangeset
for help on using the changeset viewer.