port_power/TargetVer1b.h

Part of a series of examples on the different ways of using ports. See Port power tutorial.

// -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-

#ifndef TARGETVER1B_INC
#define TARGETVER1B_INC

#include <yarp/os/Bottle.h>

#include <yarp/os/begin_pack_for_net.h>
class Target {
public:
    Target() {
        tag = BOTTLE_TAG_LIST + BOTTLE_TAG_INT;
        len = 2;
    }

    NetInt32 tag;
    NetInt32 len;
    NetInt32 x;
    NetInt32 y;
} PACKED_FOR_NET;
#include <yarp/os/end_pack_for_net.h>

#endif
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines



Generated on Wed Jul 21 18:44:16 2010 for YARP by doxygen 1.6.1