Definition in file util.h.
#include <iostream>
#include <string>
Go to the source code of this file.
Classes | |
struct | ProgramOptions |
Structure to store command line options input by user. More... | |
Functions | |
static void | check_error (bool expr, const std::string &message) |
If expression expr is true, message is output and program terminates. | |
static void | check_warn (bool expr, const std::string &message) |
If expression expr is true, warning message is output. | |
static void | usage () |
Usage printout function. |
|
If expression expr is true, message is output and program terminates.
Definition at line 17 of file util.h. 00017 { 00018 if (expr) { 00019 std::cerr << "Error: " << message << std::endl; 00020 exit(1); 00021 } 00022 }
|
|
If expression expr is true, warning message is output.
Definition at line 28 of file util.h.
|
|
Usage printout function.
Definition at line 42 of file util.h. 00042 { 00043 std::cerr << "USAGE:\n CirclePatterns.exe <INPUT_OPTIONS> " 00044 << " <OUTPUT_OPTIONS> [OTHER OPTIONS] | <INPUT_FILE_WITH_OPTIONS>\n" << std::endl; 00045 std::cerr << "OPTIONS:\n" 00046 << " MAIN OPTIONS:\n" 00047 << " -io <input obj file>\n" 00048 << " -oo <output obj file>\n" 00049 << " <text file with options>\n" 00050 << " ADDITIONAL INPUT OPTIONS:\n" 00051 << " -ic <input conn file>\n" 00052 << " -iv <singularities file>\n" 00053 << " -ie <edges to cut file>\n" 00054 << " ADDITIONAL OUTPUT OPTIONS:\n" 00055 << " -oc <output conn file>\n" 00056 << " -ob <output cut obj file>\n" 00057 << " -ovt <otput vt file>\n" 00058 << " OTHER OPTIONS:\n" 00059 << " -no (only cut and layout mesh, no parameterization is computed)\n" 00060 << " -help (outputs usage message)\n" 00061 << std::endl; 00062 00063 exit(1); 00064 }
|