| 142 | }}} |
| 143 | |
| 144 | === Clean true and false === |
| 145 | |
| 146 | [[Image(example1.gif, 200, right)]] |
| 147 | {{{ |
| 148 | #!cpp |
| 149 | // Create a new mask and explicitly include BaseObject |
| 150 | // Then include A2 too with clean = true (this is default) |
| 151 | // The resulting mask includes everything - the include rule of A2 had no effect |
| 152 | |
| 153 | ClassTreeMask mymask; |
| 154 | mymask.include(Class(BaseObject)) |
| 155 | mymask.include(Class(A2), true, true) |
| 156 | }}} |
| 157 | |
| 158 | [[Image(example6.gif, 200, right)]] |
| 159 | {{{ |
| 160 | #!cpp |
| 161 | // Now exclude the BaseObject without overwrite |
| 162 | // This excludes everything, because only the include rule of of BaseObject was |
| 163 | // saved, and now this rule was changed to exclude. |
| 164 | |
| 165 | mymask.exclude(Class(BaseObject), false) |
| 170 | |
| 171 | [[Image(example8.gif, 200, right)]] |
| 172 | {{{ |
| 173 | #!cpp |
| 174 | // Instead of this we create a new mask again and explicitly include BaseObject |
| 175 | // This time include A2 with clean = false |
| 176 | // The resulting mask includes still everything, but the include rule of |
| 177 | // A2 is saved |
| 178 | |
| 179 | ClassTreeMask mymask; |
| 180 | mymask.include(Class(BaseObject)) |
| 181 | mymask.include(Class(A2), true, false) |
| 182 | }}} |
| 183 | |
| 184 | [[Image(example9.gif, 200, right)]] |
| 185 | {{{ |
| 186 | #!cpp |
| 187 | // Now exclude the BaseObject without overwrite |
| 188 | // This excludes everything except A2, because the include rule of A2 was saved |
| 189 | // and not overwritten |
| 190 | |
| 191 | mymask.exclude(Class(BaseObject), false) |
| 192 | }}} |
| 193 | |
| 194 | [[br]] |