News SF.net Project Frequently Asked Questions Documentation Downloads Mailing Lists How to Contribute

SourceForge.net Logo

Changing the way games are made and played.

tnlNetBase.h File Reference

tnlNetBase.h File Reference

#include "tnlBitSet.h"
#include "tnlTypes.h"
#include "tnlPlatform.h"
#include "tnlAssert.h"
#include "tnlVector.h"

Namespaces

namespace  TNL

Defines

#define TNL_DECLARE_CLASS(className)
 The TNL_DECLARE_CLASS macro should be called within the declaration of any network class.

#define TNL_IMPLEMENT_CLASS(className)
 The TNL_IMPLEMENT_CLASS macro should be used for classes that will be auto-constructed by name only.


Define Documentation

#define TNL_DECLARE_CLASS className   ) 
 

Value:

static TNL::NetClassRepInstance<className> dynClassRep;      \
   virtual TNL::NetClassRep* getClassRep() const
The TNL_DECLARE_CLASS macro should be called within the declaration of any network class.

#define TNL_IMPLEMENT_CLASS className   ) 
 

Value:

TNL::NetClassRep* className::getClassRep() const { return &className::dynClassRep; } \
   TNL::NetClassRepInstance<className> className::dynClassRep(#className, 0, TNL::NetClassTypeNone, 0)
The TNL_IMPLEMENT_CLASS macro should be used for classes that will be auto-constructed by name only.