Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members  

Prefix.H

00001 #ifndef PREFIX_H
00002 #define PREFIX_H
00003 
00004 #include "config.H"
00005 #include <stdlib.h>
00006 #include <string.h>
00007 
00008 class Prefix {
00009 protected:
00010   char*         m_name ;  
00011   char*         m_abbr ;  
00012   int           m_exp ;   
00013   bool          m_avoid ; 
00014   Prefix*       m_next ;  
00016 public:
00018   Prefix() 
00019   { m_name = 0 ; m_abbr = 0 ; m_avoid = true ; m_exp=-100 ; } ;
00020   Prefix( const char* name, const char* abbr, int exp ) ;
00021   ~Prefix() ;
00022 
00027   char* name() { return m_name ; }
00029   char* abbr() { return m_abbr ; }
00037   int   exp() { return m_exp ; }
00039   Prefix* next() { return m_next ; }
00041   void  avoid( const bool& state )
00042   { m_avoid = state ; }
00044   bool  avoid() const
00045   { return m_avoid ; }
00046 } ;
00047 
00048 extern Prefix*  thePrefixes ;
00049 
00050 #endif // PREFIX_H
Citrus C++ Reference Manual  20010520