bit/enums.h

00001 /***************************************************************************
00002 *   Copyright (C) 2001 by Rick L. Vinyard, Jr.                            *
00003 *   rvinyard@cs.nmsu.edu                                                  *
00004 *                                                                         *
00005 *   This program is free software; you can redistribute it and/or modify  *
00006 *   it under the terms of the GNU Lesser General Public License as        *
00007 *   published by the Free Software Foundation version 2.1.                *
00008 *                                                                         *
00009 *   This program is distributed in the hope that it will be useful,       *
00010 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00011 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00012 *   GNU General Public License for more details.                          *
00013 *                                                                         *
00014 *   You should have received a copy of the GNU Lesser General Public      *
00015 *   License along with this library; if not, write to the                 *
00016 *   Free Software Foundation, Inc.,                                       *
00017 *   51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA              *
00018 ***************************************************************************/
00019 #ifndef BITENUMS_H
00020 #define BITENUMS_H
00021 
00022 namespace bit
00023 {
00024 
00028   typedef enum UNITS {
00029     BITS = 1,
00030     OCTETS = 8
00031   } UNITS;
00032 
00036   typedef enum Container {
00037     FIELD,
00038     FIELD_VECTOR,
00039     FIELD_ELEMENT,
00040     RECORD,
00041     RECORD_VECTOR,
00042     RECORD_ELEMENT,
00043   } Container;
00044 
00048   typedef enum Type {
00049     TYPE_NONE,
00050     TYPE_INTEGER,
00051     TYPE_FLOATING,
00052     TYPE_ASCII,
00053     TYPE_UTF8,
00054     TYPE_BCD
00055   } Type;
00056 
00060   typedef enum ByteOrder {
00061     BYTEORDER_HOST,
00062     BYTEORDER_NETWORK,
00063     BYTEORDER_BIG_ENDIAN,
00064     BYTEORDER_LITTLE_ENDIAN,
00065   } ByteOrder;
00066 
00070   typedef enum Sign {
00071     SIGN_UNSIGNED,
00072     SIGN_TWOS_COMPLEMENT,
00073     SIGN_ONES_COMPLEMENT,
00074     SIGN_BIT,
00075   } Sign;
00076 
00080   typedef enum Location {
00081     START,  
00082     END,    
00083   } Location;
00084 
00085   typedef enum IntegerType {
00086     UINT64,
00087     INT64,
00088     UINT32,
00089     INT32,
00090     UINT16,
00091     INT16,
00092     UINT8,
00093     INT8,
00094   } IntegerType;
00095 
00096 
00097 }
00098 
00099 #endif

Generated on Tue Mar 13 20:00:01 2007 by  doxygen 1.5.1