Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Examples  

PacketFactory.h File Reference

#include <gadget/gadgetConfig.h>
#include <string>
#include <vpr/Util/Factory.h>
#include <vpr/Util/Singleton.h>
#include <cluster/Packets/Packet.h>

Include dependency graph for PacketFactory.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  cluster

Defines

#define CLUSTER_REGISTER_CLUSTER_PACKET_CREATOR(PacketType)
 Registers a creator for the Packet base classe. More...


Define Documentation

#define CLUSTER_REGISTER_CLUSTER_PACKET_CREATOR PacketType   
 

Value:

class PacketType; \
const bool reg_ctr_ ## PacketType = \
   cluster::PacketFactory::instance()-> \
      registerCreator(PacketType::getPacketFactoryType(), \
                      vpr::CreateProduct<cluster::Packet, PacketType>);
Registers a creator for the Packet base classe.

Precondition:
Requires that the method std::string getPacketFactoryType() be defined for class PacketType.
Ex: VRJ_REGISTER_GL_SIM_INTERFACE_CREATOR(simulators::PySim)

Definition at line 50 of file PacketFactory.h.


Generated on Sun May 2 14:26:19 2004 for Gadgeteer by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002