HilVert  1v2
A demo of the Hilbert Curve in SVG.
main.cpp
Go to the documentation of this file.
1 // FILE main.cpp
2 // DATE 20201014
3 // WRITTEN RAC
4 // LANGUAGE C++, XCode
5 // PURPOSE Impl for the hilbert curve SVG demo. $
6 // KEYWORDS HILBERT/CURVE/DRAW/PLOT/ANIMATE
7 // PROJECT WEB
8 // TARGET Command line C++ 17
9 // CATEGORY Utility
10 //
11 
12 
70 #include "HilVert.hpp"
71 using std::cout;
72 
246 int main(int argc, const char * argv[]) {
247 
248  HilVert hvt{};
249  cout << hvt.vers() << '\n';
250  auto errtxt{hvt.errs(hvt.cmndLn(argc, argv))};
251  return errtxt.size()
252  ? (std::cerr << "HilVert: *** Error: " << errtxt << '\n', 1)
253  : (hvt.grfc(), cout << "HilVert: done.\n", 0)
254  ;
255 }
256 /*
257  * End main ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
258  */
259 
260 
HilVert
Generate SVG visualisations of the Hilbert Curve (HC).
Definition: HilVert.hpp:59
HilVert::vers
std::string vers()
Generate the version number for HilVert.
Definition: HilVert.cpp:610
HilVert.hpp
All declarations for the HilVert class.
main
int main(int argc, const char *argv[])
Entry point for the HilVert application.
Definition: main.cpp:246