コード例 #1
0
ファイル: yarpbottle.cpp プロジェクト: BRKMYR/yarp
YARP_DEFINE(int) __yarpBottleWrite(yarpWriterPtr connection, void *client) {
    return !((Bottle *)client)->write(YARP_WRITER(connection));
}
コード例 #2
0
ファイル: yarpwriter.cpp プロジェクト: AbuMussabRaja/yarp
    /**
     *
     * Write an integer to a connection.
     *
     */
YARP_DEFINE(int) yarpWriterAppendInt(yarpWriterPtr writer, int data) {
    YARP_OK(writer);
    YARP_WRITER(writer).appendInt(data);
    return YARP_WRITER(writer).isError()?-1:0;
}
コード例 #3
0
ファイル: yarpbottle.cpp プロジェクト: BRKMYR/yarp
YARP_DEFINE(int) yarpBottleWrite(yarpBottlePtr bottle,
                                 yarpWriterPtr connection) {
    return !YARP_BOTTLE(bottle).write(YARP_WRITER(connection));
}