Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members

optflg.h

Go to the documentation of this file.
00001 
00002 #ifndef OPTFLG_H
00003 #define OPTFLG_H
00004 
00005 
00006 /*===============================<o>=====================================
00007 
00008 Copyright 1996, 1997, 2004 Ian Kaplan, Bear Products International,
00009 www.bearcave.com.
00010 
00011 All Rights Reserved
00012 
00013 You may use this software in software components for which you do
00014 not collect money (e.g., non-commercial software).  All commercial
00015 use is reserved.
00016 
00017 ===============================<o>=====================================*/
00018 
00019 
00020 
00021 typedef enum { bad_option =   0x0,
00022                unused1 =      0x00000001,
00023                unused2 =      0x00000002,
00024                unused3 =      0x00000004,
00025                unused4 =      0x00000008,
00026                unused5 =      0x00000010,
00027                unused6 =      0x00000020,
00028                unused7 =      0x00000040,
00029                unused8 =      0x00000080,
00030                unused9 =      0x00000100,
00031                unused10 =     0x00000200,
00032                unused11 =     0x00000400,
00033                unused12 =     0x00000800,
00034                unused13 =     0x00001000,
00035                unused14 =     0x00002000,
00036                unused15 =     0x00004000,
00037                unused16 =     0x00008000,
00038                unused17 =     0x00010000,
00039                unused18 =     0x00020000,
00040                unused19 =     0x00040000,
00041                unused20 =     0x00080000,
00042                unused21 =     0x00100000,
00043                unused22 =     0x00200000,
00044                unused23 =     0x00400000,
00045                unused24 =     0x00800000,
00046                unused25 =     0x01000000,
00047                unused26 =     0x02000000,
00048                unused27 =     0x04000000,
00049                unused28 =     0x08000000,
00050                unused29 =     0x10000000,
00051                unused30 =     0x20000000,
00052                unused31 =     0x40000000,
00053                last_option } VHDL_OPTIONS;
00054 
00065 class option_flags {
00066 private:
00067     VHDL_OPTIONS comm_line_opt;
00068 
00069 public:
00070     option_flags(void) { comm_line_opt = bad_option; }
00071     void set_opt( VHDL_OPTIONS opt ) 
00072     { 
00073         comm_line_opt = (VHDL_OPTIONS)((unsigned int)comm_line_opt | (unsigned int)opt); 
00074     }
00075     Boolean is_set( VHDL_OPTIONS opt )     { return (comm_line_opt & opt) != 0; }
00076 };
00077 
00078 extern option_flags optflgs;
00079 
00080 
00081 #endif

Generated on Wed Mar 31 21:15:55 2004 for Data Structures for a VHDL Compiler by doxygen 1.3.3