HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OBJ_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 __OBJ_NodeFlags_h__
13 #define __OBJ_NodeFlags_h__
14 
15 #include "OBJ_API.h"
16 #include <iosfwd>
17 
18 class UT_IStream;
19 
21 {
22 public:
23  OBJ_NodeFlags() { setDefaults(); }
24 
25  void setDefaults();
26 
27  void save(std::ostream &os, int binary = 0) const;
28  bool load(UT_IStream &is);
29 
31  { return myDisplayOriginFlag; }
33  { myDisplayOriginFlag = o; }
34 
36  { return myParentingErrorFlag; }
37 
39  { myParentingErrorFlag = o; }
40 
41 private:
42  void loadBinaryFlag(int id, int onOff);
43  void loadAsciiFlag(const char *name, int onOff);
44 
45  char myDisplayOriginFlag;
46  char myParentingErrorFlag;
47 };
48 
49 #endif
int getParentingErrorFlag() const
Definition: OBJ_NodeFlags.h:35
const GLuint GLenum const void * binary
Definition: glcorearb.h:1923
GLuint const GLchar * name
Definition: glcorearb.h:785
void setParentingErrorFlag(int o)
Definition: OBJ_NodeFlags.h:38
#define OBJ_API
Definition: OBJ_API.h:10
void setDisplayOriginFlag(int o)
Definition: OBJ_NodeFlags.h:32
int getDisplayOriginFlag() const
Definition: OBJ_NodeFlags.h:30