HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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_NonCopyable.h"
19 #include "UT_String.h"
20 
21 
22 class UT_Fifo;
23 
24 typedef void (*UT_FifoCallback)(const char *a, int len, void *data);
25 typedef UT_Fifo *(*UT_FifoCreator)(UT_FifoCallback func, void *data);
26 typedef UT_Fifo *(*UT_NetFifoCreator)(UT_String,int,UT_FifoCallback func,void *data);
27 
29 {
30 
31 public:
32 
34  UT_Fifo(UT_String address,int port, UT_FifoCallback func, void *data);
35  virtual ~UT_Fifo();
36 
38 
39  virtual int open(const char *name);
40  virtual int open();
41 
42  virtual void connect();
43 
44  virtual void close();
45 
46  virtual int isValid();
47 };
48 
49 //
50 // A round-about way of creating subclass versions without direct
51 // dependencies
52 
55 
57 UT_API extern UT_Fifo * UTgetNewNetFifo(UT_String address, int port,
58  UT_FifoCallback func, void *data);
59 
60 #endif
61 
typedef int(APIENTRYP RE_PFNGLXSWAPINTERVALSGIPROC)(int)
void
Definition: png.h:1083
GLboolean * data
Definition: glcorearb.h:131
UT_API UT_Fifo * UTgetNewNetFifo(UT_String address, int port, UT_FifoCallback func, void *data)
GLboolean GLboolean GLboolean GLboolean a
Definition: glcorearb.h:1222
#define UT_API
Definition: UT_API.h:14
void close() override
UT_API void UTsetNetFifoCreator(UT_NetFifoCreator func)
int open(float queuesize) override
UT_Fifo *(* UT_NetFifoCreator)(UT_String, int, UT_FifoCallback func, void *data)
Definition: UT_Fifo.h:26
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
UT_Fifo *(* UT_FifoCreator)(UT_FifoCallback func, void *data)
Definition: UT_Fifo.h:25
GLuint const GLchar * name
Definition: glcorearb.h:786
GLenum func
Definition: glcorearb.h:783
UT_API UT_Fifo * UTgetNewFifo(UT_FifoCallback func, void *data)
void(* UT_FifoCallback)(const char *a, int len, void *data)
Definition: UT_Fifo.h:24
UT_API void UTsetFifoCreator(UT_FifoCreator func)
Definition: format.h:895