[Insight-users] Implicit typename problems

Harri Tapio Jaalinoja harri.jaalinoja@helsinki.fi
Tue, 26 Nov 2002 19:56:31 +0200 (EET)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--0-1738770739-1038333266=:19828
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.OSF.4.30.0211261955391.19828@sirppi.helsinki.fi>


Hi all!

I have tried to bring some structure to my code, the purpose of which is
to make ITK filters usable from another package (BSoft) that is used in
our group. The current setup briefly (attached bitk.tar.gz):

itk_filters.h
- all filtering function definitions here

itk_filters.cxx
- implementations of the above

bitkITKFilter .h and .txx
- base class for all wrapper classes
- code for importing data to filters goes here

bitkShiftScale .h and .txx
- example of a wrapper class
- depending on demand, the wrappers may include single filters or
pipelines of several filters

The problem looks like this:

[hajaalin@gene Build]$ make
/usr/bin/g++  -I/home/hajaalin/work/Watershed/Code/Insight
-I/usr/local/Insight/Build -I/usr/local/Insight/Build/Code/Numerics/vxl
-I/usr/local/Insight/Build/Code/Numerics/vxl/vcl
-I/usr/local/Insight/Code/Algorithms
-I/usr/local/Insight/Code/BasicFilters -I/usr/local/Insight/Code/Common
-I/usr/local/Insight/Code/IO -I/usr/local/Insight/Code/Numerics/FEM
-I/usr/local/Insight/Code/Numerics
-I/usr/local/Insight/Code/Numerics/Statistics
-I/usr/local/Insight/Code/Numerics/vxl
-I/usr/local/Insight/Code/Numerics/vxl/vcl
-I/usr/local/Insight/Code/SpatialObject
-I/usr/local/Insight/Utilities/GlutMaster
-I/usr/local/Insight/Utilities/MetaIO -I/usr/local/Insight/Utilities/png
-I/usr/local/Insight/Utilities/zlib
-I/usr/local/Insight/Auxiliary/FltkImageViewer
-I/usr/local/Insight/Build/Auxiliary/FltkImageViewer
-I/usr/local/Insight/Auxiliary/VtkFltk
-I/usr/local/Insight/Build/Auxiliary/VtkFltk -I/usr/local/bsoft/include
-D_PTHREADS -c /home/hajaalin/work/Watershed/Code/Insight/itk_filters.cxx
-o itk_filters.o
In file included from
/home/hajaalin/work/Watershed/Code/Insight/bitkITKFilter.h:34,
                 from
/home/hajaalin/work/Watershed/Code/Insight/bitkShiftScale.h:7,
                 from
/home/hajaalin/work/Watershed/Code/Insight/itk_filters.cxx:9:
/home/hajaalin/work/Watershed/Code/Insight/bitkITKFilter.txx: In member
function `void bitk::ITKFilter<TPixel>::SetImage(Bimage*)':
/home/hajaalin/work/Watershed/Code/Insight/bitkITKFilter.txx:28: warning:
`typename itk::ImportImageFilter<TPixel, 3>::Pointer' is implicitly a
typename
/home/hajaalin/work/Watershed/Code/Insight/bitkITKFilter.txx:28: warning:
implicit typename is deprecated, please see the documentation for details
/home/hajaalin/work/Watershed/Code/Insight/bitkITKFilter.txx:28: parse
error before `,' token
/home/hajaalin/work/Watershed/Code/Insight/bitkITKFilter.txx:42: warning:
`typename itk::Image<TPixel, 3>::Pointer' is implicitly a typename
/home/hajaalin/work/Watershed/Code/Insight/bitkITKFilter.txx:42: warning:
implicit typename is deprecated, please see the documentation for details
In file included from
/home/hajaalin/work/Watershed/Code/Insight/itk_filters.cxx:9:
/home/hajaalin/work/Watershed/Code/Insight/bitkShiftScale.h: At global
scope:
/home/hajaalin/work/Watershed/Code/Insight/bitkShiftScale.h:23: warning:
`typename itk::ShiftScaleImageFilter<itk::Image<TPixel, 3>,
itk::Image<TPixel, 3> >::Pointer' is implicitly a typename
/home/hajaalin/work/Watershed/Code/Insight/bitkShiftScale.h:23: warning:
implicit typename is deprecated, please see the documentation for details
make[1]: *** [itk_filters.o] Error 1
make: *** [default_target] Error 2
[hajaalin@gene Build]$

What can you make of this? I can't see how my typedefs differ from ones
I've seen in Indight code.

I hope the code I attached gives you an idea about
what I'm trying to do. I'm grateful of any suggestions as to how to do it,
if the current way is all messed up.

Thanks!

Harri

--0-1738770739-1038333266=:19828
Content-Type: APPLICATION/OCTET-STREAM; NAME="bitk.tar.gz"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.OSF.4.30.0211261954260.19828@sirppi.helsinki.fi>
Content-Description: 
Content-Disposition: ATTACHMENT; FILENAME="bitk.tar.gz"

H4sICLCw4z0AA2JpdGsudGFyAO0aa1Pjtna/rn+FBvrBoSHknd3AMgMhbHMX
CENCu53eXo/jKImKY3tsBcIy3N/ecyTHz4QALWwv12eXxJGOzks6D0lunepX
9IR53CvwOX/3IlAsFYv1avVdEaBRj38DlKvl+rtio9YoVmuVaqUG+JVGtfGO
FF9GnDjMPK67hLyb6H/ousmsVXjr+v9H4fyi+692q6/+onPqehM6zCnKJoH/
x8wakk7/i7KpdM5aJ5dHbaL+cNc6PfjS1i663f79zqk9nJnU20FMQCwYU1hK
uQW2ujPz3B3TNnRzp2N5bDzhO5ceDRALzEJWC06HPXvE4edx5+xIOz/o/6Qe
9rrHfc2nph11Loh7w6bjwkR5//49AUCsHomwGXhAY4dZhjkbgiCKctI5+6Kd
dA4vDi467R5RFeB+YI5tl/HJ1FN+/npyNptSlxke9hzqHjOOmYmGwN8tezq1
LXzqdJUUG5MN8E/8KOgKsIuIChbtIkuwWEqNe5Ssc6xennW+5hRCOsdEPev2
0dbaZa+t9X7t9dunWq9/BJIjQkoLQrbNFrPhG7vbZ0dA7ekUpmK8HC1lUXDq
+xPmkREzKTF0iwwo8e05JINbohPHtf+gBiczj1lj5EhMdkUJh1FNMZuL6f/h
DsVBfXeELa0RGy+WyKbgQ608ECe2O6Qu4TaQpIKgYeqeR728aOATCp/gdzRO
P2Fl5BXp6YGRN6XaaTxpiF9DvIOjI+2oDSuv0+90zxZokZZ7X2QbBbkiYBc6
p8aM6wMTJdTRHNSTwttTx7aoxaX8ctzBxef2dpdsj8fDQV+Lz4Z6etsOiUUl
hE5cK5soXvtru3XZPzg8aauDwFVJ+Fgw5nOYzRQu41e9CRvxHixcSuI/V4zh
1OMEP/z+RDeQ0EbSSUjkeQWxQ0CRLkXCRx9XUXrtvnqICvcuWj0lQQ1dCqn5
0yV0AfsE+GAbYd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