[Insight-developers] Platform-independent type names and 64-bitintegers

Miller, James V (Research) millerjv at crd.ge.com
Thu Jul 7 09:32:17 EDT 2005


itk::Type::Int32 is not bad.

Doesn't C99 have a nice set of names for these?  Could we use those name in a separate
namespace?


-----Original Message-----
From: insight-developers-bounces+millerjv=crd.ge.com at itk.org
[mailto:insight-developers-bounces+millerjv=crd.ge.com at itk.org]On Behalf
Of Brad King
Sent: Thursday, July 07, 2005 9:29 AM
To: Insight Developers
Subject: [Insight-developers] Platform-independent type names and
64-bitintegers


Hello all,

Recently there has been interest in adding support for the NRRD file 
format's 64-bit integer types.  In order to do this properly we need to 
use a 64-bit integer type on every platform.  There is no basic C 
integer type that is commonly 64 bits in size, but there is at least one 
type (long, long long, or __int64) available on every platform we 
support that is 64-bits.

Not long ago I added a set of platform-independent type names to VTK 
with names like vtkTypeInt64 and vtkTypeUInt8 (see 
VTK/Common/vtkType.h).  I propose adding a similar set of typedefs to 
ITK to address this problem.  Platform-independent I/O is generally much 
easier with such types anyway.

I propose names such as "itk::TypeInt32" or "itk::Type::Int32" for the 
typedefs, but I'm open to suggestions for better names.

Comments?
-Brad
_______________________________________________
Insight-developers mailing list
Insight-developers at itk.org
http://www.itk.org/mailman/listinfo/insight-developers


More information about the Insight-developers mailing list