Skip to content
Snippets Groups Projects
Commit 311058e6 authored by Tinny Ng's avatar Tinny Ng
Browse files

DOM L3: For consistency, add release() to DOMInputSource and thus Wrapper4InputSource.

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@173993 13f79535-47bb-0310-9956-ffa450edef68
parent a2966458
No related branches found
No related tags found
No related merge requests found
...@@ -292,6 +292,13 @@ public: ...@@ -292,6 +292,13 @@ public:
*/ */
virtual const bool getIssueFatalErrorIfNotFound() const = 0; virtual const bool getIssueFatalErrorIfNotFound() const = 0;
/**
* Called to indicate that this DOMInputSource is no longer in use
* and that the implementation may relinquish any resources associated with it.
*
* Access to a released object will lead to unexpected result.
*/
virtual void release() = 0;
//@} //@}
}; };
......
...@@ -56,6 +56,9 @@ ...@@ -56,6 +56,9 @@
/* /*
* $Log$ * $Log$
* Revision 1.2 2002/07/15 18:26:46 tng
* DOM L3: For consistency, add release() to DOMInputSource and thus Wrapper4InputSource.
*
* Revision 1.1 2002/06/18 19:07:07 knoaman * Revision 1.1 2002/06/18 19:07:07 knoaman
* Initial checkin. * Initial checkin.
* *
...@@ -147,4 +150,12 @@ BinInputStream* Wrapper4InputSource::makeStream() const ...@@ -147,4 +150,12 @@ BinInputStream* Wrapper4InputSource::makeStream() const
return fInputSource->makeStream(); return fInputSource->makeStream();
} }
// ---------------------------------------------------------------------------
// Wrapper4InputSource: Memory methods
// ---------------------------------------------------------------------------
void Wrapper4InputSource::release()
{
Wrapper4InputSource* src = (Wrapper4InputSource*) this;
delete src;
}
...@@ -255,6 +255,14 @@ public: ...@@ -255,6 +255,14 @@ public:
*/ */
void setIssueFatalErrorIfNotFound(const bool flag); void setIssueFatalErrorIfNotFound(const bool flag);
/**
* Called to indicate that this DOMInputSource is no longer in use
* and that the implementation may relinquish any resources associated with it.
*
* Access to a released object will lead to unexpected result.
*/
void release();
/** /**
* <p><b>"Experimental - subject to change"</b></p> * <p><b>"Experimental - subject to change"</b></p>
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment