Item types need to have their own class
Bug #935666 reported by
Rodolfo Ochoa
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
Low
|
Markos Zaharioudakis |
Bug Description
Items need to be extended to have a class that define base types, currently we have a class named:
zorba::
which has some functionality, but is not implemented all along zorba, also the class:
zorba::IdentTypes
with two sets:
kind_t
quantifier_t
We should have another set for basic types, for example in the Item case, when you get the type, you actually get another Item that gives you the type in a String, this is not efficient for XQJ API implementation trying to identify the type and convert it into a constant.
Here is a link where you can see how XQJ defines all types and node kinds: http://
Related branches
lp:~zorba-coders/zorba/temp-csx-schema
- Markos Zaharioudakis: Approve
- Chris Hillery: Approve
- Matthias Brantner: Approve
-
Diff: 539 lines (+187/-122)19 files modifiedinclude/zorba/item.h (+5/-0)
include/zorba/item_factory.h (+33/-2)
include/zorba/store_consts.h (+65/-0)
src/api/item.cpp (+12/-0)
src/api/itemfactoryimpl.cpp (+53/-14)
src/api/itemfactoryimpl.h (+8/-0)
src/runtime/core/arithmetic_impl.h (+1/-1)
src/runtime/numerics/NumericsImpl.h (+1/-1)
src/runtime/spec/plan_iter_visitor_h.xq (+1/-1)
src/runtime/visitors/pregenerated/planiter_visitor.h (+1/-1)
src/store/api/item.h (+1/-1)
src/store/api/xs_type_codes.h (+0/-94)
src/store/naive/atomic_items.h (+1/-1)
src/store/naive/store.cpp (+0/-1)
src/types/casting.cpp (+1/-1)
src/types/casting.h (+1/-1)
src/types/schema/validate.cpp (+1/-1)
src/types/typemanager.h (+1/-1)
src/types/typeops.h (+1/-1)
Changed in zorba: | |
importance: | Undecided → Low |
assignee: | nobody → Markos Zaharioudakis (markos-za) |
Changed in zorba: | |
milestone: | none → 2.7 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This can also provide the functionality to create any item with a defined base type.