X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=include%2Farray2dfile.h;h=1a0d838ee69ec5811043cf941f06c104e7dfbd40;hp=6b6c5c25e94b366ed629e7911b46223571a5d6af;hb=6afa21de8aa00b405de47584efe108c71df33e1b;hpb=b25dbe4a67721d115636a008d508d6bd25f3bfaa diff --git a/include/array2dfile.h b/include/array2dfile.h index 6b6c5c2..1a0d838 100644 --- a/include/array2dfile.h +++ b/include/array2dfile.h @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: array2dfile.h,v 1.5 2000/12/04 02:52:57 kevin Exp $ +** $Id: array2dfile.h,v 1.10 2000/12/16 02:44:26 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -28,15 +28,17 @@ #ifndef ARRAY2DFILE_H #define ARRAY2DFILE_H -#ifndef WIN32 +#ifndef MSVC #include #endif #include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include #include "ctsupport.h" #include "fnetorderstream.h" @@ -47,9 +49,11 @@ using namespace std; class Array2dFileLabel { public: - static const int L_EMPTY = 0; - static const int L_HISTORY = 1; - static const int L_USER = 2; + enum { + L_EMPTY = 0, + L_HISTORY = 1, + L_USER = 2, + }; Array2dFileLabel(); @@ -86,7 +90,7 @@ public: const string& getDateString () const; - void print (ostream& os) const; + void print (std::ostream& os) const; Array2dFileLabel (const Array2dFileLabel& rhs); @@ -112,15 +116,17 @@ private: class Array2dFile { public: - static const int PIXEL_INVALID = 0; - static const int PIXEL_INT8 = 1; - static const int PIXEL_UINT8 = 2; - static const int PIXEL_INT16 = 3; - static const int PIXEL_UINT16 = 4; - static const int PIXEL_INT32 = 5; - static const int PIXEL_UINT32 = 6; - static const int PIXEL_FLOAT32 = 7; - static const int PIXEL_FLOAT64 = 8; + enum { + PIXEL_INVALID = 0, + PIXEL_INT8 = 1, + PIXEL_UINT8 = 2, + PIXEL_INT16 = 3, + PIXEL_UINT16 = 4, + PIXEL_INT32 = 5, + PIXEL_UINT32 = 6, + PIXEL_FLOAT32 = 7, + PIXEL_FLOAT64 = 8, + }; Array2dFile (int nx, int ny, int pixelSize, int pixelFormat = PIXEL_INVALID); Array2dFile (void); @@ -184,7 +190,7 @@ public: protected: typedef vector labelContainer; - static const kuint16 m_signature = ('I'*256+'F'); + static const kuint16 m_signature; kuint16 m_headersize; string m_filename;