Classes | Enumerations | Functions
nova::database Namespace Reference

Classes

class  Column
 
struct  copyTraits
 
struct  copyTraits< dBCheck_t >
 
struct  copyTraits< dBColumn_t >
 
struct  copyTraits< dBRow_t >
 
struct  copyTraits< dBTable >
 
struct  copyTraits< Tolerance_t >
 
class  dBCheck_t
 
class  dBColumn_t
 
class  dBRow_t
 
class  dBTable
 
class  Row
 
class  Table
 
class  Tolerance_t
 
class  Util
 

Enumerations

enum  ToleranceType { kUnknown, kAbsolute, kFractional, kNToleranceTypes }
 
enum  DBTableType {
  kGenericTable, kValidityTable, kHardwareTable, kDAQTable,
  kDCSTable, kNTableType
}
 

Functions

std::ostream & operator<< (std::ostream &stream, const Column &col)
 
::std::unique_ptr< ::nova::database::dBTabledBTable_ (const ::std::string &uri,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
 
::std::unique_ptr< ::nova::database::dBTabledBTable_ (const ::std::string &uri,::xml_schema::error_handler &eh,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
 
::std::unique_ptr< ::nova::database::dBTabledBTable_ (const ::std::string &uri,::xercesc::DOMErrorHandler &eh,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
 
::std::unique_ptr< ::nova::database::dBTabledBTable_ (::std::istream &is,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
 
::std::unique_ptr< ::nova::database::dBTabledBTable_ (::std::istream &is,::xml_schema::error_handler &eh,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
 
::std::unique_ptr< ::nova::database::dBTabledBTable_ (::std::istream &is,::xercesc::DOMErrorHandler &eh,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
 
::std::unique_ptr< ::nova::database::dBTabledBTable_ (::std::istream &is, const ::std::string &id,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
 
::std::unique_ptr< ::nova::database::dBTabledBTable_ (::std::istream &is, const ::std::string &id,::xml_schema::error_handler &eh,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
 
::std::unique_ptr< ::nova::database::dBTabledBTable_ (::std::istream &is, const ::std::string &id,::xercesc::DOMErrorHandler &eh,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
 
::std::unique_ptr< ::nova::database::dBTabledBTable_ (::xercesc::InputSource &is,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
 
::std::unique_ptr< ::nova::database::dBTabledBTable_ (::xercesc::InputSource &is,::xml_schema::error_handler &eh,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
 
::std::unique_ptr< ::nova::database::dBTabledBTable_ (::xercesc::InputSource &is,::xercesc::DOMErrorHandler &eh,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
 
::std::unique_ptr< ::nova::database::dBTabledBTable_ (const ::xercesc::DOMDocument &d,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
 
::std::unique_ptr< ::nova::database::dBTabledBTable_ (::xml_schema::dom::unique_ptr< ::xercesc::DOMDocument > d,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
 
void dBTable_ (::std::ostream &os, const ::nova::database::dBTable &x, const ::xml_schema::namespace_infomap &m=::xml_schema::namespace_infomap(), const ::std::string &e="UTF-8",::xml_schema::flags f=0)
 
void dBTable_ (::std::ostream &os, const ::nova::database::dBTable &x,::xml_schema::error_handler &eh, const ::xml_schema::namespace_infomap &m=::xml_schema::namespace_infomap(), const ::std::string &e="UTF-8",::xml_schema::flags f=0)
 
void dBTable_ (::std::ostream &os, const ::nova::database::dBTable &x,::xercesc::DOMErrorHandler &eh, const ::xml_schema::namespace_infomap &m=::xml_schema::namespace_infomap(), const ::std::string &e="UTF-8",::xml_schema::flags f=0)
 
void dBTable_ (::xercesc::XMLFormatTarget &ft, const ::nova::database::dBTable &x, const ::xml_schema::namespace_infomap &m=::xml_schema::namespace_infomap(), const ::std::string &e="UTF-8",::xml_schema::flags f=0)
 
void dBTable_ (::xercesc::XMLFormatTarget &ft, const ::nova::database::dBTable &x,::xml_schema::error_handler &eh, const ::xml_schema::namespace_infomap &m=::xml_schema::namespace_infomap(), const ::std::string &e="UTF-8",::xml_schema::flags f=0)
 
void dBTable_ (::xercesc::XMLFormatTarget &ft, const ::nova::database::dBTable &x,::xercesc::DOMErrorHandler &eh, const ::xml_schema::namespace_infomap &m=::xml_schema::namespace_infomap(), const ::std::string &e="UTF-8",::xml_schema::flags f=0)
 
void dBTable_ (::xercesc::DOMDocument &d, const ::nova::database::dBTable &x,::xml_schema::flags f=0)
 
::xml_schema::dom::unique_ptr< ::xercesc::DOMDocument > dBTable_ (const ::nova::database::dBTable &x, const ::xml_schema::namespace_infomap &m=::xml_schema::namespace_infomap(),::xml_schema::flags f=0)
 
void operator<< (::xercesc::DOMElement &, const Tolerance_t &)
 
void operator<< (::xercesc::DOMElement &, const dBColumn_t &)
 
void operator<< (::xercesc::DOMElement &, const dBCheck_t &)
 
void operator<< (::xercesc::DOMElement &, const dBRow_t &)
 
void operator<< (::xercesc::DOMElement &, const dBTable &)
 
std::ostream & operator<< (std::ostream &stream, const Row &row)
 
std::ostream & operator<< (std::ostream &stream, const Table &t)
 

Enumeration Type Documentation

Enumerator
kGenericTable 
kValidityTable 
kHardwareTable 
kDAQTable 
kDCSTable 
kNTableType 

Definition at line 18 of file Table.h.

Enumerator
kUnknown 
kAbsolute 
kFractional 
kNToleranceTypes 

Definition at line 16 of file Column.h.

Function Documentation

std::unique_ptr<::nova::database::dBTable > nova::database::dBTable_ ( const ::std::string &  uri,
::xml_schema::flags  f = 0,
const ::xml_schema::properties p = ::xml_schema::properties () 
)

Definition at line 2633 of file NovaDatabase.cpp.

References d, nova::dbi::dBTable_(), make_syst_table_plots::h, and MECModelEnuComparisons::i.

Referenced by nova::database::Table::CreateFromXML(), dBTable_(), and nova::database::dBTable::serialize().

2636  {
2637  ::xsd::cxx::xml::auto_initializer i (
2638  (f & ::xml_schema::flags::dont_initialize) == 0,
2639  (f & ::xml_schema::flags::keep_dom) == 0);
2640 
2641  ::xsd::cxx::tree::error_handler< char > h;
2642 
2643  ::xml_schema::dom::unique_ptr< ::xercesc::DOMDocument > d (
2644  ::xsd::cxx::xml::dom::parse< char > (
2645  u, h, p, f));
2646 
2647  h.throw_if_failed< ::xsd::cxx::tree::parsing< char > > ();
2648 
2649  return ::std::unique_ptr< ::nova::database::dBTable > (
2651  std::move (d), f | ::xml_schema::flags::own_dom, p));
2652  }
const char * p
Definition: xmltok.h:285
::std::unique_ptr< ::nova::dbi::dBTable > dBTable_(const ::std::string &uri,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
Definition: Database.cpp:2371
Float_t d
Definition: plot.C:236
std::unique_ptr<::nova::database::dBTable > nova::database::dBTable_ ( const ::std::string &  uri,
::xml_schema::error_handler eh,
::xml_schema::flags  f = 0,
const ::xml_schema::properties p = ::xml_schema::properties () 
)

Definition at line 2655 of file NovaDatabase.cpp.

References d, nova::dbi::dBTable_(), and MECModelEnuComparisons::i.

2659  {
2660  ::xsd::cxx::xml::auto_initializer i (
2661  (f & ::xml_schema::flags::dont_initialize) == 0,
2662  (f & ::xml_schema::flags::keep_dom) == 0);
2663 
2664  ::xml_schema::dom::unique_ptr< ::xercesc::DOMDocument > d (
2665  ::xsd::cxx::xml::dom::parse< char > (
2666  u, h, p, f));
2667 
2668  if (!d.get ())
2669  throw ::xsd::cxx::tree::parsing< char > ();
2670 
2671  return ::std::unique_ptr< ::nova::database::dBTable > (
2673  std::move (d), f | ::xml_schema::flags::own_dom, p));
2674  }
const char * p
Definition: xmltok.h:285
::std::unique_ptr< ::nova::dbi::dBTable > dBTable_(const ::std::string &uri,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
Definition: Database.cpp:2371
Float_t d
Definition: plot.C:236
std::unique_ptr<::nova::database::dBTable > nova::database::dBTable_ ( const ::std::string &  uri,
::xercesc::DOMErrorHandler &  eh,
::xml_schema::flags  f = 0,
const ::xml_schema::properties p = ::xml_schema::properties () 
)

Definition at line 2677 of file NovaDatabase.cpp.

References d, and nova::dbi::dBTable_().

2681  {
2682  ::xml_schema::dom::unique_ptr< ::xercesc::DOMDocument > d (
2683  ::xsd::cxx::xml::dom::parse< char > (
2684  u, h, p, f));
2685 
2686  if (!d.get ())
2687  throw ::xsd::cxx::tree::parsing< char > ();
2688 
2689  return ::std::unique_ptr< ::nova::database::dBTable > (
2691  std::move (d), f | ::xml_schema::flags::own_dom, p));
2692  }
const char * p
Definition: xmltok.h:285
::std::unique_ptr< ::nova::dbi::dBTable > dBTable_(const ::std::string &uri,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
Definition: Database.cpp:2371
Float_t d
Definition: plot.C:236
std::unique_ptr<::nova::database::dBTable > nova::database::dBTable_ ( ::std::istream &  is,
::xml_schema::flags  f = 0,
const ::xml_schema::properties p = ::xml_schema::properties () 
)

Definition at line 2695 of file NovaDatabase.cpp.

References nova::dbi::dBTable_(), MECModelEnuComparisons::i, and APDInfo::isrc.

2698  {
2699  ::xsd::cxx::xml::auto_initializer i (
2700  (f & ::xml_schema::flags::dont_initialize) == 0,
2701  (f & ::xml_schema::flags::keep_dom) == 0);
2702 
2703  ::xsd::cxx::xml::sax::std_input_source isrc (is);
2705  }
const char * p
Definition: xmltok.h:285
::std::unique_ptr< ::nova::dbi::dBTable > dBTable_(const ::std::string &uri,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
Definition: Database.cpp:2371
std::unique_ptr<::nova::database::dBTable > nova::database::dBTable_ ( ::std::istream &  is,
::xml_schema::error_handler eh,
::xml_schema::flags  f = 0,
const ::xml_schema::properties p = ::xml_schema::properties () 
)

Definition at line 2708 of file NovaDatabase.cpp.

References nova::dbi::dBTable_(), MECModelEnuComparisons::i, and APDInfo::isrc.

2712  {
2713  ::xsd::cxx::xml::auto_initializer i (
2714  (f & ::xml_schema::flags::dont_initialize) == 0,
2715  (f & ::xml_schema::flags::keep_dom) == 0);
2716 
2717  ::xsd::cxx::xml::sax::std_input_source isrc (is);
2719  }
const char * p
Definition: xmltok.h:285
::std::unique_ptr< ::nova::dbi::dBTable > dBTable_(const ::std::string &uri,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
Definition: Database.cpp:2371
std::unique_ptr<::nova::database::dBTable > nova::database::dBTable_ ( ::std::istream &  is,
::xercesc::DOMErrorHandler &  eh,
::xml_schema::flags  f = 0,
const ::xml_schema::properties p = ::xml_schema::properties () 
)

Definition at line 2722 of file NovaDatabase.cpp.

References nova::dbi::dBTable_(), and APDInfo::isrc.

2726  {
2727  ::xsd::cxx::xml::sax::std_input_source isrc (is);
2729  }
const char * p
Definition: xmltok.h:285
::std::unique_ptr< ::nova::dbi::dBTable > dBTable_(const ::std::string &uri,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
Definition: Database.cpp:2371
std::unique_ptr<::nova::database::dBTable > nova::database::dBTable_ ( ::std::istream &  is,
const ::std::string &  id,
::xml_schema::flags  f = 0,
const ::xml_schema::properties p = ::xml_schema::properties () 
)

Definition at line 2732 of file NovaDatabase.cpp.

References nova::dbi::dBTable_(), MECModelEnuComparisons::i, and APDInfo::isrc.

2736  {
2737  ::xsd::cxx::xml::auto_initializer i (
2738  (f & ::xml_schema::flags::dont_initialize) == 0,
2739  (f & ::xml_schema::flags::keep_dom) == 0);
2740 
2741  ::xsd::cxx::xml::sax::std_input_source isrc (is, sid);
2743  }
const char * p
Definition: xmltok.h:285
::std::unique_ptr< ::nova::dbi::dBTable > dBTable_(const ::std::string &uri,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
Definition: Database.cpp:2371
std::unique_ptr<::nova::database::dBTable > nova::database::dBTable_ ( ::std::istream &  is,
const ::std::string &  id,
::xml_schema::error_handler eh,
::xml_schema::flags  f = 0,
const ::xml_schema::properties p = ::xml_schema::properties () 
)

Definition at line 2746 of file NovaDatabase.cpp.

References nova::dbi::dBTable_(), MECModelEnuComparisons::i, and APDInfo::isrc.

2751  {
2752  ::xsd::cxx::xml::auto_initializer i (
2753  (f & ::xml_schema::flags::dont_initialize) == 0,
2754  (f & ::xml_schema::flags::keep_dom) == 0);
2755 
2756  ::xsd::cxx::xml::sax::std_input_source isrc (is, sid);
2758  }
const char * p
Definition: xmltok.h:285
::std::unique_ptr< ::nova::dbi::dBTable > dBTable_(const ::std::string &uri,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
Definition: Database.cpp:2371
std::unique_ptr<::nova::database::dBTable > nova::database::dBTable_ ( ::std::istream &  is,
const ::std::string &  id,
::xercesc::DOMErrorHandler &  eh,
::xml_schema::flags  f = 0,
const ::xml_schema::properties p = ::xml_schema::properties () 
)

Definition at line 2761 of file NovaDatabase.cpp.

References nova::dbi::dBTable_(), and APDInfo::isrc.

2766  {
2767  ::xsd::cxx::xml::sax::std_input_source isrc (is, sid);
2769  }
const char * p
Definition: xmltok.h:285
::std::unique_ptr< ::nova::dbi::dBTable > dBTable_(const ::std::string &uri,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
Definition: Database.cpp:2371
std::unique_ptr<::nova::database::dBTable > nova::database::dBTable_ ( ::xercesc::InputSource &  is,
::xml_schema::flags  f = 0,
const ::xml_schema::properties p = ::xml_schema::properties () 
)

Definition at line 2772 of file NovaDatabase.cpp.

References d, nova::dbi::dBTable_(), and make_syst_table_plots::h.

2775  {
2776  ::xsd::cxx::tree::error_handler< char > h;
2777 
2778  ::xml_schema::dom::unique_ptr< ::xercesc::DOMDocument > d (
2779  ::xsd::cxx::xml::dom::parse< char > (
2780  i, h, p, f));
2781 
2782  h.throw_if_failed< ::xsd::cxx::tree::parsing< char > > ();
2783 
2784  return ::std::unique_ptr< ::nova::database::dBTable > (
2786  std::move (d), f | ::xml_schema::flags::own_dom, p));
2787  }
const char * p
Definition: xmltok.h:285
::std::unique_ptr< ::nova::dbi::dBTable > dBTable_(const ::std::string &uri,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
Definition: Database.cpp:2371
Float_t d
Definition: plot.C:236
std::unique_ptr<::nova::database::dBTable > nova::database::dBTable_ ( ::xercesc::InputSource &  is,
::xml_schema::error_handler eh,
::xml_schema::flags  f = 0,
const ::xml_schema::properties p = ::xml_schema::properties () 
)

Definition at line 2790 of file NovaDatabase.cpp.

References d, and nova::dbi::dBTable_().

2794  {
2795  ::xml_schema::dom::unique_ptr< ::xercesc::DOMDocument > d (
2796  ::xsd::cxx::xml::dom::parse< char > (
2797  i, h, p, f));
2798 
2799  if (!d.get ())
2800  throw ::xsd::cxx::tree::parsing< char > ();
2801 
2802  return ::std::unique_ptr< ::nova::database::dBTable > (
2804  std::move (d), f | ::xml_schema::flags::own_dom, p));
2805  }
const char * p
Definition: xmltok.h:285
::std::unique_ptr< ::nova::dbi::dBTable > dBTable_(const ::std::string &uri,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
Definition: Database.cpp:2371
Float_t d
Definition: plot.C:236
std::unique_ptr<::nova::database::dBTable > nova::database::dBTable_ ( ::xercesc::InputSource &  is,
::xercesc::DOMErrorHandler &  eh,
::xml_schema::flags  f = 0,
const ::xml_schema::properties p = ::xml_schema::properties () 
)

Definition at line 2808 of file NovaDatabase.cpp.

References d, and nova::dbi::dBTable_().

2812  {
2813  ::xml_schema::dom::unique_ptr< ::xercesc::DOMDocument > d (
2814  ::xsd::cxx::xml::dom::parse< char > (
2815  i, h, p, f));
2816 
2817  if (!d.get ())
2818  throw ::xsd::cxx::tree::parsing< char > ();
2819 
2820  return ::std::unique_ptr< ::nova::database::dBTable > (
2822  std::move (d), f | ::xml_schema::flags::own_dom, p));
2823  }
const char * p
Definition: xmltok.h:285
::std::unique_ptr< ::nova::dbi::dBTable > dBTable_(const ::std::string &uri,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
Definition: Database.cpp:2371
Float_t d
Definition: plot.C:236
std::unique_ptr<::nova::database::dBTable > nova::database::dBTable_ ( const ::xercesc::DOMDocument &  d,
::xml_schema::flags  f = 0,
const ::xml_schema::properties p = ::xml_schema::properties () 
)

Definition at line 2826 of file NovaDatabase.cpp.

References d, nova::dbi::dBTable_(), e, getGoodRuns4SAM::n, and r().

2829  {
2830  if (f & ::xml_schema::flags::keep_dom)
2831  {
2832  ::xml_schema::dom::unique_ptr< ::xercesc::DOMDocument > d (
2833  static_cast< ::xercesc::DOMDocument* > (doc.cloneNode (true)));
2834 
2835  return ::std::unique_ptr< ::nova::database::dBTable > (
2837  std::move (d), f | ::xml_schema::flags::own_dom, p));
2838  }
2839 
2840  const ::xercesc::DOMElement& e (*doc.getDocumentElement ());
2841  const ::xsd::cxx::xml::qualified_name< char > n (
2842  ::xsd::cxx::xml::dom::name< char > (e));
2843 
2844  if (n.name () == "dBTable" &&
2845  n.namespace_ () == "")
2846  {
2847  ::std::unique_ptr< ::nova::database::dBTable > r (
2848  ::xsd::cxx::tree::traits< ::nova::database::dBTable, char >::create (
2849  e, f, 0));
2850  return r;
2851  }
2852 
2853  throw ::xsd::cxx::tree::unexpected_element < char > (
2854  n.name (),
2855  n.namespace_ (),
2856  "dBTable",
2857  "");
2858  }
const char * p
Definition: xmltok.h:285
::std::unique_ptr< ::nova::dbi::dBTable > dBTable_(const ::std::string &uri,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
Definition: Database.cpp:2371
Float_t d
Definition: plot.C:236
TRandom3 r(0)
Float_t e
Definition: plot.C:35
std::unique_ptr<::nova::database::dBTable > nova::database::dBTable_ ( ::xml_schema::dom::unique_ptr< ::xercesc::DOMDocument >  d,
::xml_schema::flags  f = 0,
const ::xml_schema::properties p = ::xml_schema::properties () 
)

Definition at line 2861 of file NovaDatabase.cpp.

References make_syst_table_plots::c, d, e, getGoodRuns4SAM::n, r(), and xml_schema::dom::tree_node_key.

2864  {
2865  ::xml_schema::dom::unique_ptr< ::xercesc::DOMDocument > c (
2866  ((f & ::xml_schema::flags::keep_dom) &&
2867  !(f & ::xml_schema::flags::own_dom))
2868  ? static_cast< ::xercesc::DOMDocument* > (d->cloneNode (true))
2869  : 0);
2870 
2871  ::xercesc::DOMDocument& doc (c.get () ? *c : *d);
2872  const ::xercesc::DOMElement& e (*doc.getDocumentElement ());
2873 
2874  const ::xsd::cxx::xml::qualified_name< char > n (
2875  ::xsd::cxx::xml::dom::name< char > (e));
2876 
2877  if (f & ::xml_schema::flags::keep_dom)
2878  doc.setUserData (::xml_schema::dom::tree_node_key,
2879  (c.get () ? &c : &d),
2880  0);
2881 
2882  if (n.name () == "dBTable" &&
2883  n.namespace_ () == "")
2884  {
2885  ::std::unique_ptr< ::nova::database::dBTable > r (
2886  ::xsd::cxx::tree::traits< ::nova::database::dBTable, char >::create (
2887  e, f, 0));
2888  return r;
2889  }
2890 
2891  throw ::xsd::cxx::tree::unexpected_element < char > (
2892  n.name (),
2893  n.namespace_ (),
2894  "dBTable",
2895  "");
2896  }
Float_t d
Definition: plot.C:236
const XMLCh *const tree_node_key
Definition: Database.h:253
TRandom3 r(0)
Float_t e
Definition: plot.C:35
void nova::database::dBTable_ ( ::std::ostream &  os,
const ::nova::database::dBTable x,
const ::xml_schema::namespace_infomap m = ::xml_schema::namespace_infomap (),
const ::std::string &  e = "UTF-8",
::xml_schema::flags  f = 0 
)

Definition at line 2909 of file NovaDatabase.cpp.

References d, dBTable_(), make_syst_table_plots::h, MECModelEnuComparisons::i, and confusionMatrixTree::t.

2914  {
2915  ::xsd::cxx::xml::auto_initializer i (
2916  (f & ::xml_schema::flags::dont_initialize) == 0);
2917 
2918  ::xml_schema::dom::unique_ptr< ::xercesc::DOMDocument > d (
2919  ::nova::database::dBTable_ (s, m, f));
2920 
2921  ::xsd::cxx::tree::error_handler< char > h;
2922 
2923  ::xsd::cxx::xml::dom::ostream_format_target t (o);
2924  if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f))
2925  {
2926  h.throw_if_failed< ::xsd::cxx::tree::serialization< char > > ();
2927  }
2928  }
const XML_Char * s
Definition: expat.h:262
Float_t d
Definition: plot.C:236
::std::unique_ptr< ::nova::database::dBTable > dBTable_(const ::std::string &uri,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
Float_t e
Definition: plot.C:35
void nova::database::dBTable_ ( ::std::ostream &  os,
const ::nova::database::dBTable x,
::xml_schema::error_handler eh,
const ::xml_schema::namespace_infomap m = ::xml_schema::namespace_infomap (),
const ::std::string &  e = "UTF-8",
::xml_schema::flags  f = 0 
)

Definition at line 2931 of file NovaDatabase.cpp.

References d, dBTable_(), MECModelEnuComparisons::i, and confusionMatrixTree::t.

2937  {
2938  ::xsd::cxx::xml::auto_initializer i (
2939  (f & ::xml_schema::flags::dont_initialize) == 0);
2940 
2941  ::xml_schema::dom::unique_ptr< ::xercesc::DOMDocument > d (
2942  ::nova::database::dBTable_ (s, m, f));
2943  ::xsd::cxx::xml::dom::ostream_format_target t (o);
2944  if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f))
2945  {
2946  throw ::xsd::cxx::tree::serialization< char > ();
2947  }
2948  }
const XML_Char * s
Definition: expat.h:262
Float_t d
Definition: plot.C:236
::std::unique_ptr< ::nova::database::dBTable > dBTable_(const ::std::string &uri,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
Float_t e
Definition: plot.C:35
void nova::database::dBTable_ ( ::std::ostream &  os,
const ::nova::database::dBTable x,
::xercesc::DOMErrorHandler &  eh,
const ::xml_schema::namespace_infomap m = ::xml_schema::namespace_infomap (),
const ::std::string &  e = "UTF-8",
::xml_schema::flags  f = 0 
)

Definition at line 2951 of file NovaDatabase.cpp.

References d, dBTable_(), and confusionMatrixTree::t.

2957  {
2958  ::xml_schema::dom::unique_ptr< ::xercesc::DOMDocument > d (
2959  ::nova::database::dBTable_ (s, m, f));
2960  ::xsd::cxx::xml::dom::ostream_format_target t (o);
2961  if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f))
2962  {
2963  throw ::xsd::cxx::tree::serialization< char > ();
2964  }
2965  }
const XML_Char * s
Definition: expat.h:262
Float_t d
Definition: plot.C:236
::std::unique_ptr< ::nova::database::dBTable > dBTable_(const ::std::string &uri,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
Float_t e
Definition: plot.C:35
void nova::database::dBTable_ ( ::xercesc::XMLFormatTarget &  ft,
const ::nova::database::dBTable x,
const ::xml_schema::namespace_infomap m = ::xml_schema::namespace_infomap (),
const ::std::string &  e = "UTF-8",
::xml_schema::flags  f = 0 
)

Definition at line 2968 of file NovaDatabase.cpp.

References d, dBTable_(), and make_syst_table_plots::h.

2973  {
2974  ::xml_schema::dom::unique_ptr< ::xercesc::DOMDocument > d (
2975  ::nova::database::dBTable_ (s, m, f));
2976 
2977  ::xsd::cxx::tree::error_handler< char > h;
2978 
2979  if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f))
2980  {
2981  h.throw_if_failed< ::xsd::cxx::tree::serialization< char > > ();
2982  }
2983  }
const XML_Char * s
Definition: expat.h:262
Float_t d
Definition: plot.C:236
::std::unique_ptr< ::nova::database::dBTable > dBTable_(const ::std::string &uri,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
Float_t e
Definition: plot.C:35
void nova::database::dBTable_ ( ::xercesc::XMLFormatTarget &  ft,
const ::nova::database::dBTable x,
::xml_schema::error_handler eh,
const ::xml_schema::namespace_infomap m = ::xml_schema::namespace_infomap (),
const ::std::string &  e = "UTF-8",
::xml_schema::flags  f = 0 
)

Definition at line 2986 of file NovaDatabase.cpp.

References d, and dBTable_().

2992  {
2993  ::xml_schema::dom::unique_ptr< ::xercesc::DOMDocument > d (
2994  ::nova::database::dBTable_ (s, m, f));
2995  if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f))
2996  {
2997  throw ::xsd::cxx::tree::serialization< char > ();
2998  }
2999  }
const XML_Char * s
Definition: expat.h:262
Float_t d
Definition: plot.C:236
::std::unique_ptr< ::nova::database::dBTable > dBTable_(const ::std::string &uri,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
Float_t e
Definition: plot.C:35
void nova::database::dBTable_ ( ::xercesc::XMLFormatTarget &  ft,
const ::nova::database::dBTable x,
::xercesc::DOMErrorHandler &  eh,
const ::xml_schema::namespace_infomap m = ::xml_schema::namespace_infomap (),
const ::std::string &  e = "UTF-8",
::xml_schema::flags  f = 0 
)

Definition at line 3002 of file NovaDatabase.cpp.

References d, and dBTable_().

3008  {
3009  ::xml_schema::dom::unique_ptr< ::xercesc::DOMDocument > d (
3010  ::nova::database::dBTable_ (s, m, f));
3011  if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f))
3012  {
3013  throw ::xsd::cxx::tree::serialization< char > ();
3014  }
3015  }
const XML_Char * s
Definition: expat.h:262
Float_t d
Definition: plot.C:236
::std::unique_ptr< ::nova::database::dBTable > dBTable_(const ::std::string &uri,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
Float_t e
Definition: plot.C:35
void nova::database::dBTable_ ( ::xercesc::DOMDocument &  d,
const ::nova::database::dBTable x,
::xml_schema::flags  f = 0 
)

Definition at line 3018 of file NovaDatabase.cpp.

References e, and getGoodRuns4SAM::n.

3021  {
3022  ::xercesc::DOMElement& e (*d.getDocumentElement ());
3023  const ::xsd::cxx::xml::qualified_name< char > n (
3024  ::xsd::cxx::xml::dom::name< char > (e));
3025 
3026  if (n.name () == "dBTable" &&
3027  n.namespace_ () == "")
3028  {
3029  e << s;
3030  }
3031  else
3032  {
3033  throw ::xsd::cxx::tree::unexpected_element < char > (
3034  n.name (),
3035  n.namespace_ (),
3036  "dBTable",
3037  "");
3038  }
3039  }
const XML_Char * s
Definition: expat.h:262
Float_t d
Definition: plot.C:236
Float_t e
Definition: plot.C:35
xml_schema::dom::unique_ptr<::xercesc::DOMDocument > nova::database::dBTable_ ( const ::nova::database::dBTable x,
const ::xml_schema::namespace_infomap m = ::xml_schema::namespace_infomap (),
::xml_schema::flags  f = 0 
)

Definition at line 3042 of file NovaDatabase.cpp.

References d, and nova::dbi::dBTable_().

3045  {
3046  ::xml_schema::dom::unique_ptr< ::xercesc::DOMDocument > d (
3047  ::xsd::cxx::xml::dom::serialize< char > (
3048  "dBTable",
3049  "",
3050  m, f));
3051 
3053  return d;
3054  }
::std::unique_ptr< ::nova::dbi::dBTable > dBTable_(const ::std::string &uri,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
Definition: Database.cpp:2371
const XML_Char * s
Definition: expat.h:262
Float_t d
Definition: plot.C:236
std::ostream& nova::database::operator<< ( std::ostream &  stream,
const Row row 
)
inline

Definition at line 69 of file Row.h.

References nova::database::Row::fCol, MECModelEnuComparisons::i, and runNovaSAM::stream.

69  {
70  for (unsigned int i=0; i<row.fCol.size(); ++i) {
71  stream << row.fCol[i];
72  if (i < row.fCol.size()-1)
73  stream << ", ";
74  }
75  return stream;
76  }
std::ostream& nova::database::operator<< ( std::ostream &  stream,
const Column col 
)
inline

Definition at line 134 of file Column.h.

References nova::database::Column::fIsNull, nova::database::Column::fType, nova::database::Column::fValue, and runNovaSAM::stream.

134  {
135  if (col.fIsNull) {
136  stream << "NULL";
137  }
138  else {
139  if (col.fType == "bool") {
140  if (col.fValue == "1")
141  stream << "true";
142  else
143  stream << "false";
144  }
145  else {
146  bool needsQuotes = (col.fType == "string" || col.fType == "text" ||
147  col.fType == "timestamp" || col.fType == "date" );
148  if (needsQuotes) stream << "\'";
149  stream << col.fValue;
150  if (needsQuotes) stream << "\'";
151  }
152  }
153  return stream;
154  }
Int_t col[ntarg]
Definition: Style.C:29
std::ostream& nova::database::operator<< ( std::ostream &  stream,
const Table t 
)
inline

Definition at line 319 of file Table.h.

References allTimeWatchdog::endl, nova::database::Table::fRow, calib::j, and runNovaSAM::stream.

319  {
320  for (unsigned int j=0; j<t.fRow.size(); ++j) {
321  stream << t.fRow[j] << std::endl;
322  }
323  return stream;
324  }
const double j
Definition: BetheBloch.cxx:29
void nova::database::operator<< ( ::xercesc::DOMElement &  e,
const Tolerance_t i 
)

Definition at line 3057 of file NovaDatabase.cpp.

References a, om::cerr, allTimeWatchdog::endl, nova::database::Tolerance_t::hasTolType(), nova::database::Tolerance_t::hasTolValue(), MECModelEnuComparisons::i, nova::database::Tolerance_t::tolType(), and nova::database::Tolerance_t::tolValue().

3058  {
3059  e << static_cast< const ::xml_schema::type& > (i);
3060 
3061  // tolValue
3062  //
3063  {
3064  ::xercesc::DOMAttr& a (
3065  ::xsd::cxx::xml::dom::create_attribute (
3066  "tolValue",
3067  e));
3068 
3069  if (! i.hasTolValue ()) {
3070  std::cerr << "WARNING: attempting to serialize a Tolerance_t with an empty tolValue field!" << std::endl;
3071  }
3072  a << i.tolValue ();
3073  }
3074 
3075  // tolType
3076  //
3077  {
3078  ::xercesc::DOMAttr& a (
3079  ::xsd::cxx::xml::dom::create_attribute (
3080  "tolType",
3081  e));
3082 
3083  if (! i.hasTolType ()) {
3084  std::cerr << "WARNING: attempting to serialize a Tolerance_t with an empty tolType field!" << std::endl;
3085  }
3086  a << i.tolType ();
3087  }
3088  }
OStream cerr
Definition: OStream.cxx:7
const double a
Float_t e
Definition: plot.C:35
void nova::database::operator<< ( ::xercesc::DOMElement &  e,
const dBColumn_t i 
)

Definition at line 3091 of file NovaDatabase.cpp.

References a, om::cerr, nova::database::dBColumn_t::colType(), allTimeWatchdog::endl, nova::database::dBColumn_t::fKeyColumn(), nova::database::dBColumn_t::fKeyTable(), nova::database::dBColumn_t::hasName(), MECModelEnuComparisons::i, nova::database::dBColumn_t::name(), nova::database::dBColumn_t::null(), nova::database::dBColumn_t::tolerance(), and nova::database::dBColumn_t::value().

3092  {
3093  e << static_cast< const ::xml_schema::type& > (i);
3094 
3095  // tolerance
3096  //
3097  if (i.tolerance ())
3098  {
3099  ::xercesc::DOMElement& s (
3100  ::xsd::cxx::xml::dom::create_element (
3101  "tolerance",
3102  e));
3103 
3104  s << *i.tolerance ();
3105  }
3106 
3107  // name
3108  //
3109  {
3110  ::xercesc::DOMAttr& a (
3111  ::xsd::cxx::xml::dom::create_attribute (
3112  "name",
3113  e));
3114 
3115  if (! i.hasName ()) {
3116  std::cerr << "WARNING: attempting to serialize a dBColumn_t with an empty name field!" << std::endl;
3117  }
3118  a << i.name ();
3119  }
3120 
3121  // colType
3122  //
3123  if (i.colType ())
3124  {
3125  ::xercesc::DOMAttr& a (
3126  ::xsd::cxx::xml::dom::create_attribute (
3127  "colType",
3128  e));
3129 
3130  a << *i.colType ();
3131  }
3132 
3133  // value
3134  //
3135  if (i.value ())
3136  {
3137  ::xercesc::DOMAttr& a (
3138  ::xsd::cxx::xml::dom::create_attribute (
3139  "value",
3140  e));
3141 
3142  a << *i.value ();
3143  }
3144 
3145  // null
3146  //
3147  if (i.null ())
3148  {
3149  ::xercesc::DOMAttr& a (
3150  ::xsd::cxx::xml::dom::create_attribute (
3151  "null",
3152  e));
3153 
3154  a << *i.null ();
3155  }
3156 
3157  // fKeyTable
3158  //
3159  if (i.fKeyTable ())
3160  {
3161  ::xercesc::DOMAttr& a (
3162  ::xsd::cxx::xml::dom::create_attribute (
3163  "fKeyTable",
3164  e));
3165 
3166  a << *i.fKeyTable ();
3167  }
3168 
3169  // fKeyColumn
3170  //
3171  if (i.fKeyColumn ())
3172  {
3173  ::xercesc::DOMAttr& a (
3174  ::xsd::cxx::xml::dom::create_attribute (
3175  "fKeyColumn",
3176  e));
3177 
3178  a << *i.fKeyColumn ();
3179  }
3180  }
OStream cerr
Definition: OStream.cxx:7
const XML_Char * s
Definition: expat.h:262
const double a
Float_t e
Definition: plot.C:35
void nova::database::operator<< ( ::xercesc::DOMElement &  e,
const dBCheck_t i 
)

Definition at line 3183 of file NovaDatabase.cpp.

References a, om::cerr, nova::database::dBCheck_t::constraint(), allTimeWatchdog::endl, nova::database::dBCheck_t::hasConstraint(), and MECModelEnuComparisons::i.

3184  {
3185  e << static_cast< const ::xml_schema::type& > (i);
3186 
3187  // constraint
3188  //
3189  {
3190  ::xercesc::DOMAttr& a (
3191  ::xsd::cxx::xml::dom::create_attribute (
3192  "constraint",
3193  e));
3194 
3195  if (! i.hasConstraint ()) {
3196  std::cerr << "WARNING: attempting to serialize a dBCheck_t with an empty constraint field!" << std::endl;
3197  }
3198  a << i.constraint ();
3199  }
3200  }
OStream cerr
Definition: OStream.cxx:7
const double a
Float_t e
Definition: plot.C:35
void nova::database::operator<< ( ::xercesc::DOMElement &  e,
const dBRow_t i 
)

Definition at line 3203 of file NovaDatabase.cpp.

References b, nova::database::dBRow_t::dBCol(), MECModelEnuComparisons::i, and getGoodRuns4SAM::n.

3204  {
3205  e << static_cast< const ::xml_schema::type& > (i);
3206 
3207  // dBCol
3208  //
3209  for (dBRow_t::dBCol_const_iterator
3210  b (i.dBCol ().begin ()), n (i.dBCol ().end ());
3211  b != n; ++b)
3212  {
3213  ::xercesc::DOMElement& s (
3214  ::xsd::cxx::xml::dom::create_element (
3215  "dBCol",
3216  e));
3217 
3218  s << *b;
3219  }
3220  }
const XML_Char * s
Definition: expat.h:262
const hit & b
Definition: hits.cxx:21
Float_t e
Definition: plot.C:35
void nova::database::operator<< ( ::xercesc::DOMElement &  e,
const dBTable i 
)

Definition at line 3223 of file NovaDatabase.cpp.

References a, nova::database::dBTable::addInsertTime(), nova::database::dBTable::addInsertUser(), nova::database::dBTable::addUpdateTime(), nova::database::dBTable::addUpdateUser(), b, om::cerr, nova::database::dBTable::creationDate(), nova::database::dBTable::dBCheck(), nova::database::dBTable::dBColumn(), nova::database::dBTable::dbHost(), nova::database::dBTable::dbName(), nova::database::dBTable::dBPKey(), nova::database::dBTable::dbPort(), nova::database::dBTable::dBRow(), nova::database::dBTable::dbType(), nova::database::dBTable::dBUnique(), allTimeWatchdog::endl, nova::database::dBTable::hasDbHost(), nova::database::dBTable::hasDbName(), nova::database::dBTable::hasTableName(), MECModelEnuComparisons::i, nova::database::dBTable::ignoreDB(), nova::database::dBTable::maintainer(), getGoodRuns4SAM::n, nova::database::dBTable::schema(), nova::database::dBTable::tableName(), nova::database::dBTable::tableType(), and nova::database::dBTable::xmlOverDB().

3224  {
3225  e << static_cast< const ::xml_schema::type& > (i);
3226 
3227  // dBColumn
3228  //
3229  for (dBTable::dBColumn_const_iterator
3230  b (i.dBColumn ().begin ()), n (i.dBColumn ().end ());
3231  b != n; ++b)
3232  {
3233  ::xercesc::DOMElement& s (
3234  ::xsd::cxx::xml::dom::create_element (
3235  "dBColumn",
3236  e));
3237 
3238  s << *b;
3239  }
3240 
3241  // dBPKey
3242  //
3243  if (i.dBPKey ())
3244  {
3245  ::xercesc::DOMElement& s (
3246  ::xsd::cxx::xml::dom::create_element (
3247  "dBPKey",
3248  e));
3249 
3250  s << *i.dBPKey ();
3251  }
3252 
3253  // dBUnique
3254  //
3255  for (dBTable::dBUnique_const_iterator
3256  b (i.dBUnique ().begin ()), n (i.dBUnique ().end ());
3257  b != n; ++b)
3258  {
3259  ::xercesc::DOMElement& s (
3260  ::xsd::cxx::xml::dom::create_element (
3261  "dBUnique",
3262  e));
3263 
3264  s << *b;
3265  }
3266 
3267  // dBCheck
3268  //
3269  for (dBTable::dBCheck_const_iterator
3270  b (i.dBCheck ().begin ()), n (i.dBCheck ().end ());
3271  b != n; ++b)
3272  {
3273  ::xercesc::DOMElement& s (
3274  ::xsd::cxx::xml::dom::create_element (
3275  "dBCheck",
3276  e));
3277 
3278  s << *b;
3279  }
3280 
3281  // dBRow
3282  //
3283  for (dBTable::dBRow_const_iterator
3284  b (i.dBRow ().begin ()), n (i.dBRow ().end ());
3285  b != n; ++b)
3286  {
3287  ::xercesc::DOMElement& s (
3288  ::xsd::cxx::xml::dom::create_element (
3289  "dBRow",
3290  e));
3291 
3292  s << *b;
3293  }
3294 
3295  // tableName
3296  //
3297  {
3298  ::xercesc::DOMAttr& a (
3299  ::xsd::cxx::xml::dom::create_attribute (
3300  "tableName",
3301  e));
3302 
3303  if (! i.hasTableName ()) {
3304  std::cerr << "WARNING: attempting to serialize a dBTable with an empty tableName field!" << std::endl;
3305  }
3306  a << i.tableName ();
3307  }
3308 
3309  // dbHost
3310  //
3311  {
3312  ::xercesc::DOMAttr& a (
3313  ::xsd::cxx::xml::dom::create_attribute (
3314  "dbHost",
3315  e));
3316 
3317  if (! i.hasDbHost ()) {
3318  std::cerr << "WARNING: attempting to serialize a dBTable with an empty dbHost field!" << std::endl;
3319  }
3320  a << i.dbHost ();
3321  }
3322 
3323  // dbName
3324  //
3325  {
3326  ::xercesc::DOMAttr& a (
3327  ::xsd::cxx::xml::dom::create_attribute (
3328  "dbName",
3329  e));
3330 
3331  if (! i.hasDbName ()) {
3332  std::cerr << "WARNING: attempting to serialize a dBTable with an empty dbName field!" << std::endl;
3333  }
3334  a << i.dbName ();
3335  }
3336 
3337  // dbType
3338  //
3339  if (i.dbType ())
3340  {
3341  ::xercesc::DOMAttr& a (
3342  ::xsd::cxx::xml::dom::create_attribute (
3343  "dbType",
3344  e));
3345 
3346  a << *i.dbType ();
3347  }
3348 
3349  // dbPort
3350  //
3351  if (i.dbPort ())
3352  {
3353  ::xercesc::DOMAttr& a (
3354  ::xsd::cxx::xml::dom::create_attribute (
3355  "dbPort",
3356  e));
3357 
3358  a << *i.dbPort ();
3359  }
3360 
3361  // tableType
3362  //
3363  if (i.tableType ())
3364  {
3365  ::xercesc::DOMAttr& a (
3366  ::xsd::cxx::xml::dom::create_attribute (
3367  "tableType",
3368  e));
3369 
3370  a << *i.tableType ();
3371  }
3372 
3373  // creationDate
3374  //
3375  if (i.creationDate ())
3376  {
3377  ::xercesc::DOMAttr& a (
3378  ::xsd::cxx::xml::dom::create_attribute (
3379  "creationDate",
3380  e));
3381 
3382  a << *i.creationDate ();
3383  }
3384 
3385  // maintainer
3386  //
3387  if (i.maintainer ())
3388  {
3389  ::xercesc::DOMAttr& a (
3390  ::xsd::cxx::xml::dom::create_attribute (
3391  "maintainer",
3392  e));
3393 
3394  a << *i.maintainer ();
3395  }
3396 
3397  // xmlOverDB
3398  //
3399  if (i.xmlOverDB ())
3400  {
3401  ::xercesc::DOMAttr& a (
3402  ::xsd::cxx::xml::dom::create_attribute (
3403  "xmlOverDB",
3404  e));
3405 
3406  a << *i.xmlOverDB ();
3407  }
3408 
3409  // ignoreDB
3410  //
3411  if (i.ignoreDB ())
3412  {
3413  ::xercesc::DOMAttr& a (
3414  ::xsd::cxx::xml::dom::create_attribute (
3415  "ignoreDB",
3416  e));
3417 
3418  a << *i.ignoreDB ();
3419  }
3420 
3421  // addInsertTime
3422  //
3423  if (i.addInsertTime ())
3424  {
3425  ::xercesc::DOMAttr& a (
3426  ::xsd::cxx::xml::dom::create_attribute (
3427  "addInsertTime",
3428  e));
3429 
3430  a << *i.addInsertTime ();
3431  }
3432 
3433  // addInsertUser
3434  //
3435  if (i.addInsertUser ())
3436  {
3437  ::xercesc::DOMAttr& a (
3438  ::xsd::cxx::xml::dom::create_attribute (
3439  "addInsertUser",
3440  e));
3441 
3442  a << *i.addInsertUser ();
3443  }
3444 
3445  // addUpdateTime
3446  //
3447  if (i.addUpdateTime ())
3448  {
3449  ::xercesc::DOMAttr& a (
3450  ::xsd::cxx::xml::dom::create_attribute (
3451  "addUpdateTime",
3452  e));
3453 
3454  a << *i.addUpdateTime ();
3455  }
3456 
3457  // addUpdateUser
3458  //
3459  if (i.addUpdateUser ())
3460  {
3461  ::xercesc::DOMAttr& a (
3462  ::xsd::cxx::xml::dom::create_attribute (
3463  "addUpdateUser",
3464  e));
3465 
3466  a << *i.addUpdateUser ();
3467  }
3468 
3469  // schema
3470  //
3471  if (i.schema ())
3472  {
3473  ::xercesc::DOMAttr& a (
3474  ::xsd::cxx::xml::dom::create_attribute (
3475  "schema",
3476  e));
3477 
3478  a << *i.schema ();
3479  }
3480  }
OStream cerr
Definition: OStream.cxx:7
const XML_Char * s
Definition: expat.h:262
const double a
const hit & b
Definition: hits.cxx:21
Float_t e
Definition: plot.C:35