HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SOP_NodeFlags.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: Flags for a sop (C++)
7  *
8  * COMMENTS:
9  *
10  */
11 
12 #ifndef __SOP_NodeFlags_h__
13 #define __SOP_NodeFlags_h__
14 
15 #include "SOP_API.h"
16 #include <iosfwd>
17 
18 class UT_IStream;
19 
21 {
22 public:
23  SOP_NodeFlags() { setDefaults(); }
25 
26  void setDefaults();
27 
28  void save(std::ostream &os, int binary = 0) const;
29  bool load(UT_IStream &is, const char *path=0);
30 
31  void setInstance(bool onOff) { instance = onOff; }
32  void setNeedGuide1(bool onOff) { needGuide1 = onOff; }
33  void setNeedGuide2(bool onOff) { needGuide2 = onOff; }
34  void setManagesDataIDs(bool onOff) { managesDataIDs = onOff; }
35 
36  bool getInstance() const { return instance; }
37  bool getNeedGuide1() const { return needGuide1; }
38  bool getNeedGuide2() const { return needGuide2; }
39  bool getManagesDataIDs() const { return managesDataIDs; }
40 
41 private:
42  bool instance:1,
43  needGuide1:1,
44  needGuide2:1,
45  managesDataIDs:1;
46 };
47 
48 #endif
void setNeedGuide2(bool onOff)
Definition: SOP_NodeFlags.h:33
void setNeedGuide1(bool onOff)
Definition: SOP_NodeFlags.h:32
void setInstance(bool onOff)
Definition: SOP_NodeFlags.h:31
const GLuint GLenum const void * binary
Definition: glcorearb.h:1923
GLsizei const GLchar *const * path
Definition: glcorearb.h:3340
bool getNeedGuide1() const
Definition: SOP_NodeFlags.h:37
GLsizei GLsizei GLchar * source
Definition: glcorearb.h:802
bool getNeedGuide2() const
Definition: SOP_NodeFlags.h:38
void setManagesDataIDs(bool onOff)
Definition: SOP_NodeFlags.h:34
bool getInstance() const
Definition: SOP_NodeFlags.h:36
#define SOP_API
Definition: SOP_API.h:10
bool getManagesDataIDs() const
Definition: SOP_NodeFlags.h:39