HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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, bool binary = false) const;
28  bool load(UT_IStream &is);
29 
30  bool getDisplayOriginFlag() const
31  { return myDisplayOriginFlag; }
32  void setDisplayOriginFlag(bool o)
33  { myDisplayOriginFlag = o; }
34 
35  bool getParentingErrorFlag() const
36  { return myParentingErrorFlag; }
37 
38  void setParentingErrorFlag(bool o)
39  { myParentingErrorFlag = o; }
40 
41 private:
42  void loadBinaryFlag(int id, bool on_off);
43  void loadAsciiFlag(const char *name, bool on_off);
44 
45  bool myDisplayOriginFlag;
46  bool myParentingErrorFlag;
47 };
48 
49 #endif
const GLuint GLenum const void * binary
Definition: glcorearb.h:1924
bool getDisplayOriginFlag() const
Definition: OBJ_NodeFlags.h:30
void setParentingErrorFlag(bool o)
Definition: OBJ_NodeFlags.h:38
GLuint const GLchar * name
Definition: glcorearb.h:786
bool getParentingErrorFlag() const
Definition: OBJ_NodeFlags.h:35
#define OBJ_API
Definition: OBJ_API.h:10
void setDisplayOriginFlag(bool o)
Definition: OBJ_NodeFlags.h:32