Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

# Platform/UDPHandler.h

Go to the documentation of this file.

    00001 /**
    00002 * @file Platform/UDPHandler.h
    00003 *
    00004 * Inclusion of platform dependend process related classes and macros.
    00005 *
    00006 * @author <a href="mailto:robocup@m-wachter.de">Michael Wachter</a>
    00007 */
    00008
    00009
    00010
    00011 #ifdef APERIOS1_3_2
    00012 #include "Aperios1.3.2/UDPHandler.h"
    00013 #include "Aperios1.3.2/GTCamHandler.h"
    00014 #include "Aperios1.3.2/GTCamTimeSyncHandler.h"
    00015 #include "Aperios1.3.2/UDPBroadcastHandler.h"
    00016 #include "Aperios1.3.2/BroadCastStatusHandler.h"
    00017
    00018 #define NET_RECEIVER(type) \
    00019   NetReceiver<type> the##type##Receiver
    00020
    00021 #define INIT_NET_RECEIVER(type,blocking) \
    00022   the##type##Receiver()
    00023
    00024 #define INIT_GTCAM_HANDLER(worldstate,timeSyncHandler) \
    00025   theGTCamHandler.initGTCamHandler(&worldstate,&timeSyncHandler)
    00026
    00027 #define INIT_GTCAM_TIMESYNC_HANDLER(worldstate,image) \
    00028   theGTCamTimeSyncHandler.initGTCamTimeSyncHandler(&worldstate,&image)
    00029
    00030 #define NET_SENDER(type) \
    00031   NetSender<type> the##type##Sender
    00032
    00033 #define INIT_NET_SENDER(type,blocking) \
    00034   the##type##Sender()
    00035
    00036 #define UDP_HANDLER \
    00037   UDPHandler theUDPHandler
    00038
    00039 #define STATUSBROADCAST_HANDLER \
    00040   BroadCastStatusHandler theBroadCastStatusHandler
    00041
    00042 #define UDP_BROADCAST_HANDLER(type) \
    00043   UDPBroadcastHandler the##type##Handler;
    00044
    00045 #define GTCAM_HANDLER \
    00046   GTCamHandler theGTCamHandler
    00047
    00048 #define GTCAM_TIMESYNC_HANDLER \
    00049   GTCamTimeSyncHandler theGTCamTimeSyncHandler
    00050
    00051 #define INIT_UDP_HANDLER(type) \
    00052   theUDPHandler.addSenderAndReceiver(the##type##Sender, the##type##Receiver)
    00053
    00054 #define INIT_STATUSBROADCAST_HANDLER \
    00055   theBroadCastStatusHandler.initBroadCastStatusHandler()
    00056
    00057 #define START_UDP_BROADCAST_HANDLER(type,port) \
    00058   the##type##Handler.start(the##type##Receiver,port)
    00059
    00060 #define START_UDP_HANDLER \
    00061   theUDPHandler.start();
    00062
    00063
    00064
    00065 #endif
    00066
    00067
    00068 #ifdef _WIN32
    00069
    00070 #define NET_RECEIVER(type) \
    00071   Receiver<type> the##type##Receiver
    00072
    00073 #define INIT_NET_RECEIVER(type,blocking) \
    00074   the##type##Receiver(this,"Receiver." #type ".O",blocking)
    00075
    00076 #define NET_SENDER(type) \
    00077   Sender<type> the##type##Sender
    00078
    00079 #define INIT_NET_SENDER(type,blocking) \
    00080   the##type##Sender(this,"Sender." #type ".S",blocking)
    00081
    00082 #define UDP_HANDLER
    00083 #define GTCAM_TIMESYNC_HANDLER
    00084 #define GTCAM_HANDLER
    00085 #define STATUSBROADCAST_HANDLER
    00086 #define INIT_GTCAM_HANDLER(worldstate,timeSyncHandler)
    00087 #define INIT_GTCAM_TIMESYNC_HANDLER(worldstate,image)
    00088 #define INIT_UDP_HANDLER(type)
    00089 #define START_UDP_HANDLER
    00090 #define UDP_BROADCAST_HANDLER(type)
    00091 #define START_UDP_BROADCAST_HANDLER(type,port)
    00092
    00093 #endif