HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OP_SaveFlags.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: OP Library (C++)
7  *
8  */
9 
10 #ifndef __OP_SaveFlags_h__
11 #define __OP_SaveFlags_h__
12 
13 #include "OP_API.h"
14 
16 {
17 public:
18  OP_SaveFlags();
19 
20  bool getBinary() const
21  { return myBinary; }
22  void setBinary(bool save)
23  { myBinary = save; }
24  bool getIntrinsics() const
25  { return myIntrinsics; }
26  void setIntrinsics(bool save)
27  { myIntrinsics = save; }
28  bool getParameters() const
29  { return myParameters; }
30  void setParameters(bool save)
31  { myParameters = save; }
32  bool getChannels() const
33  { return myChannels; }
34  void setChannels(bool save)
35  { myChannels = save; }
36  bool getCompact() const
37  { return myCompact; }
38  void setCompact(bool save)
39  { myCompact = save; }
40  bool getSelected() const
41  { return mySelected; }
42  void setSelected(bool save)
43  { mySelected = save; }
44  bool getValues() const
45  { return myValues; }
46  void setValues(bool save)
47  { myValues = save; }
48  bool getData() const
49  { return myData; }
50  void setData(bool save)
51  { myData = save; }
52  bool getGroups() const
53  { return myGroups; }
54  void setGroups(bool save)
55  { myGroups = save; }
56  bool getIndirects() const
57  { return myIndirects; }
58  void setIndirects(bool save)
59  { myIndirects = save; }
60  bool getUserData() const
61  { return myUserData; }
62  void setUserData(bool save)
63  { myUserData = save; }
64  bool getItemIds() const
65  { return myItemIds; }
66  void setItemIds(bool save)
67  { myItemIds = save; }
68  bool getChannelAliases() const
69  { return myChannelAliases; }
70  void setChannelAliases(bool save)
71  { myChannelAliases = save; }
72  bool getNetworkBoxes() const
73  { return myNetworkBoxes; }
74  void setNetworkBoxes(bool save)
75  { myNetworkBoxes = save; }
76  bool getPostIts() const
77  { return myPostIts; }
78  void setPostIts(bool save)
79  { myPostIts = save; }
80  bool getDots() const
81  { return myDots; }
82  void setDots(bool save)
83  { myDots = save; }
85  { return myNetworkBoxMembership; }
86  void setNetworkBoxMembership(bool save)
87  { myNetworkBoxMembership = save; }
88  bool getSpareParms() const
89  { return mySpareParms; }
90  void setSpareParms(bool save)
91  { mySpareParms = save; }
92  bool getMaterialIcon() const
93  { return myMaterialIcon; }
94  void setMaterialIcon(bool save)
95  { myMaterialIcon = save; }
96  bool getChildNodes() const
97  { return myChildNodes; }
98  void setChildNodes(bool save)
99  { myChildNodes = save; }
100 
101  bool getWriteTrailer() const
102  { return myWriteTrailer; }
103  void setWriteTrailer(bool save) const
104  { myWriteTrailer = save; }
105 
106  bool getCompiledBasic() const
107  { return myCompiledBasic; }
108  void setCompiledBasic(bool save)
109  { myCompiledBasic = save; }
110  bool getCompiledVopnets() const
111  { return myCompiledVopnets; }
112  void setCompiledVopnets(bool save)
113  { myCompiledVopnets = save; }
114  bool getCompiledChannels() const
115  { return myCompiledChannels; }
116  void setCompiledChannels(bool save)
117  { myCompiledChannels = save; }
118  bool getCompiledNodeNames() const
119  { return myCompiledNodeNames; }
120  void setCompiledNodeNames(bool save)
121  { myCompiledNodeNames = save; }
122 
124  { return myChannelPendingState; }
125  void setChannelPendingState(bool save)
126  { myChannelPendingState = save; }
127 
128 private:
129  // Save binary format
130  bool myBinary;
131  // Save Op intrinsics (i.e. name/type)
132  bool myIntrinsics;
133  // Save parameters to node
134  bool myParameters;
135  // Save channels for node
136  bool myChannels;
137  // Save compactly (i.e. no thumbnail)
138  bool myCompact;
139  // Save only selected channels/nodes
140  bool mySelected;
141  // Save values only
142  bool myValues;
143  // Save OP cooked data (if flagged)
144  bool myData;
145  // Save OP groups
146  bool myGroups;
147  // Save Indirect inputs
148  bool myIndirects;
149  // Save user data
150  bool myUserData;
151  // Save unique ids of network box items
152  bool myItemIds;
153  // Save channel aliases for node
154  bool myChannelAliases;
155  // Save network boxes (if im a network)
156  bool myNetworkBoxes;
157  // Save post-it notes (if in a network)
158  bool myPostIts;
159  // Save dots (if in a network)
160  bool myDots;
161  // Remember which netbox i'm in. Generally should be on for the
162  // top-level node for undos, but off for copy ops (we don't know in
163  // which network we might get pasted)
164  bool myNetworkBoxMembership;
165  // spare parm definitions
166  bool mySpareParms;
167  // material icon
168  bool myMaterialIcon;
169  // Save a compiled hip file
170  bool myCompiledBasic;
171  // Save compiled Vop Networks
172  bool myCompiledVopnets;
173  // Save compiled channels
174  bool myCompiledChannels;
175  // Save compiled node names
176  bool myCompiledNodeNames;
177  // Save child nodes.
178  bool myChildNodes;
179  // Save channel pending state (default: true)
180  bool myChannelPendingState;
181  // Write the CPIO trailer
182  mutable bool myWriteTrailer;
183 };
184 
185 #endif
bool getChildNodes() const
Definition: OP_SaveFlags.h:96
void setPostIts(bool save)
Definition: OP_SaveFlags.h:78
void setData(bool save)
Definition: OP_SaveFlags.h:50
bool getBinary() const
Definition: OP_SaveFlags.h:20
void setIntrinsics(bool save)
Definition: OP_SaveFlags.h:26
bool getCompiledNodeNames() const
Definition: OP_SaveFlags.h:118
void setIndirects(bool save)
Definition: OP_SaveFlags.h:58
bool getIndirects() const
Definition: OP_SaveFlags.h:56
bool getCompiledVopnets() const
Definition: OP_SaveFlags.h:110
void setChildNodes(bool save)
Definition: OP_SaveFlags.h:98
void setDots(bool save)
Definition: OP_SaveFlags.h:82
void setChannels(bool save)
Definition: OP_SaveFlags.h:34
void setChannelPendingState(bool save)
Definition: OP_SaveFlags.h:125
void setValues(bool save)
Definition: OP_SaveFlags.h:46
void setChannelAliases(bool save)
Definition: OP_SaveFlags.h:70
void setMaterialIcon(bool save)
Definition: OP_SaveFlags.h:94
void setItemIds(bool save)
Definition: OP_SaveFlags.h:66
void setGroups(bool save)
Definition: OP_SaveFlags.h:54
bool getCompact() const
Definition: OP_SaveFlags.h:36
bool getChannelAliases() const
Definition: OP_SaveFlags.h:68
void setCompiledBasic(bool save)
Definition: OP_SaveFlags.h:108
void setParameters(bool save)
Definition: OP_SaveFlags.h:30
void setBinary(bool save)
Definition: OP_SaveFlags.h:22
bool getMaterialIcon() const
Definition: OP_SaveFlags.h:92
void setNetworkBoxes(bool save)
Definition: OP_SaveFlags.h:74
bool getPostIts() const
Definition: OP_SaveFlags.h:76
void setSelected(bool save)
Definition: OP_SaveFlags.h:42
bool getItemIds() const
Definition: OP_SaveFlags.h:64
bool getUserData() const
Definition: OP_SaveFlags.h:60
bool getCompiledBasic() const
Definition: OP_SaveFlags.h:106
bool getWriteTrailer() const
Definition: OP_SaveFlags.h:101
bool getIntrinsics() const
Definition: OP_SaveFlags.h:24
bool getCompiledChannels() const
Definition: OP_SaveFlags.h:114
void setWriteTrailer(bool save) const
Definition: OP_SaveFlags.h:103
bool getGroups() const
Definition: OP_SaveFlags.h:52
bool getChannelPendingState() const
Definition: OP_SaveFlags.h:123
bool getNetworkBoxMembership() const
Definition: OP_SaveFlags.h:84
void setSpareParms(bool save)
Definition: OP_SaveFlags.h:90
void setCompiledVopnets(bool save)
Definition: OP_SaveFlags.h:112
bool getDots() const
Definition: OP_SaveFlags.h:80
#define OP_API
Definition: OP_API.h:10
void setCompiledChannels(bool save)
Definition: OP_SaveFlags.h:116
void setCompiledNodeNames(bool save)
Definition: OP_SaveFlags.h:120
bool getSpareParms() const
Definition: OP_SaveFlags.h:88
bool getSelected() const
Definition: OP_SaveFlags.h:40
bool getParameters() const
Definition: OP_SaveFlags.h:28
bool getValues() const
Definition: OP_SaveFlags.h:44
bool getData() const
Definition: OP_SaveFlags.h:48
void setNetworkBoxMembership(bool save)
Definition: OP_SaveFlags.h:86
void setCompact(bool save)
Definition: OP_SaveFlags.h:38
bool getChannels() const
Definition: OP_SaveFlags.h:32
bool getNetworkBoxes() const
Definition: OP_SaveFlags.h:72
void setUserData(bool save)
Definition: OP_SaveFlags.h:62