00001 /* Part of the culibs project, <http://www.eideticdew.org/culibs/>. 00002 * Copyright (C) 2007 Petter Urkedal <urkedal@nbi.dk> 00003 * 00004 * This program is free software: you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation, either version 3 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00018 #ifndef CUEX_PRINT_H 00019 #define CUEX_PRINT_H 00020 00021 #include <cuex/fwd.h> 00022 00023 CU_BEGIN_DECLARATIONS 00024 /*!\defgroup cuex_print_h cuex/print.h: Printing Expressions 00025 *@{\ingroup cuex_mod 00026 * For general printing of expressions, \ref cuex_init registers the "%!" 00027 * format specifier which can be used in \ref cu_fprintf, \ref cu_errf, etc. 00028 * The following more esoteric. 00029 */ 00030 00031 /*!Write out a set of vertex and edge declarations in Graphviz dot-format, 00032 * suitable as the body of a <tt>digraph</tt> definition. */ 00033 cu_bool_t cuex_write_dot_decls(cuex_t e, FILE *out); 00034 00035 /*!Save \a e as a digraph \a graph_name in the file \a path. If \a graph_name 00036 * is \c NULL, a default name is used. If \a path is \c NULL, this saves to a 00037 * unique file under <tt>/tmp</tt>. */ 00038 void cuex_save_dot(cuex_t e, char const *graph_name, char const *path); 00039 00040 /*!@}*/ 00041 CU_END_DECLARATIONS 00042 00043 #endif