Skip to content
Snippets Groups Projects
Commit 180452b3 authored by edgrif's avatar edgrif
Browse files

add func to print styles to stdout.

parent accd2d7f
No related branches found
No related tags found
No related merge requests found
......@@ -26,9 +26,9 @@
* Description: Style and Style set handling functions.
*
* HISTORY:
* Last edited: Jan 26 13:41 2009 (edgrif)
* Last edited: Feb 4 11:40 2009 (edgrif)
* Created: Mon Feb 26 09:28:26 2007 (edgrif)
* CVS info: $Id: zmapStyle.h,v 1.32 2009-02-03 09:18:54 edgrif Exp $
* CVS info: $Id: zmapStyle.h,v 1.33 2009-02-04 15:58:20 edgrif Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_STYLE_H
......@@ -461,8 +461,11 @@ void zMapStyleDestroyStyles(GData **styles) ;
/* Debug functions. */
void zMapStylePrint(ZMapIOOut dest, ZMapFeatureTypeStyle style, char *prefix, gboolean full) ;
void zMapStyleSetPrintAll(ZMapIOOut dest, GData *type_set, char *user_string, gboolean full) ;
void zMapStyleSetPrintAllStdOut(GData *type_set, char *user_string, gboolean full) ;
void zMapStyleListPrintAll(ZMapIOOut dest, GList *styles, char *user_string, gboolean full) ;
......
......@@ -28,13 +28,14 @@
* Exported functions: See ZMap/zmapStyle.h
*
* HISTORY:
* Last edited: Dec 11 09:35 2008 (edgrif)
* Last edited: Feb 4 11:52 2009 (edgrif)
* Created: Thu Oct 30 10:24:35 2008 (edgrif)
* CVS info: $Id: zmapStyleUtils.c,v 1.2 2008-12-11 09:51:43 edgrif Exp $
* CVS info: $Id: zmapStyleUtils.c,v 1.3 2009-02-04 15:58:47 edgrif Exp $
*-------------------------------------------------------------------
*/
#include <string.h>
#include <unistd.h>
#include <ZMap/zmapUtils.h>
#include <ZMap/zmapEnum.h>
#include <ZMap/zmapConfigLoader.h>
......@@ -303,6 +304,20 @@ void zMapStyleSetPrintAll(ZMapIOOut dest, GData *type_set, char *user_string, gb
return ;
}
void zMapStyleSetPrintAllStdOut(GData *type_set, char *user_string, gboolean full)
{
ZMapIOOut output ;
output = zMapOutCreateFD(STDOUT_FILENO) ;
zMapStyleSetPrintAll(output, type_set, user_string, full) ;
zMapOutDestroy(output) ;
return ;
}
void zMapStyleListPrintAll(ZMapIOOut dest, GList *styles, char *user_string, gboolean full)
{
......@@ -339,7 +354,7 @@ void zMapStylePrint(ZMapIOOut dest, ZMapFeatureTypeStyle style, char *prefix, gb
#define STYLE_PTR style
zMapAssert(style) ;
zMapAssert(ZMAP_IS_FEATURE_STYLE(style)) ;
full = TRUE ;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment