-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs #7970 - Add alternate syntax for cuboid.
Added unit tests to cover the default axis and centre fields. It is not possible to enforce an "either/or" syntax rule in the schema file without wrapping each syntax in its own pair of tags. We have to leave that job to the ShapeFactory when it parses the XML. I would have preferred to keep CuboidCorners and the new parseCuboid function in an anonymous namespace, but had to list them in the header file to make use of the other member functions of the factory.
- Loading branch information
1 parent
ba74c4e
commit edcd1d7
Showing
6 changed files
with
289 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.