]> Creatis software - gdcm.git/blob - CMake/gdcmTestConvertTypes.cxx
COMP: Can now configure gdcmjpegls as a separate project, also fix the inline keyword...
[gdcm.git] / CMake / gdcmTestConvertTypes.cxx
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmTestConvertTypes.cxx,v $
5   Language:  C++
6   Date:      $Date: 2005/05/29 23:06:41 $
7   Version:   $Revision: 1.1 $
8                                                                                 
9   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10   l'Image). All rights reserved. See Doc/License.txt or
11   http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
12                                                                                 
13      This software is distributed WITHOUT ANY WARRANTY; without even
14      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15      PURPOSE.  See the above copyright notices for more information.
16                                                                                 
17 =========================================================================*/
18
19 #define TYPE_UNSIGNED___INT64 unsigned __int64
20
21 typedef GDCM_TEST_CONVERT_TYPE_TO TypeTo;
22 typedef GDCM_TEST_CONVERT_TYPE_FROM TypeFrom;
23
24 void function(TypeTo& l, TypeFrom const& r)
25 {
26   l = static_cast<TypeTo>(r);
27 }
28
29 int main()
30 {
31   TypeTo tTo = TypeTo();
32   TypeFrom tFrom = TypeFrom();
33   function(tTo, tFrom);
34   return 0;
35 }