[Dcmlib] Uncomprehensible code !!!
Jean-Pierre Roux
jpr at creatis.insa-lyon.fr
Mon Aug 29 15:56:59 CEST 2005
Benoit Regrain wrote:
> Hi,
>
> I have found it in the gdcmDocument.cxx
> <> newBinEntry->SetKey( newBinEntry->GetKey() );
> newValEntry->SetKey( newValEntry->GetKey() );
> <> newSeqEntry->SetKey( newSeqEntry->GetKey() );
--> Probabely an unfinished cleaning out session, while time consuming
hunting party ...
--> I'll remove it
JP
> Could anyone explain me the goal of these lines ?
>
>
>
> An other point in the same file, when wrapping in python.
> The problem isn't the wrapping, but the python use... it warns
> on a Runtime problem.
>
> dynamic_cast< Document* > ( set )
>
> when set is a document... so, when set == this,
> python can't solve this runtime dynamic_cast.
> I have solve it.
--> Something I don't understand is *why* Python cares about some C++
code it doesn't see (inside a method, called thru a wrapper) ?!?
JP
>
> -----------------------------------------------------------------
> Benoit Regrain
> Ingénieur d'études CNRS (Creatis)
> email : regrain at creatis.insa-lyon.fr <mailto:regrain at creatis.insa-lyon.fr>
> phone : (+33) (0) 4.72.43.82.58
> fax : (+33) (0) 4.72.43.85.26
> address :
> CREATIS - CNRS UMR5515
> INSA - Bâtiment Blaise Pascal
> 7, avenue Jean Capelle
> F - 69621 Villeurbanne Cedex
> -----------------------------------------------------------------
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Dcmlib mailing list
>Dcmlib at creatis.insa-lyon.fr
>http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
>
More information about the Dcmlib
mailing list