Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7230 in orxonox.OLD for trunk/src/lib/lang/base_object.cc


Ignore:
Timestamp:
Mar 21, 2006, 3:20:36 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the std::branche back

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/lang/base_object.cc

    r7221 r7230  
    186186int BaseObject::writeState( const byte * data, int length, int sender )
    187187{
    188   /// FIXME STD
    189 
    190   /*  SYNCHELP_READ_BEGIN();
    191 
    192   if ( !objectName.empty() )
    193   {
    194     delete[] objectName;
    195     objectName = NULL;
    196   }
    197   SYNCHELP_READ_STRINGM( this->objectName, NWT_BO_NAME );
    198   if ( this->objectName && !strcmp(this->objectName, "") )
    199   {
    200     delete[] this->objectName;
    201     this->objectName = NULL;
    202   }
    203 
    204   return SYNCHELP_READ_N;*/
     188  SYNCHELP_READ_BEGIN();
     189
     190  SYNCHELP_READ_STRING( this->objectName, NWT_BO_NAME );
     191
     192  return SYNCHELP_READ_N;
    205193}
    206194
     
    213201int BaseObject::readState( byte * data, int maxLength )
    214202{
    215 ///FIXME STD
    216   /*  SYNCHELP_WRITE_BEGIN();
     203  SYNCHELP_WRITE_BEGIN();
    217204
    218205  //PRINTF(0)("objectname = %s\n", this->objectName);
    219206  SYNCHELP_WRITE_STRING( this->objectName, NWT_BO_NAME );
    220207
    221   return SYNCHELP_WRITE_N;*/
    222 }
     208  return SYNCHELP_WRITE_N;
     209}
Note: See TracChangeset for help on using the changeset viewer.