From 823026b58211a4166de06ac243d978dcb9930271 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 22 Jan 2024 15:58:08 +0300 Subject: Turn odb repository into muti-package repository Also remove the autoconf/make-based build system. --- odb/semantics/relational/index.cxx | 145 ------------------------------------- 1 file changed, 145 deletions(-) delete mode 100644 odb/semantics/relational/index.cxx (limited to 'odb/semantics/relational/index.cxx') diff --git a/odb/semantics/relational/index.cxx b/odb/semantics/relational/index.cxx deleted file mode 100644 index 2329f3a..0000000 --- a/odb/semantics/relational/index.cxx +++ /dev/null @@ -1,145 +0,0 @@ -// file : odb/semantics/relational/index.cxx -// license : GNU GPL v3; see accompanying LICENSE file - -#include - -#include - -namespace semantics -{ - namespace relational - { - // index - // - index:: - index (index const& i, uscope& s, graph& g) - : key (i, s, g), - type_ (i.type_), - method_ (i.method_), - options_ (i.options_) - { - } - - index:: - index (xml::parser& p, uscope& s, graph& g) - : key (p, s, g), - type_ (p.attribute ("type", string ())), - method_ (p.attribute ("method", string ())), - options_ (p.attribute ("options", string ())) - { - } - - index& index:: - clone (uscope& s, graph& g) const - { - return g.new_node (*this, s, g); - } - - void index:: - serialize_attributes (xml::serializer& s) const - { - key::serialize_attributes (s); - - if (!type ().empty ()) - s.attribute ("type", type ()); - - if (!method ().empty ()) - s.attribute ("method", method ()); - - if (!options ().empty ()) - s.attribute ("options", options ()); - } - - void index:: - serialize (xml::serializer& s) const - { - s.start_element (xmlns, "index"); - serialize_attributes (s); - key::serialize_content (s); - s.end_element (); - } - - // add_index - // - add_index& add_index:: - clone (uscope& s, graph& g) const - { - return g.new_node (*this, s, g); - } - - void add_index:: - serialize (xml::serializer& s) const - { - s.start_element (xmlns, "add-index"); - index::serialize_attributes (s); - index::serialize_content (s); - s.end_element (); - } - - // drop_index - // - drop_index:: - drop_index (xml::parser& p, uscope&, graph& g) - : unameable (p, g) - { - p.content (xml::content::empty); - } - - drop_index& drop_index:: - clone (uscope& s, graph& g) const - { - return g.new_node (*this, s, g); - } - - void drop_index:: - serialize (xml::serializer& s) const - { - s.start_element (xmlns, "drop-index"); - unameable::serialize_attributes (s); - s.end_element (); - } - - // type info - // - namespace - { - struct init - { - init () - { - unameable::parser_map& m (unameable::parser_map_); - - m["index"] = &unameable::parser_impl; - m["add-index"] = &unameable::parser_impl; - m["drop-index"] = &unameable::parser_impl; - - using compiler::type_info; - - // index - // - { - type_info ti (typeid (index)); - ti.add_base (typeid (key)); - insert (ti); - } - - // add_index - // - { - type_info ti (typeid (add_index)); - ti.add_base (typeid (index)); - insert (ti); - } - - // drop_index - // - { - type_info ti (typeid (drop_index)); - ti.add_base (typeid (unameable)); - insert (ti); - } - } - } init_; - } - } -} -- cgit v1.1