metaproxy  1.13.0
Classes | Namespaces | Functions | Variables
filter_sd_remove.cpp File Reference
#include "config.hpp"
#include "filter_sd_remove.hpp"
#include <metaproxy/package.hpp>
#include <metaproxy/util.hpp>
#include <yaz/zgdu.h>
#include <yaz/diagbib1.h>
#include <metaproxy/filter.hpp>
Include dependency graph for filter_sd_remove.cpp:

Go to the source code of this file.

Classes

class  metaproxy_1::filter::SD_Remove
 

Namespaces

 metaproxy_1
 
 metaproxy_1::filter
 

Functions

static void diagrec_to_sutrs (WRBUF b, Z_DiagRec *diag)
 
static mp::filter::Base * filter_creator ()
 

Variables

struct metaproxy_1_filter_struct metaproxy_1_filter_sd_remove
 

Function Documentation

static void diagrec_to_sutrs ( WRBUF  b,
Z_DiagRec *  diag 
)
static

Definition at line 67 of file filter_sd_remove.cpp.

68 {
69  wrbuf_puts(b," ERROR ");
70  if (diag->which != Z_DiagRec_defaultFormat)
71  wrbuf_puts(b, "diag not in default format");
72  else
73  {
74  Z_DefaultDiagFormat *e = diag->u.defaultFormat;
75  wrbuf_printf(b, ODR_INT_PRINTF ": %s", *e->condition,
76  diagbib1_str(*e->condition));
77  if (e->u.v2Addinfo && *e->u.v2Addinfo) // v3Addinfo is same data
78  {
79  wrbuf_puts(b, " -- ");
80  wrbuf_puts(b, e->u.v2Addinfo);
81  }
82  }
83  wrbuf_puts(b, "\n");
84 }
static mp::filter::Base* filter_creator ( )
static

Definition at line 142 of file filter_sd_remove.cpp.

143 {
144  return new mp::filter::SD_Remove;
145 }

Variable Documentation

struct metaproxy_1_filter_struct metaproxy_1_filter_sd_remove
Initial value:
= {
0,
"sd_remove",
}
static mp::filter::Base * filter_creator()

Definition at line 148 of file filter_sd_remove.cpp.

Referenced by metaproxy_1::FactoryStatic::FactoryStatic().