HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CL_BinaryClipWriter.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: CL_BinaryClipWriter.h
7  *
8  * COMMENTS:
9  * This class writes to .bclip files.
10  */
11 
12 #ifndef __CL_BinaryClipWriter_h__
13 #define __CL_BinaryClipWriter_h__
14 
15 #include "CL_API.h"
16 #include "CL_ClipWriter.h"
17 
18 #include <UT/UT_StringArray.h>
19 
20 class UT_OStream;
21 class CL_ClipPrivateIO;
22 
24 {
25 public:
26  CL_BinaryClipWriter(bool force_noncommercial)
27  : myForceNonCommercialFlag(force_noncommercial)
28  {
29  }
30 
31  ~CL_BinaryClipWriter() override {}
32 
33  bool writeClip(const char *file_name, const CL_Clip &clip) override;
34  bool writeClip(UT_OStream &os, const CL_Clip &clip,
35  const char *file_name, const CL_ClipPrivateIO *priv = 0);
36  bool writeClip(UT_OStream &os, const CL_Clip &clip,
37  UT_StringArray& parms, const char *file_name,
38  const CL_ClipPrivateIO *priv = 0);
39 
40 private:
41  bool myForceNonCommercialFlag;
42 };
43 
44 #endif
virtual bool writeClip(const char *file_name, const CL_Clip &clip)=0
#define CL_API
Definition: CL_API.h:10
CL_BinaryClipWriter(bool force_noncommercial)
IMATH_INTERNAL_NAMESPACE_HEADER_ENTER IMATH_HOSTDEVICE IMATH_CONSTEXPR14 T clip(const T &p, const Box< T > &box) IMATH_NOEXCEPT
Definition: ImathBoxAlgo.h:29