You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ro...@locus.apache.org on 2000/01/12 01:15:40 UTC

cvs commit: xml-xerces/c/src/sax InputSource.cpp InputSource.hpp

roddey      00/01/11 16:15:40

  Modified:    c/src/sax InputSource.cpp InputSource.hpp
  Log:
  Changes to deal with multiply nested, relative pathed, entities and to deal
  with the new URL class changes.
  
  Revision  Changes    Path
  1.2       +48 -32    xml-xerces/c/src/sax/InputSource.cpp
  
  Index: InputSource.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/sax/InputSource.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- InputSource.cpp	1999/11/09 01:07:45	1.1
  +++ InputSource.cpp	2000/01/12 00:15:39	1.2
  @@ -56,9 +56,13 @@
   
   /**
    * $Log: InputSource.cpp,v $
  - * Revision 1.1  1999/11/09 01:07:45  twl
  - * Initial revision
  + * Revision 1.2  2000/01/12 00:15:39  roddey
  + * Changes to deal with multiply nested, relative pathed, entities and to deal
  + * with the new URL class changes.
    *
  + * Revision 1.1.1.1  1999/11/09 01:07:45  twl
  + * Initial checkin
  + *
    * Revision 1.2  1999/11/08 20:45:01  rahul
    * Swat for adding in Product name and CVS comment log variable.
    *
  @@ -73,9 +77,53 @@
   
   
   
  +// ---------------------------------------------------------------------------
  +//  InputSource: Destructor
   // ---------------------------------------------------------------------------
  -//  InputSource: Constructors and Destructor
  +InputSource::~InputSource()
  +{
  +    delete [] fEncoding;
  +    delete [] fPublicId;
  +    delete [] fSystemId;
  +}
  +
  +
   // ---------------------------------------------------------------------------
  +//  InputSource: Setter methods
  +// ---------------------------------------------------------------------------
  +void InputSource::setEncoding(const XMLCh* const encodingStr)
  +{
  +    delete [] fEncoding;
  +    fEncoding = XMLString::replicate(encodingStr);
  +}
  +
  +
  +void InputSource::setPublicId(const XMLCh* const publicId)
  +{
  +    delete [] fPublicId;
  +    fPublicId = XMLString::replicate(publicId);
  +}
  +
  +
  +void InputSource::setSystemId(const XMLCh* const systemId)
  +{
  +    delete [] fSystemId;
  +    fSystemId = XMLString::replicate(systemId);
  +}
  +
  +
  +
  +// ---------------------------------------------------------------------------
  +//  InputSource: Hidden Constructors
  +// ---------------------------------------------------------------------------
  +InputSource::InputSource() :
  +
  +    fEncoding(0)
  +    , fPublicId(0)
  +    , fSystemId(0)
  +{
  +}
  +
   InputSource::InputSource(const XMLCh* const systemId) :
   
       fEncoding(0)
  @@ -108,35 +156,4 @@
       , fPublicId(XMLString::transcode(publicId))
       , fSystemId(XMLString::transcode(systemId))
   {
  -}
  -
  -InputSource::~InputSource()
  -{
  -    delete [] fEncoding;
  -    delete [] fPublicId;
  -    delete [] fSystemId;
  -}
  -
  -
  -// ---------------------------------------------------------------------------
  -//  InputSource: Setter methods
  -// ---------------------------------------------------------------------------
  -void InputSource::setEncoding(const XMLCh* const encodingStr)
  -{
  -    delete [] fEncoding;
  -    fEncoding = XMLString::replicate(encodingStr);
  -}
  -
  -
  -void InputSource::setPublicId(const XMLCh* const publicId)
  -{
  -    delete [] fPublicId;
  -    fPublicId = XMLString::replicate(publicId);
  -}
  -
  -
  -void InputSource::setSystemId(const XMLCh* const systemId)
  -{
  -    delete [] fSystemId;
  -    fSystemId = XMLString::replicate(systemId);
   }
  
  
  
  1.2       +7 -0      xml-xerces/c/src/sax/InputSource.hpp
  
  Index: InputSource.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/sax/InputSource.hpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- InputSource.hpp	1999/11/09 01:07:46	1.1
  +++ InputSource.hpp	2000/01/12 00:15:39	1.2
  @@ -56,9 +56,13 @@
   
   /**
    * $Log: InputSource.hpp,v $
  - * Revision 1.1  1999/11/09 01:07:46  twl
  - * Initial revision
  + * Revision 1.2  2000/01/12 00:15:39  roddey
  + * Changes to deal with multiply nested, relative pathed, entities and to deal
  + * with the new URL class changes.
    *
  + * Revision 1.1.1.1  1999/11/09 01:07:46  twl
  + * Initial checkin
  + *
    * Revision 1.2  1999/11/08 20:45:01  rahul
    * Swat for adding in Product name and CVS comment log variable.
    *
  @@ -101,8 +105,12 @@
     * around beyond the call.</p>
     *
     * $Log: InputSource.hpp,v $
  -  * Revision 1.1  1999/11/09 01:07:46  twl
  -  * Initial revision
  +  * Revision 1.2  2000/01/12 00:15:39  roddey
  +  * Changes to deal with multiply nested, relative pathed, entities and to deal
  +  * with the new URL class changes.
  +  *
  +  * Revision 1.1.1.1  1999/11/09 01:07:46  twl
  +  * Initial checkin
     *
     * Revision 1.2  1999/11/08 20:45:01  rahul
     * Swat for adding in Product name and CVS comment log variable.
  @@ -230,6 +238,7 @@
       // -----------------------------------------------------------------------
       //  Hidden constructors
       // -----------------------------------------------------------------------
  +    InputSource();
       InputSource(const XMLCh* const systemId);
       InputSource
       (