You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Endre Magyari <en...@nextra.ro> on 2004/02/20 10:29:59 UTC
BinInputStream question
Dear List,
I'm using xerces-c and in my Custom Entity resolver I need to have a look
on the resolved entities, for this, I have created a functions which
investigates the inputsource:
I'd like to have a code like this:
bool CheckForVersionInfo(const InputSource* is)
{
BinInputStream * bis = is->makeStream();
if (bis)
{
// ... ///
delete bis;
}
return false;
}
Which compiles with the warning on the delete line:
C:\udm-2.00pre19\src\UdmDom\UdmDom.cpp(2562) : warning C4150: deletion of
pointer to incomplete type 'BinInputStream'; no destructor called
..\..\3rdParty\xerces\xerces-c2_2_0-win32\include\xercesc/sax/InputSource.hpp(117)
: see declaration of 'BinInputStream'
Is this warning OK - can I live with that, or there is a workaround?
According to documentation, the inputstream is dynamically allocated and
should be deleted by the caller.
Thanks,
Endre Magyari
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: BinInputStream question
Posted by Endre Magyari <en...@nextra.ro>.
Thanks.
That solved.
I know - it was a stupid question.
Endre.
On Fri, 20 Feb 2004 10:57:57 +0100 (CET), Jeroen N. Witmond
<jn...@xs4all.nl> wrote:
> Do you #include <xercesc/util/BinInputStream.hpp>?
>
>> Dear List,
>>
>> I'm using xerces-c and in my Custom Entity resolver I need to have a
>> look
>> on the resolved entities, for this, I have created a functions which
>> investigates the inputsource:
>>
>> I'd like to have a code like this:
>>
>> bool CheckForVersionInfo(const InputSource* is)
>> {
>> BinInputStream * bis = is->makeStream();
>> if (bis)
>> {
>> // ... ///
>> delete bis;
>> }
>>
>> return false;
>> }
>>
>>
>> Which compiles with the warning on the delete line:
>>
>> C:\udm-2.00pre19\src\UdmDom\UdmDom.cpp(2562) : warning C4150: deletion
>> of
>> pointer to incomplete type 'BinInputStream'; no destructor called
>> ..\..\3rdParty\xerces\xerces-c2_2_0-win32\include\xercesc/sax/InputSource.hpp(117)
>> : see declaration of 'BinInputStream'
>>
>>
>> Is this warning OK - can I live with that, or there is a workaround?
>> According to documentation, the inputstream is dynamically allocated
>> and
>> should be deleted by the caller.
>>
>>
>> Thanks,
>> Endre Magyari
>>
>> ---------------------------------------------------------------------
>> 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
--
Regards,
Endre MAGYARI, CEO
Nextra Telecom Ltd. - RO-4100 M-Ciuc, Florilor 28/1
Office: +40 266 317 500
Mobile: +40 744 794 735
E-mail: endre@nextra.ro
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: BinInputStream question
Posted by "Jeroen N. Witmond" <jn...@xs4all.nl>.
Do you #include <xercesc/util/BinInputStream.hpp>?
> Dear List,
>
> I'm using xerces-c and in my Custom Entity resolver I need to have a look
> on the resolved entities, for this, I have created a functions which
> investigates the inputsource:
>
> I'd like to have a code like this:
>
> bool CheckForVersionInfo(const InputSource* is)
> {
> BinInputStream * bis = is->makeStream();
> if (bis)
> {
> // ... ///
> delete bis;
> }
>
> return false;
> }
>
>
> Which compiles with the warning on the delete line:
>
> C:\udm-2.00pre19\src\UdmDom\UdmDom.cpp(2562) : warning C4150: deletion of
> pointer to incomplete type 'BinInputStream'; no destructor called
> ..\..\3rdParty\xerces\xerces-c2_2_0-win32\include\xercesc/sax/InputSource.hpp(117)
> : see declaration of 'BinInputStream'
>
>
> Is this warning OK - can I live with that, or there is a workaround?
> According to documentation, the inputstream is dynamically allocated and
> should be deleted by the caller.
>
>
> Thanks,
> Endre Magyari
>
> ---------------------------------------------------------------------
> 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