debian/tmp/usr/include/bit-0.3/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 
00049   typedef enum DataMode {
00050     COPY,  
00051     MANAGED,  
00052     UNMANAGED,  
00053   } DataMode;
00054 
00058   typedef enum Type { 
00059     TYPE_NONE, 
00060     TYPE_INTEGER, 
00061     TYPE_FLOATING, 
00062     TYPE_ASCII, 
00063     TYPE_UTF8, 
00064     TYPE_BCD 
00065   } Type;
00066 
00070   typedef enum ByteOrder {
00071     BYTEORDER_HOST, 
00072     BYTEORDER_NETWORK, 
00073     BYTEORDER_BIG_ENDIAN, 
00074     BYTEORDER_LITTLE_ENDIAN,
00075   } ByteOrder;
00076 
00080   typedef enum Sign { 
00081     SIGN_UNSIGNED, 
00082     SIGN_TWOS_COMPLEMENT, 
00083     SIGN_ONES_COMPLEMENT, 
00084     SIGN_BIT,
00085   } Sign;
00086 
00090   typedef enum Location {
00091     START,  
00092     END,    
00093   } Location;
00094 
00095   typedef enum IntegerType {
00096     UINT64,
00097     INT64,
00098     UINT32,
00099     INT32,
00100     UINT16,
00101     INT16,
00102     UINT8,
00103     INT8,
00104   } IntegerType;
00105 
00106 
00107 }
00108 
00109 #endif

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