Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxValueType.h

Go to the documentation of this file.
00001 /*
00002  *  Copyright (c) 1998, University of Amsterdam, The Netherlands.
00003  *  All rights reserved.
00004  *
00005  *
00006  *  Author(s):
00007  *  Dennis Koelma (koelma@wins.uva.nl)
00008  *  Edo Poll (poll@wins.uva.nl)
00009  */
00010 
00013 #ifndef HxValueType_h
00014 #define HxValueType_h
00015 
00016 #include "HxIoFwd.h"
00017 #include "HxString.h"
00018 
00019 
00026 enum HxValueType { INT_VALUE, REAL_VALUE, COMPLEX_VALUE };
00027 
00028 extern L_HXBASIS STD_OSTREAM&
00029 HxValueType_put(STD_OSTREAM& os, HxValueType val);
00030 
00031 inline STD_OSTREAM&
00032 operator<<(STD_OSTREAM& os, HxValueType val)
00033 {
00034     return HxValueType_put(os, val);
00035 }
00036 
00037 inline HxString
00038 makeString(HxValueType val) {
00039     switch (val) {
00040     case INT_VALUE:
00041         return HxString("INT_VALUE");
00042     case REAL_VALUE:
00043         return HxString("REAL_VALUE");
00044     case COMPLEX_VALUE:
00045         return HxString("COMPLEX_VALUE");
00046     }
00047     return HxString("NA_VALUE");
00048 }
00049 
00050 #endif

Generated on Tue Feb 3 14:18:43 2004 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001