metaproxy  1.21.0
Functions
gduutil.cpp File Reference
#include "gduutil.hpp"
#include <metaproxy/util.hpp>
#include <yaz/wrbuf.h>
#include <yaz/oid_db.h>
#include <yaz/querytowrbuf.h>
#include <iostream>
Include dependency graph for gduutil.cpp:

Go to the source code of this file.

Functions

static void dump_opt_string (std::ostream &os, const char *s)
 
static void dump_opt_int_l (std::ostream &os, const Odr_int *i, const char *lead)
 
static void dump_opt_int (std::ostream &os, const Odr_int *i)
 

Function Documentation

◆ dump_opt_int()

static void dump_opt_int ( std::ostream &  os,
const Odr_int *  i 
)
static

Definition at line 166 of file gduutil.cpp.

167 {
168  dump_opt_int_l(os, i, " ");
169 }
static void dump_opt_int_l(std::ostream &os, const Odr_int *i, const char *lead)
Definition: gduutil.cpp:157

References dump_opt_int_l().

Referenced by std::operator<<().

Here is the call graph for this function:

◆ dump_opt_int_l()

static void dump_opt_int_l ( std::ostream &  os,
const Odr_int *  i,
const char *  lead 
)
static

Definition at line 157 of file gduutil.cpp.

158 {
159  os << lead;
160  if (i)
161  os << *i;
162  else
163  os << "-";
164 }

Referenced by dump_opt_int(), and std::operator<<().

◆ dump_opt_string()

static void dump_opt_string ( std::ostream &  os,
const char *  s 
)
static

Definition at line 148 of file gduutil.cpp.

149 {
150  os << " ";
151  if (s)
152  os << s;
153  else
154  os << "-";
155 }

Referenced by std::operator<<().