HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_Fifo.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: UT_Fifo.h ( UT Library, C++)
7  *
8  * COMMENTS:
9  *
10  * A generic parent class for maintaining a list of fifo
11  * event generators
12  */
13 
14 #ifndef __UT_Fifo__
15 #define __UT_Fifo__
16 
17 #include "UT_API.h"
18 #include "UT_String.h"
19 
20 
21 class UT_Fifo;
22 
23 typedef void (*UT_FifoCallback)(const char *a, int len, void *data);
24 typedef UT_Fifo *(*UT_FifoCreator)(UT_FifoCallback func, void *data);
25 typedef UT_Fifo *(*UT_NetFifoCreator)(UT_String,int,UT_FifoCallback func,void *data);
26 
28 {
29 
30 public:
31 
33  UT_Fifo(UT_String address,int port, UT_FifoCallback func, void *data);
34  virtual ~UT_Fifo();
35 
36  virtual int open(const char *name);
37  virtual int open();
38 
39  virtual void connect();
40 
41  virtual void close();
42 
43  virtual int isValid();
44 };
45 
46 //
47 // A round-about way of creating subclass versions without direct
48 // dependencies
49 
52 
54 UT_API extern UT_Fifo * UTgetNewNetFifo(UT_String address, int port,
55  UT_FifoCallback func, void *data);
56 
57 #endif
58 
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
UT_API UT_Fifo * UTgetNewNetFifo(UT_String address, int port, UT_FifoCallback func, void *data)
GLboolean GLboolean GLboolean GLboolean a
Definition: glcorearb.h:1221
#define UT_API
Definition: UT_API.h:12
UT_API void UTsetNetFifoCreator(UT_NetFifoCreator func)
UT_Fifo *(* UT_NetFifoCreator)(UT_String, int, UT_FifoCallback func, void *data)
Definition: UT_Fifo.h:25
UT_Fifo *(* UT_FifoCreator)(UT_FifoCallback func, void *data)
Definition: UT_Fifo.h:24
GLboolean * data
Definition: glcorearb.h:130
GLuint const GLchar * name
Definition: glcorearb.h:785
virtual int open(float queuesize)
GLenum func
Definition: glcorearb.h:782
UT_API UT_Fifo * UTgetNewFifo(UT_FifoCallback func, void *data)
typedef int
Definition: png.h:1175
virtual void close()
void(* UT_FifoCallback)(const char *a, int len, void *data)
Definition: UT_Fifo.h:23
UT_API void UTsetFifoCreator(UT_FifoCreator func)