RixRIBParser.h Source File

RixRIBParser.h
1 #ifndef RixRIBParser_h
2 #define RixRIBParser_h
3 /* $Revision: #1 $ $Date: 2015/04/23 $ */
4 /*
5 # ------------------------------------------------------------------------------
6 #
7 # Copyright (c) 2006-2012 Pixar Animation Studios. All rights reserved.
8 #
9 # The information in this file (the "Software") is provided for the
10 # exclusive use of the software licensees of Pixar. Licensees have
11 # the right to incorporate the Software into other products for use
12 # by other authorized software licensees of Pixar, without fee.
13 # Except as expressly permitted herein, the Software may not be
14 # disclosed to third parties, copied or duplicated in any form, in
15 # whole or in part, without the prior written permission of
16 # Pixar Animation Studios.
17 #
18 # The copyright notices in the Software and this entire statement,
19 # including the above license grant, this restriction and the
20 # following disclaimer, must be included in all copies of the
21 # Software, in whole or in part, and all permitted derivative works of
22 # the Software, unless such copies or derivative works are solely
23 # in the form of machine-executable object code generated by a
24 # source language processor.
25 #
26 # PIXAR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
27 # ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT
28 # SHALL PIXAR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES
29 # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
30 # WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
31 # ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
32 # SOFTWARE.
33 #
34 # Pixar
35 # 1200 Park Ave
36 # Emeryville CA 94608
37 #
38 # ------------------------------------------------------------------------------
39 */
40 #include "RixInterfaces.h"
41 #include "RifPlugin.h"
42 
92 class RixRIBParser : public RixInterface
93 {
94 public:
95 
97  virtual int Begin(const RifFilter *)=0;
98 
100  virtual int ParseRIBFile(const char *filename)=0;
101 
103  virtual int ParseRIBBuffer(const char *buffer)=0;
104 
106  virtual int End()=0;
107 
109  virtual int GetDeclaration(RtToken t,
110  RifTokenType*, RifTokenDetail* , int *alen)=0;
111 
112 protected:
115  virtual ~RixRIBParser() {}
116 };
117 
118 #endif