[xsde-users] Prolog items
Boris Kolpackov
boris at codesynthesis.com
Thu Jan 14 12:02:37 EST 2016
Hi Chris,
Jones Chris <Chris.Jones at helvar.com> writes:
> #ifndef TEST1_PSKEL_HXX
> #define TEST1_PSKEL_HXX
> // Begin prologue.
> //
> #include <xsde/cxx/hybrid/any-type.hxx>
> #include <xsde/cxx/hybrid/any-type-pskel.hxx>
> #include <xsde/cxx/hybrid/any-type-pimpl.hxx>
> namespace XMLEntities
> {
> using ::xsde::cxx::hybrid::any_type;
> using ::xsde::cxx::hybrid::any_type_pskel;
> using ::xsde::cxx::hybrid::any_type_pimpl;
> }
> //
> // End prologue.
Now I am confused. There is nothing wrong with this code. The C++/Hybrid
mapping, underneath, calls C++/Parser to generate parser skeletons and it
uses prologue/type-map machinery to tailor them to its own needs.
Specifically, if I run:
xsde cxx-hybrid --generate-parser --hxx-prologue pskel=FRED1 \
--hxx-prologue pskel=FRED2 hello.xsd
I get, in hello-pskel.hxx:
#ifndef CXX__HELLO_PSKEL_HXX
#define CXX__HELLO_PSKEL_HXX
// Begin prologue.
//
FRED1
FRED2
#include <xsde/cxx/hybrid/any-type.hxx>
#include <xsde/cxx/hybrid/any-type-pskel.hxx>
#include <xsde/cxx/hybrid/any-type-pimpl.hxx>
namespace xml_schema
{
using ::xsde::cxx::hybrid::any_type;
using ::xsde::cxx::hybrid::any_type_pskel;
using ::xsde::cxx::hybrid::any_type_pimpl;
}
//
// End prologue.
Which is exactly what's expected.
Boris
More information about the xsde-users
mailing list