Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5807 in orxonox.OLD for branches


Ignore:
Timestamp:
Nov 28, 2005, 7:36:02 PM (19 years ago)
Author:
patrick
Message:

network: reformatted some files

Location:
branches/network/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/synchronizeable.cc

    r5806 r5807  
    1919
    2020/**
    21                    \brief default constructor
     21 * default constructor
    2222 */
    2323Synchronizeable::Synchronizeable(const char* name)
    2424{
    25   this->name = name;
     25  this->setName(name);
    2626}
    2727
    2828/**
    29                    \brief default destructor deletes all unneded stuff
     29 * default destructor deletes all unneded stuff
    3030 */
    3131Synchronizeable::~Synchronizeable()
    32 {
     32{}
     33
     34/**
     35 *  write data to NetworkStream
     36 */
     37void Synchronizeable::writeBytes(const byte* data, int length)
     38{}
     39
     40/**
     41 *  read data from NetworkStream
     42 */
     43int Synchronizeable::readBytes(byte* data) const
     44{}
    3345
    3446
     47void Synchronizeable::writeDebug() const
     48{}
    3549
    3650
    37 }
    38 
    39 /**
    40                           \brief write data to NetworkStream
    41  */
    42  void Synchronizeable::writeBytes(const byte* data, int length)
    43 {
    44 
    45 
    46 
    47 }
    48 
    49 
    50 /**
    51                                  \brief read data from NetworkStream
    52  */
    53  int Synchronizeable::readBytes(byte* data) const
    54 {
    55 
    56 
    57 
    58 
    59 }
    60 
    61  void Synchronizeable::writeDebug() const
    62 {
    63 
    64 }
    65 
    66  void Synchronizeable::readDebug() const
    67 {
    68 
    69 
    70 
    71 
    72 }
     51void Synchronizeable::readDebug() const
     52{}
  • branches/network/src/lib/network/synchronizeable.h

    r5806 r5807  
    2222    virtual void      readDebug() const;
    2323
    24     inline const char* getName() const { return this->name; }
    25 
    2624  private:
    2725
    2826    int               uniqueID;
    29     const char*       name;
    3027
    3128  };
  • branches/network/src/subprojects/network/simple_sync.h

    r5806 r5807  
    1111
    1212class SimpleSync : public Synchronizeable
    13 {
     13  {
    1414  public:
    1515    SimpleSync(const char* name);
     
    3131    byte* outData;
    3232    int   outLength;
    33 };
     33  };
    3434
    3535#endif /* _SIMPLE_SYNC */
    36 
Note: See TracChangeset for help on using the changeset viewer.