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

option_flags Class Reference

The option_flags class maintains a bit-vector of option flags. More...

#include <optflg.h>

List of all members.

Public Member Functions

 option_flags (void)
void set_opt (VHDL_OPTIONS opt)
Boolean is_set (VHDL_OPTIONS opt)

Private Attributes

VHDL_OPTIONS comm_line_opt


Detailed Description

The option_flags class maintains a bit-vector of option flags.

These options are set during command line processing and can be globally referenced throughout the program.

The flags that can be represented by this class are boolean in nature (e.g., something is either on or off).

Definition at line 65 of file optflg.h.


Constructor & Destructor Documentation

option_flags::option_flags void   )  [inline]
 

Definition at line 70 of file optflg.h.

References bad_option, and comm_line_opt.


Member Function Documentation

Boolean option_flags::is_set VHDL_OPTIONS  opt  )  [inline]
 

Definition at line 75 of file optflg.h.

References Boolean, and comm_line_opt.

00075 { return (comm_line_opt & opt) != 0; }

void option_flags::set_opt VHDL_OPTIONS  opt  )  [inline]
 

Definition at line 71 of file optflg.h.

References comm_line_opt, and VHDL_OPTIONS.

00072     { 
00073         comm_line_opt = (VHDL_OPTIONS)((unsigned int)comm_line_opt | (unsigned int)opt); 
00074     }


Member Data Documentation

VHDL_OPTIONS option_flags::comm_line_opt [private]
 

Definition at line 67 of file optflg.h.

Referenced by is_set(), option_flags(), and set_opt().


The documentation for this class was generated from the following file:
Generated on Wed Mar 31 21:16:08 2004 for Data Structures for a VHDL Compiler by doxygen 1.3.3