Revision 0cee33d5
| Protocol/CMakeLists.txt | ||
|---|---|---|
| 21 | 21 |
include_directories(${PROTOBUF_INCLUDE_DIRS})
|
| 22 | 22 |
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
| 23 | 23 |
set (PROTOBUF_IMPORT_DIRS specification) |
| 24 |
PROTOBUF_GENERATE_CPP(PROTO_SRCS PROTO_HDRS specification/basic_types.proto specification/eye_data.proto specification/gaze2d_data.proto specification/gaze3d_data.proto) |
|
| 24 |
PROTOBUF_GENERATE_CPP(PROTO_SRCS PROTO_HDRS specification/basic_types.proto specification/eye_data.proto specification/gaze2d_data.proto specification/gaze3d_data.proto specification/messages.proto)
|
|
| 25 | 25 |
|
| 26 | 26 |
# add the library |
| 27 | 27 |
add_library(GazeTkProtocol STATIC src_cpp/protocol.cc ${PROTO_SRCS} ${PROTO_HDRS})
|
| Protocol/specification/messages.proto | ||
|---|---|---|
| 1 |
syntax = "proto2"; |
|
| 2 |
// |
|
| 3 |
// Messages |
|
| 4 |
// |
|
| 5 |
// Defines the message structures used within the gazetk protocol |
|
| 6 |
// |
|
| 7 |
|
|
| 8 |
import "basic_types.proto"; |
|
| 9 |
import "gaze2d_data.proto"; |
|
| 10 |
import "gaze3d_data.proto"; |
|
| 11 |
import "eye_data.proto"; |
|
| 12 |
|
|
| 13 |
message Message {
|
|
| 14 |
required string uuid = 1; // A unique ID to identify the message |
|
| 15 |
oneof content {
|
|
| 16 |
gazetk.protocol.EyeSampe eyesample = 10 |
|
| 17 |
gazetk.protocol.Gaze2DSample gaze2dsample = 12; |
|
| 18 |
gazetk.protocol.Gaze2DFixation gaze2dfixation = 13; |
|
| 19 |
} |
|
| 20 |
} |
|
| 21 |
|
|
Also available in: Unified diff