Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7444 in orxonox.OLD for branches/network/src/lib/lang


Ignore:
Timestamp:
Apr 29, 2006, 1:57:48 PM (19 years ago)
Author:
rennerc
Message:

new network system implemented. yet with a lot of empty function bodys

Location:
branches/network/src/lib/lang
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/lang/base_object.cc

    r7230 r7444  
    177177
    178178}
    179 
    180 /**
    181  * Writes data from network containing information about the state
    182  * @param data pointer to data
    183  * @param length length of data
    184  * @param sender hostID of sender
    185  */
    186 int BaseObject::writeState( const byte * data, int length, int sender )
    187 {
    188   SYNCHELP_READ_BEGIN();
    189 
    190   SYNCHELP_READ_STRING( this->objectName, NWT_BO_NAME );
    191 
    192   return SYNCHELP_READ_N;
    193 }
    194 
    195 /**
    196  * data copied in data will bee sent to another host
    197  * @param data pointer to data
    198  * @param maxLength max length of data
    199  * @return the number of bytes writen
    200  */
    201 int BaseObject::readState( byte * data, int maxLength )
    202 {
    203   SYNCHELP_WRITE_BEGIN();
    204 
    205   //PRINTF(0)("objectname = %s\n", this->objectName);
    206   SYNCHELP_WRITE_STRING( this->objectName, NWT_BO_NAME );
    207 
    208   return SYNCHELP_WRITE_N;
    209 }
  • branches/network/src/lib/lang/base_object.h

    r7221 r7444  
    5151  bool operator==(ClassID classID) { return this->isA(classID); };
    5252
    53   int       writeState(const byte* data, int length, int sender);
    54   int       readState(byte* data, int maxLength );
    55 
    5653 protected:
    5754   void setClassID(ClassID classID, const std::string& className);
     55   std::string        objectName;        //!< The name of this object
    5856
    5957 private:
    6058    std::string        className;        //!< the name of the class
    6159    long               classID;          //!< this is the id from the class_id.h enumeration
    62     std::string        objectName;       //!< The name of this object
    6360
    6461    ClassList*         classList;        //!< Pointer to the ClassList this Object is inside of
Note: See TracChangeset for help on using the changeset viewer.