summaryrefslogtreecommitdiff
path: root/CIAO/tools/Config_Handlers/XMLSchema
diff options
context:
space:
mode:
Diffstat (limited to 'CIAO/tools/Config_Handlers/XMLSchema')
-rw-r--r--CIAO/tools/Config_Handlers/XMLSchema/Traversal.hpp72
-rw-r--r--CIAO/tools/Config_Handlers/XMLSchema/Traversal.ipp10
-rw-r--r--CIAO/tools/Config_Handlers/XMLSchema/Traversal.tpp11
-rw-r--r--CIAO/tools/Config_Handlers/XMLSchema/TypeInfo.hpp22
-rw-r--r--CIAO/tools/Config_Handlers/XMLSchema/TypeInfo.ipp7
-rw-r--r--CIAO/tools/Config_Handlers/XMLSchema/TypeInfo.tpp97
-rw-r--r--CIAO/tools/Config_Handlers/XMLSchema/Types.hpp574
-rw-r--r--CIAO/tools/Config_Handlers/XMLSchema/Types.ipp8
-rw-r--r--CIAO/tools/Config_Handlers/XMLSchema/Types.tpp9
-rw-r--r--CIAO/tools/Config_Handlers/XMLSchema/Writer.hpp159
-rw-r--r--CIAO/tools/Config_Handlers/XMLSchema/Writer.ipp10
-rw-r--r--CIAO/tools/Config_Handlers/XMLSchema/Writer.tpp10
12 files changed, 0 insertions, 989 deletions
diff --git a/CIAO/tools/Config_Handlers/XMLSchema/Traversal.hpp b/CIAO/tools/Config_Handlers/XMLSchema/Traversal.hpp
deleted file mode 100644
index b435bb4370f..00000000000
--- a/CIAO/tools/Config_Handlers/XMLSchema/Traversal.hpp
+++ /dev/null
@@ -1,72 +0,0 @@
-// file : XMLSchema/Traversal.hpp
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-#ifndef XMLSCHEMA_TRAVERSAL_HPP
-#define XMLSCHEMA_TRAVERSAL_HPP
-
-#include <XSCRT/Traversal.hpp>
-#include <XMLSchema/Types.hpp>
-
-namespace XMLSchema
-{
- namespace Traversal
- {
- // Automatic traversal of IDREFs.
- //
- //
- struct IDREF :
- XSCRT::Traversal::Traverser<XMLSchema::IDREF_Base, XSCRT::Type>
- {
- virtual void
- traverse (XMLSchema::IDREF_Base& r)
- {
- if (r.get ()) dispatch (*(r.get ()));
- }
-
- virtual void
- traverse (XMLSchema::IDREF_Base const& r)
- {
- if (r.get ()) dispatch (*(r.get ()));
- }
- };
-
-
- template <typename T>
- struct Traverser : XSCRT::Traversal::Traverser<T, XSCRT::Type>
- {
- };
-
- typedef Traverser<byte> byte;
- typedef Traverser<unsignedByte> unsignedByte;
-
- typedef Traverser<short_> short_;
- typedef Traverser<unsignedShort> unsignedShort;
-
- typedef Traverser<int_> int_;
- typedef Traverser<unsignedInt> unsignedInt;
-
- typedef Traverser<long_> long_;
- typedef Traverser<unsignedLong> unsignedLong;
-
- typedef Traverser<boolean> boolean;
-
- typedef Traverser<float_> float_;
- typedef Traverser<double_> double_;
-
- template <typename C>
- struct string : Traverser<XMLSchema::string<C> >
- {
- };
-
- template <typename C>
- struct ID : Traverser<XMLSchema::ID<C> >
- {
- };
- }
-}
-
-#include <XMLSchema/Traversal.ipp>
-#include <XMLSchema/Traversal.tpp>
-
-#endif // XMLSCHEMA_TRAVERSAL_HPP
diff --git a/CIAO/tools/Config_Handlers/XMLSchema/Traversal.ipp b/CIAO/tools/Config_Handlers/XMLSchema/Traversal.ipp
deleted file mode 100644
index a5c614182a3..00000000000
--- a/CIAO/tools/Config_Handlers/XMLSchema/Traversal.ipp
+++ /dev/null
@@ -1,10 +0,0 @@
-// file : XMLSchema/Traversal.ipp
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-namespace XMLSchema
-{
- namespace Traversal
- {
- }
-}
diff --git a/CIAO/tools/Config_Handlers/XMLSchema/Traversal.tpp b/CIAO/tools/Config_Handlers/XMLSchema/Traversal.tpp
deleted file mode 100644
index d79c13630fb..00000000000
--- a/CIAO/tools/Config_Handlers/XMLSchema/Traversal.tpp
+++ /dev/null
@@ -1,11 +0,0 @@
-// file : XMLSchema/Traversal.tpp
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-namespace XMLSchema
-{
- namespace Traversal
- {
-
- }
-}
diff --git a/CIAO/tools/Config_Handlers/XMLSchema/TypeInfo.hpp b/CIAO/tools/Config_Handlers/XMLSchema/TypeInfo.hpp
deleted file mode 100644
index e4fa52dbb9c..00000000000
--- a/CIAO/tools/Config_Handlers/XMLSchema/TypeInfo.hpp
+++ /dev/null
@@ -1,22 +0,0 @@
-// file : XMLSchema/TypeInfo.hpp
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-#ifndef XMLSCHEMA_TYPE_INFO_HPP
-#define XMLSCHEMA_TYPE_INFO_HPP
-
-#include <XSCRT/ExtendedTypeInfo.hpp>
-
-namespace XMLSchema
-{
- template <typename C>
- struct TypeInfoInitializer
- {
- TypeInfoInitializer (XSCRT::ExtendedTypeInfoMap&);
- };
-}
-
-#include <XMLSchema/TypeInfo.ipp>
-#include <XMLSchema/TypeInfo.tpp>
-
-#endif // XMLSCHEMA_TYPE_INFO_HPP
diff --git a/CIAO/tools/Config_Handlers/XMLSchema/TypeInfo.ipp b/CIAO/tools/Config_Handlers/XMLSchema/TypeInfo.ipp
deleted file mode 100644
index 5b9422f38c8..00000000000
--- a/CIAO/tools/Config_Handlers/XMLSchema/TypeInfo.ipp
+++ /dev/null
@@ -1,7 +0,0 @@
-// file : XMLSchema/TypeInfo.ipp
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-namespace XMLSchema
-{
-}
diff --git a/CIAO/tools/Config_Handlers/XMLSchema/TypeInfo.tpp b/CIAO/tools/Config_Handlers/XMLSchema/TypeInfo.tpp
deleted file mode 100644
index 6ead5b8f7b2..00000000000
--- a/CIAO/tools/Config_Handlers/XMLSchema/TypeInfo.tpp
+++ /dev/null
@@ -1,97 +0,0 @@
-// file : XMLSchema/TypeInfo.tpp
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-namespace XMLSchema
-{
- //@@ VC6
- //
- template<typename T>
- void
- add_info (XSCRT::ExtendedTypeInfoMap& map, T*)
- {
- using XSCRT::TypeId;
- using XSCRT::ExtendedTypeInfo;
-
- TypeId id (typeid (T));
- ExtendedTypeInfo info (id);
-
- info.add_base (ExtendedTypeInfo::Access::public_,
- false,
- typeid (XSCRT::Type));
-
- map.insert (std::make_pair (id, info));
- }
-
-
- template <typename C>
- inline
- TypeInfoInitializer<C>::
- TypeInfoInitializer (XSCRT::ExtendedTypeInfoMap& map)
- {
- using XSCRT::TypeId;
- using XSCRT::ExtendedTypeInfo;
-
- // XSCRT::Type
- //
- {
- TypeId id (typeid (XSCRT::Type));
- map.insert (std::make_pair (id, ExtendedTypeInfo (id)));
- }
-
- //@@ VC6
-
- add_info<byte> (map, 0);
- add_info<unsignedByte> (map, 0);
-
- add_info<short_> (map, 0);
- add_info<unsignedShort> (map, 0);
-
- add_info<int_> (map, 0);
- add_info<unsignedInt> (map, 0);
-
- add_info<long_> (map, 0);
- add_info<unsignedLong> (map, 0);
-
- add_info<boolean> (map, 0);
-
- add_info<float_> (map, 0);;
- add_info<double_> (map, 0);
-
- add_info<string<C> > (map, 0);
-
- add_info<normalizedString<C> > (map, 0);
- add_info<token<C> > (map, 0);
- add_info<NMTOKEN<C> > (map, 0);
- add_info<Name<C> > (map, 0);
- add_info<NCName<C> > (map, 0);
-
- add_info<ID<C> > (map, 0);
-
- // IDREF_Base
- //
- {
- TypeId id (typeid (IDREF_Base));
- ExtendedTypeInfo info (id);
-
- info.add_base (ExtendedTypeInfo::Access::public_,
- false,
- typeid (XSCRT::Type));
-
- map.insert (std::make_pair (id, info));
- }
-
- // IDREF
- //
- {
- TypeId id (typeid (IDREF<C>));
- ExtendedTypeInfo info (id);
-
- info.add_base (ExtendedTypeInfo::Access::public_,
- false,
- typeid (IDREF_Base));
-
- map.insert (std::make_pair (id, info));
- }
- }
-}
diff --git a/CIAO/tools/Config_Handlers/XMLSchema/Types.hpp b/CIAO/tools/Config_Handlers/XMLSchema/Types.hpp
deleted file mode 100644
index a23d7f2cdd9..00000000000
--- a/CIAO/tools/Config_Handlers/XMLSchema/Types.hpp
+++ /dev/null
@@ -1,574 +0,0 @@
-// file : XMLSchema/Types.hpp
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-#ifndef XMLSCHEMA_TYPES_HPP
-#define XMLSCHEMA_TYPES_HPP
-
-#include <string>
-#include "XSCRT/Elements.hpp"
-
-#include "ace/Basic_Types.h"
-/**
- * @@ HACK: VC7
- *
- * Disabled the warning about using this in the base member initialization section.
- * Our use in this file is fine.
- */
-#ifdef _MSC_VER
-# pragma warning ( disable: 4355 )
-#endif
-namespace XMLSchema
-{
- typedef XSCRT::FundamentalType<ACE_INT8> byte;
- typedef XSCRT::FundamentalType<ACE_UINT8> unsignedByte;
-
- typedef XSCRT::FundamentalType<ACE_INT16> short_;
- typedef XSCRT::FundamentalType<ACE_UINT16> unsignedShort;
-
- typedef XSCRT::FundamentalType<ACE_INT32> int_;
- typedef XSCRT::FundamentalType<ACE_UINT32> unsignedInt;
-
- typedef XSCRT::FundamentalType<ACE_INT64> long_;
- typedef XSCRT::FundamentalType<ACE_UINT64> unsignedLong;
-
- //@@ It would be nice to use some arbitrary-length integer class.
- //
- typedef long_ decimal;
- typedef decimal integer;
- typedef integer nonPositiveInteger;
- typedef integer nonNegativeInteger;
- typedef nonNegativeInteger positiveInteger;
- typedef nonPositiveInteger negativeInteger;
-
-
- typedef XSCRT::FundamentalType<bool> boolean;
-
- typedef XSCRT::FundamentalType<float> float_;
- typedef XSCRT::FundamentalType<double> double_;
-
- // Just to make GCC 3.3 and other broken compilers shutup.
- //
- using std::basic_string;
-
-
- template <typename C>
- class string : public XSCRT::Type, public basic_string<C>
- {
- protected:
- typedef basic_string<C> Base__ ;
-
- public:
-
- //@@ VC6 does not inject XSCRT::Type into the scope so I have
- // to qualify it all the time.
- //
-
- string ()
- {
- }
-
- string (XSCRT::XML::Element<C> const& e)
- : Base__ (e.value ())
- {
- }
-
- string (XSCRT::XML::Attribute<C> const& a)
- : Base__ (a.value ())
- {
- }
-
- string (Base__ const& x)
- : Base__ (x)
- {
- }
-
- string (C const* x)
- : Base__ (x)
- {
- }
-
- string&
- operator= (Base__ const& x)
- {
- static_cast<Base__&> (*this) = x;
- return *this;
- }
- };
-
-
- template <typename C>
- class normalizedString : public string<C>
- {
- protected:
- typedef typename string<C>::Base__ Base__;
-
- public:
- normalizedString ()
- {
- }
-
- normalizedString (XSCRT::XML::Element<C> const& e)
- : string<C> (e)
- {
- }
-
- normalizedString (XSCRT::XML::Attribute<C> const& a)
- : string<C> (a)
- {
- }
-
- normalizedString (Base__ const& x)
- : string<C> (x)
- {
- }
-
- normalizedString (C const* x)
- : string<C> (x)
- {
- }
-
- normalizedString&
- operator= (Base__ const& x)
- {
- static_cast<Base__&> (*this) = x;
- return *this;
- }
- };
-
-
- template <typename C>
- class token : public normalizedString<C>
- {
- protected:
- typedef typename normalizedString<C>::Base__ Base__;
-
- public:
- token ()
- {
- }
-
- token (XSCRT::XML::Element<C> const& e)
- : normalizedString<C> (e)
- {
- }
-
- token (XSCRT::XML::Attribute<C> const& a)
- : normalizedString<C> (a)
- {
- }
-
- token (Base__ const& x)
- : normalizedString<C> (x)
- {
- }
-
- token (C const* x)
- : normalizedString<C> (x)
- {
- }
-
- token&
- operator= (Base__ const& x)
- {
- static_cast<Base__&> (*this) = x;
- return *this;
- }
- };
-
-
- template <typename C>
- class NMTOKEN : public token<C>
- {
- protected:
- typedef typename token<C>::Base__ Base__;
-
- public:
- NMTOKEN ()
- {
- }
-
- NMTOKEN (XSCRT::XML::Element<C> const& e)
- : token<C> (e)
- {
- }
-
- NMTOKEN (XSCRT::XML::Attribute<C> const& a)
- : token<C> (a)
- {
- }
-
- NMTOKEN (Base__ const& x)
- : token<C> (x)
- {
- }
-
- NMTOKEN (C const* x)
- : token<C> (x)
- {
- }
-
- NMTOKEN&
- operator= (Base__ const& x)
- {
- static_cast<Base__&> (*this) = x;
- return *this;
- }
- };
-
- template <typename C>
- class Name: public token<C>
- {
- protected:
- typedef typename token<C>::Base__ Base__;
-
- public:
- Name()
- {
- }
-
- Name(XSCRT::XML::Element<C> const& e)
- : token<C> (e)
- {
- }
-
- Name(XSCRT::XML::Attribute<C> const& a)
- : token<C> (a)
- {
- }
-
- Name(Base__ const& x)
- : token<C> (x)
- {
- }
-
- Name (C const* x)
- : token<C> (x)
- {
- }
-
- Name&
- operator= (Base__ const& x)
- {
- static_cast<Base__&> (*this) = x;
- return *this;
- }
- };
-
-
- template <typename C>
- class NCName: public Name<C>
- {
- protected:
- typedef typename Name<C>::Base__ Base__;
-
- public:
- NCName()
- {
- }
-
- NCName(XSCRT::XML::Element<C> const& e)
- : Name<C> (e)
- {
- }
-
- NCName(XSCRT::XML::Attribute<C> const& a)
- : Name<C> (a)
- {
- }
-
- NCName(Base__ const& x)
- : Name<C> (x)
- {
- }
-
- NCName (C const* x)
- : Name<C> (x)
- {
- }
-
- NCName&
- operator= (Base__ const& x)
- {
- static_cast<Base__&> (*this) = x;
- return *this;
- }
- };
-
- template <typename C>
- struct IdentityProvider : XSCRT::IdentityProvider
- {
- IdentityProvider (NCName<C> const& id)
- : id_ (id)
- {
- }
-
- virtual bool
- before (XSCRT::IdentityProvider const& y) const
- {
- return id_ < dynamic_cast<IdentityProvider const&> (y).id_;
- }
-
- private:
- NCName<C> const& id_;
-
- private:
- IdentityProvider (IdentityProvider const&);
-
- IdentityProvider&
- operator= (IdentityProvider const&);
- };
-
-
- template <typename C>
- class ID : public NCName<C>
- {
- protected:
- typedef typename NCName<C>::Base__ Base__;
-
- public:
- ~ID()
- {
- unregister_id ();
- }
-
- ID ()
- : id_provider_ (*this)
- {
- }
-
- ID (XSCRT::XML::Element<C> const& e)
- : NCName<C> (e), id_provider_ (*this)
- {
- }
-
- ID (XSCRT::XML::Attribute<C> const& a)
- : NCName<C> (a), id_provider_ (*this)
- {
- }
-
- ID (ID const& x)
- : NCName<C> (x), id_provider_ (*this)
- {
- }
-
- ID (Base__ const& x)
- : NCName<C> (x), id_provider_ (*this)
- {
- }
-
- ID (C const* x)
- : NCName<C> (x), id_provider_ (*this)
- {
- }
-
- ID&
- operator= (Base__ const& x)
- {
- unregister_id ();
-
- static_cast<NCName<C>&>(*this) = x;
-
- register_id ();
-
- return *this;
- }
-
- ID&
- operator= (ID const& x)
- {
- unregister_id ();
-
- static_cast<NCName<C>&>(*this) = static_cast<NCName<C> const&>(x);
-
- register_id ();
-
- return *this;
- }
-
- public:
- using NCName<C>::container;
-
- virtual void
- container (XSCRT::Type* c)
- {
- unregister_id ();
-
- NCName<C>::container (c);
-
- register_id ();
- }
-
- private:
- using NCName<C>::empty;
- using NCName<C>::root;
-
- void
- register_id ()
- {
- if (NCName<C>::container () != this && !empty ())
- {
- //std::wcerr << "registering " << container ()
- // << " as '" << *this
- // << "' on " << container () << std::endl;
- NCName<C>::container ()->register_id (id_provider_,
- NCName<C>::container ());
- }
- }
-
- void
- unregister_id ()
- {
- if (NCName<C>::container () != this && !empty ())
- {
- //std::wcerr << "un-registering " << container ()
- // << " as '" << *this
- // << "' on " << container () << std::endl;
- NCName<C>::container ()->unregister_id (id_provider_);
- }
- }
-
- private:
- IdentityProvider<C> id_provider_;
- };
-
- struct IDREF_Base : public XSCRT::Type
- {
- virtual XSCRT::Type const*
- get () const = 0;
-
- virtual XSCRT::Type*
- get () = 0;
- };
-
- template <typename C>
- class IDREF : public IDREF_Base
- {
- public:
- IDREF ()
- : id_provider_ (id_)
- {
- }
-
- IDREF (XSCRT::XML::Element<C> const& e)
- : id_ (e), id_provider_ (id_)
- {
- }
-
- IDREF (XSCRT::XML::Attribute<C> const& a)
- : id_ (a), id_provider_ (id_)
- {
- }
-
- IDREF (IDREF const& x)
- : XMLSchema::IDREF_Base (),
- id_ (x.id_), id_provider_ (id_)
- {
- }
-
- IDREF (basic_string<C> const& id)
- : id_ (id), id_provider_ (id_)
- {
- }
-
- IDREF (C const* id)
- : id_ (id), id_provider_ (id_)
- {
- }
-
- IDREF&
- operator= (IDREF const& x)
- {
- id_ = x.id_;
- return *this;
- }
-
- IDREF&
- operator= (basic_string<C> const& x)
- {
- id_ = x;
- return *this;
- }
-
- public:
- NCName<C>
- id () const
- {
- return id_;
- }
-
- public:
- XSCRT::Type const*
- operator-> () const
- {
- return get ();
- }
-
- XSCRT::Type*
- operator-> ()
- {
- return get ();
- }
-
- XSCRT::Type const&
- operator* () const
- {
- return *(get ());
- }
-
- XSCRT::Type&
- operator* ()
- {
- return *(get ());
- }
-
- virtual XSCRT::Type const*
- get () const
- {
- if (!id_.empty () && container () != this)
- {
- return root ()->lookup_id (id_provider_);
- }
- else
- {
- return 0;
- }
- }
-
- virtual XSCRT::Type*
- get ()
- {
- if (!id_.empty () && container () != this)
- {
- return root ()->lookup_id (id_provider_);
- }
- else
- {
- return 0;
- }
- }
-
- // conversion to bool
- //
- typedef void (IDREF::*bool_convertable)();
-
- operator bool_convertable () const
- {
- return get () ? &IDREF::true_ : 0;
- }
-
- private:
- void true_ ()
- {
- }
-
- private:
- NCName<C> id_;
- IdentityProvider<C> id_provider_;
- };
-}
-
-#include "XMLSchema/Types.ipp"
-#include "XMLSchema/Types.tpp"
-
-#endif // XMLSCHEMA_TYPES_HPP
diff --git a/CIAO/tools/Config_Handlers/XMLSchema/Types.ipp b/CIAO/tools/Config_Handlers/XMLSchema/Types.ipp
deleted file mode 100644
index 6b749260f55..00000000000
--- a/CIAO/tools/Config_Handlers/XMLSchema/Types.ipp
+++ /dev/null
@@ -1,8 +0,0 @@
-// file : XMLSchema/Types.ipp
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-namespace XMLSchema
-{
-
-}
diff --git a/CIAO/tools/Config_Handlers/XMLSchema/Types.tpp b/CIAO/tools/Config_Handlers/XMLSchema/Types.tpp
deleted file mode 100644
index 4a8bddcf597..00000000000
--- a/CIAO/tools/Config_Handlers/XMLSchema/Types.tpp
+++ /dev/null
@@ -1,9 +0,0 @@
-// file : XMLSchema/Types.tpp
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-namespace XMLSchema
-{
-
-}
-
diff --git a/CIAO/tools/Config_Handlers/XMLSchema/Writer.hpp b/CIAO/tools/Config_Handlers/XMLSchema/Writer.hpp
deleted file mode 100644
index 4a0c1603efa..00000000000
--- a/CIAO/tools/Config_Handlers/XMLSchema/Writer.hpp
+++ /dev/null
@@ -1,159 +0,0 @@
-// file : XMLSchema/Writer.hpp
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-#ifndef XMLSCHEMA_WRITER_HPP
-#define XMLSCHEMA_WRITER_HPP
-
-#include <sstream>
-
-#include <XSCRT/Writer.hpp>
-
-#include <XMLSchema/Types.hpp>
-#include <XMLSchema/Traversal.hpp>
-
-#include <iostream>
-
-namespace XMLSchema
-{
- namespace Writer
- {
- template <typename T, typename C>
- struct FundamentalType : Traversal::Traverser<T>,
- virtual XSCRT::Writer<C>
- {
- FundamentalType (XSCRT::XML::Element<C>& e)
- : XSCRT::Writer<C> (e)
- {
- }
-
- using XSCRT::Writer<C>::top_;
- using XSCRT::Writer<C>::attr_;
-
- virtual void
- traverse (T const& o)
- {
- using namespace XSCRT::XML;
-
- std::basic_ostringstream<C> os;
-
- os << o;
-
- if (Attribute<C>* a = attr_ ())
- {
- a->value (os.str ());
- }
- else
- {
- top_().value (os.str ());
- }
- }
-
- protected:
- virtual void
- traverse (T &t)
- {
- Traversal::Traverser<T>::traverse (t);
- }
-
- FundamentalType ()
- {
- }
- };
-
- template<typename C>
- struct FundamentalType <XSCRT::FundamentalType<bool>, C> :
- Traversal::Traverser<XSCRT::FundamentalType<bool> >,
- virtual XSCRT::Writer<C>
- {
- FundamentalType (XSCRT::XML::Element<C> &e)
- : XSCRT::Writer<C> (e)
- {
- }
-
- using XSCRT::Writer<C>::top_;
- using XSCRT::Writer<C>::attr_;
-
- virtual void
- traverse (XSCRT::FundamentalType<bool> const &o)
- {
- using namespace XSCRT::XML;
-
- std::basic_ostringstream<C> os;
-
- if (o)
- {
- os << "true";
- }
- else
- {
- os << "false";
- }
-
- if (Attribute<C>* a = attr_ ())
- {
- a->value (os.str ());
- }
- else
- {
- top_().value (os.str ());
- }
- }
-
- protected:
- virtual void
- traverse (XSCRT::FundamentalType<bool> &t)
- {
- Traversal::Traverser<XSCRT::FundamentalType<bool> >::traverse (t);
- }
-
- FundamentalType ()
- {
- }
- };
-
-
- template <typename C>
- struct IDREF : Traversal::Traverser<XMLSchema::IDREF<C> >,
- virtual XSCRT::Writer<C>
- {
- IDREF (XSCRT::XML::Element<C>& e)
- : XSCRT::Writer<C> (e)
- {
- }
-
- virtual void
- traverse (
- typename Traversal::Traverser<XMLSchema::IDREF<C> >::Type const& o)
- {
- using namespace XSCRT::XML;
-
- if (Attribute<C>* a = XSCRT::Writer<C>::attr_ ())
- {
- a->value (o.id ());
- }
- else
- {
- XSCRT::Writer<C>::top_().value (o.id ());
- }
- }
-
- protected:
-
- virtual void
- traverse (typename Traversal::Traverser<XMLSchema::IDREF<C> >::Type &o)
- {
- Traversal::Traverser<XMLSchema::IDREF<C> >::traverse (o);
- }
-
- IDREF ()
- {
- }
- };
- }
-}
-
-#include <XMLSchema/Writer.ipp>
-#include <XMLSchema/Writer.tpp>
-
-#endif // XMLSCHEMA_WRITER_HPP
diff --git a/CIAO/tools/Config_Handlers/XMLSchema/Writer.ipp b/CIAO/tools/Config_Handlers/XMLSchema/Writer.ipp
deleted file mode 100644
index 2b7c9a4b939..00000000000
--- a/CIAO/tools/Config_Handlers/XMLSchema/Writer.ipp
+++ /dev/null
@@ -1,10 +0,0 @@
-// file : XMLSchema/Writer.ipp
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-namespace XMLSchema
-{
- namespace Writer
- {
- }
-}
diff --git a/CIAO/tools/Config_Handlers/XMLSchema/Writer.tpp b/CIAO/tools/Config_Handlers/XMLSchema/Writer.tpp
deleted file mode 100644
index 6c57de04d81..00000000000
--- a/CIAO/tools/Config_Handlers/XMLSchema/Writer.tpp
+++ /dev/null
@@ -1,10 +0,0 @@
-// file : XMLSchema/Writer.tpp
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-namespace XMLSchema
-{
- namespace Writer
- {
- }
-}