RenderMan API  23.0
RixDspy.h
Go to the documentation of this file.
1 /*
2 # ------------------------------------------------------------------------------
3 #
4 # Copyright (c) 1986-2019 Pixar. All rights reserved.
5 #
6 # The information in this file (the "Software") is provided for the exclusive
7 # use of the software licensees of Pixar ("Licensees"). Licensees have the
8 # right to incorporate the Software into other products for use by other
9 # authorized software licensees of Pixar, without fee. Except as expressly
10 # permitted herein, the Software may not be disclosed to third parties, copied
11 # or duplicated in any form, in whole or in part, without the prior written
12 # permission of Pixar.
13 #
14 # The copyright notices in the Software and this entire statement, including the
15 # above license grant, this restriction and the following disclaimer, must be
16 # included in all copies of the Software, in whole or in part, and all permitted
17 # derivative works of the Software, unless such copies or derivative works are
18 # solely in the form of machine-executable object code generated by a source
19 # language processor.
20 #
21 # PIXAR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
22 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL PIXAR BE
23 # LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
24 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
25 # OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
26 # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. IN NO CASE WILL
27 # PIXAR'S TOTAL LIABILITY FOR ALL DAMAGES ARISING OUT OF OR IN CONNECTION WITH
28 # THE USE OR PERFORMANCE OF THIS SOFTWARE EXCEED $50.
29 #
30 # Pixar
31 # 1200 Park Ave
32 # Emeryville CA 94608
33 #
34 # ------------------------------------------------------------------------------
35 */
36 
37 
38 #ifndef RixDspyServer_h
39 #define RixDspyServer_h
40 
41 #include "RixInterfaces.h" // for RixInterface
42 #include "ndspy.h"
43 
96 
107 {
110 };
111 
112 
113 //
114 // These are constructed via RixDspy::CreateServer()
116 public:
117 
118  virtual ~RixDspyServer() {};
119 
120  enum State
121  {
125  };
126 
127  virtual State GetState() const = 0;
128 };
129 
130 
131 class RixDspy : public RixInterface
132 {
133 public:
134 
136  typedef void (*ServerListener)(RixDspyServer const& server,
137  void* clientData);
138 
141 
143  virtual RixDspyServer* CreateServer(const char* in, const char* out) = 0;
144 
146  virtual RixDspyServer* CreateServer(const char* in, const char* out,
147  ServerListener listener,
148  void* clientData) = 0;
149 
151  virtual void ProcessCallbacks() = 0;
152 
156  virtual void SetDeliveryMode(RixDeliveryMode mode) = 0;
157 
160 
162  virtual PtDspyError
163  FindStringInParamList(
164  const char* string,
165  char** result,
166  int paramCount,
167  const UserParameter* parameters) = 0;
168 
170  virtual PtDspyError
171  FindIntInParamList(
172  const char* string,
173  int* result,
174  int paramCount,
175  const UserParameter* parameters) = 0;
176 
178  virtual PtDspyError
179  FindIntsInParamList(
180  const char* string,
181  int* resultCount,
182  int* result,
183  int paramCount,
184  const UserParameter* parameters) = 0;
185 
187  virtual PtDspyError
188  FindFloatInParamList(
189  const char* string,
190  float* result,
191  int paramCount,
192  const UserParameter* parameters) = 0;
193 
195  virtual PtDspyError
196  FindFloatsInParamList(
197  const char* string,
198  int* resultCount,
199  float* result,
200  int paramCount,
201  const UserParameter* parameters) = 0;
202 
204  virtual PtDspyError
205  RegisterDriverTable(
206  const char* name,
207  const PtDspyDriverFunctionTable* pTable) = 0;
208 
209  virtual PtDspyError
210  ReorderFormatting(
211  int formatCount,
212  PtDspyDevFormat* format,
213  int outFormatCount,
214  const PtDspyDevFormat* outFormat) = 0;
215 
217  virtual unsigned int
218  ByteCountForType(PtDspyUnsigned32 type) = 0;
219 
220 
221 protected:
223  virtual ~RixDspy() {}
224 };
225 
226 #endif
RixDspy()
Definition: RixDspy.h:222
RixDeliveryMode
Definition: RixDspy.h:106
Definition: ndspy.h:343
PtDspyError
Definition: ndspy.h:231
virtual ~RixDspyServer()
Definition: RixDspy.h:118
virtual State GetState() const =0
virtual ~RixDspy()
Definition: RixDspy.h:223
unsigned int PtDspyUnsigned32
Definition: ndspy.h:79