xerces-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David N Bertoni/Cambridge/IBM <david_n_bert...@us.ibm.com>
Subject RE: Namespaces for the project
Date Tue, 11 Feb 2003 00:49:20 GMT




Yes, look in XercesVersion, where you'll find:

   // Xerces C++ Namespace string, concatenated with full version string
   #define XERCES_PRODUCT xercesc
   #define XERCES_CPP_NAMESPACE
   INVK_CAT3_RAW_NUMERIC_SEP_UNDERSCORE(XERCES_PRODUCT,XERCES_VERSION_MAJOR,XERCES_VERSION_MINOR)

If you don't believe me, do a dump of the shared libary and see for
yourself what the namespace is.

Dave



                                                                                         
                                               
                      "Bagepalli,                                                        
                                               
                      Kiran"                    To:      "'xerces-c-dev@xml.apache.org'" <xerces-c-dev@xml.apache.org>
                  
                      <kbagepalli@infor         cc:      (bcc: David N Bertoni/Cambridge/IBM)
                                           
                      matica.com>               Subject: RE: Namespaces for the project
                                                 
                                                                                         
                                               
                      02/10/2003 04:31                                                   
                                               
                      PM                                                                 
                                               
                      Please respond to                                                  
                                               
                      xerces-c-dev                                                       
                                               
                                                                                         
                                               



I see only this

    #define XERCES_CPP_NAMESPACE_BEGIN namespace XERCES_CPP_NAMESPACE {
    #define XERCES_CPP_NAMESPACE_END  }
    #define XERCES_CPP_NAMESPACE_USE using namespace XERCES_CPP_NAMESPACE;
    #define XERCES_CPP_NAMESPACE_QUALIFIER XERCES_CPP_NAMESPACE::

which means a namespace called XERCES_CPP_NAMESPACE is defined. Am I
missing
the version part.

Thanks
Kiran

-----Original Message-----
From: David N Bertoni/Cambridge/IBM [mailto:david_n_bertoni@us.ibm.com]
Sent: Monday, February 10, 2003 4:22 PM
To: xerces-c-dev@xml.apache.org
Subject: Re: Namespaces for the project






Since a namespace has to be a constant, there would be no way to have your
own namespace prefix, short of having you build your own version of Xerces.
If you look more closely, you'll see the namespace takes into account the
version number of Xerces.  For example, in 2.2, the name of the Xerces
namespace is xercesc_2_2.

Dave





                      "Bagepalli,

                      Kiran"                    To:
"'xerces-c-dev@xml.apache.org'" <xerces-c-dev@xml.apache.org>

                      <kbagepalli@infor         cc:      (bcc: David N
Bertoni/Cambridge/IBM)
                      matica.com>               Subject: Namespaces for the
project


                      02/10/2003 04:07

                      PM

                      Please respond to

                      xerces-c-dev






I am a little confused with the namespace implementation for the xerces
project. What I was looking at is a way to version the releases on Xerces
C++ using namespace. The issue here is that if two different versions of
xerces(binary) exist, it will be difficult to resolve the right calls. I
was
assuming I could use by own namespace prefix like MYNAMESPACE for all the
xerces files but there seems to be a constant namespace
XERCES_CPP_NAMESPACE. So across versions of xerces the namespace would be
the same.
Kiran


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Mime
View raw message