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  bool getMinimal() const
129  { return myMinimal; }
130  void setMinimal(bool save)
131  { myMinimal = save; }
132 
133 private:
134  // Save binary format
135  bool myBinary;
136  // Save Op intrinsics (i.e. name/type)
137  bool myIntrinsics;
138  // Save parameters to node
139  bool myParameters;
140  // Save channels for node
141  bool myChannels;
142  // Save compactly (i.e. no thumbnail)
143  bool myCompact;
144  // Save only selected channels/nodes
145  bool mySelected;
146  // Save values only
147  bool myValues;
148  // Save OP cooked data (if flagged)
149  bool myData;
150  // Save OP groups
151  bool myGroups;
152  // Save Indirect inputs
153  bool myIndirects;
154  // Save user data
155  bool myUserData;
156  // Save unique ids of network box items
157  bool myItemIds;
158  // Save channel aliases for node
159  bool myChannelAliases;
160  // Save network boxes (if im a network)
161  bool myNetworkBoxes;
162  // Save post-it notes (if in a network)
163  bool myPostIts;
164  // Save dots (if in a network)
165  bool myDots;
166  // Remember which netbox i'm in. Generally should be on for the
167  // top-level node for undos, but off for copy ops (we don't know in
168  // which network we might get pasted)
169  bool myNetworkBoxMembership;
170  // spare parm definitions
171  bool mySpareParms;
172  // material icon
173  bool myMaterialIcon;
174  // Save a compiled hip file
175  bool myCompiledBasic;
176  // Save compiled Vop Networks
177  bool myCompiledVopnets;
178  // Save compiled channels
179  bool myCompiledChannels;
180  // Save compiled node names
181  bool myCompiledNodeNames;
182  // Save child nodes.
183  bool myChildNodes;
184  // Save channel pending state (default: true)
185  bool myChannelPendingState;
186  // Save minimally (skip non-essential data)
187  bool myMinimal;
188  // Write the CPIO trailer
189  mutable bool myWriteTrailer;
190 };
191 
192 #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 getMinimal() const
Definition: OP_SaveFlags.h:128
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
void setMinimal(bool save)
Definition: OP_SaveFlags.h:130
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