]> Creatis software - clitk.git/blobdiff - cmake/gengetopt/skels/print_help_string.cc
Added FindGengetopt.cmake which compiles gengetopt if not installed.
[clitk.git] / cmake / gengetopt / skels / print_help_string.cc
diff --git a/cmake/gengetopt/skels/print_help_string.cc b/cmake/gengetopt/skels/print_help_string.cc
new file mode 100644 (file)
index 0000000..9eaa514
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+ * File automatically generated by
+ * gengen 1.2 by Lorenzo Bettini 
+ * http://www.gnu.org/software/gengen
+ */
+
+#include "print_help_string.h"
+
+void
+print_help_string_gen_class::generate_print_help_string(ostream &stream, unsigned int indent)
+{
+  string indent_str (indent, ' ');
+  indent = 0;
+
+  if (shared)
+    {
+      generate_string (target, stream, indent + indent_str.length ());
+      stream << "[";
+      generate_string (index, stream, indent + indent_str.length ());
+      stream << "] = ";
+      if (last)
+        {
+          stream << "0; ";
+        }
+      else
+        {
+          generate_string (from, stream, indent + indent_str.length ());
+          stream << "[";
+          generate_string (full_index, stream, indent + indent_str.length ());
+          stream << "];";
+        }
+      stream << "\n";
+      stream << indent_str;
+    }
+  else
+    {
+      stream << "\"";
+      generate_string (helpstring, stream, indent + indent_str.length ());
+      stream << "\",";
+      stream << "\n";
+      stream << indent_str;
+    }
+}