Rev | Line | |
---|
[3597] | 1 | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ |
---|
| 2 | /* |
---|
| 3 | * Copyright (c) 2004-2013 HUBzero Foundation, LLC |
---|
| 4 | * |
---|
| 5 | * Authors: |
---|
| 6 | * Wei Qiao <qiaow@purdue.edu> |
---|
| 7 | * Insoo Woo <iwoo@purdue.edu> |
---|
| 8 | * George A. Howlett <gah@purdue.edu> |
---|
| 9 | * Leif Delgass <ldelgass@purdue.edu> |
---|
| 10 | */ |
---|
[4889] | 11 | #ifndef NV_COMMAND_H |
---|
| 12 | #define NV_COMMAND_H |
---|
[3597] | 13 | |
---|
[4874] | 14 | #include <unistd.h> |
---|
| 15 | |
---|
[3597] | 16 | #include <tcl.h> |
---|
| 17 | |
---|
| 18 | namespace Rappture { |
---|
| 19 | class Buffer; |
---|
| 20 | } |
---|
| 21 | |
---|
[4874] | 22 | namespace nv { |
---|
| 23 | |
---|
| 24 | class ReadBuffer; |
---|
[4889] | 25 | class Volume; |
---|
[4874] | 26 | |
---|
| 27 | extern ssize_t SocketWrite(const void *bytes, size_t len); |
---|
| 28 | |
---|
| 29 | extern bool SocketRead(char *bytes, size_t len); |
---|
| 30 | |
---|
| 31 | extern int processCommands(Tcl_Interp *interp, |
---|
| 32 | ReadBuffer *inBufPtr, |
---|
| 33 | int fdOut); |
---|
| 34 | |
---|
| 35 | extern int handleError(Tcl_Interp *interp, |
---|
| 36 | int status, |
---|
| 37 | int fdOut); |
---|
| 38 | |
---|
| 39 | extern void initTcl(Tcl_Interp *interp, ClientData clientData); |
---|
| 40 | |
---|
[3597] | 41 | extern int GetAxisFromObj(Tcl_Interp *interp, Tcl_Obj *objPtr, |
---|
| 42 | int *axisVal); |
---|
| 43 | |
---|
| 44 | extern int GetBooleanFromObj(Tcl_Interp *interp, Tcl_Obj *objPtr, |
---|
| 45 | bool *boolVal); |
---|
| 46 | |
---|
| 47 | extern int GetDataStream(Tcl_Interp *interp, Rappture::Buffer &buf, int nBytes); |
---|
| 48 | |
---|
| 49 | extern int GetFloatFromObj(Tcl_Interp *interp, Tcl_Obj *objPtr, |
---|
| 50 | float *floatVal); |
---|
| 51 | |
---|
[4874] | 52 | } |
---|
[3597] | 53 | |
---|
| 54 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.