ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libBASS/ZconStamp.hpp
Revision: 675
Committed: Mon Aug 11 19:38:44 2003 UTC (21 years, 1 month ago) by mmeineke
File size: 962 byte(s)
Log Message:
Added zConstraint into the BASS language syntax.

File Contents

# User Rev Content
1 mmeineke 675 #ifndef __ZCONSTAMP_H__
2     #define __ZCONSTAMP_H__
3    
4     #include "LinkedAssign.hpp"
5    
6     class ZconStamp{
7    
8     public:
9     ZconStamp(int theIndex);
10     ~ZconStamp();
11    
12     int assignString( char* lhs, char* rhs, char** err );
13     int assignDouble( char* lhs, double rhs, char** err );
14     int assignInt( char* lhs, int rhs, char** err );
15    
16     int haveExtras( void ) { return have_extras; }
17     LinkedAssign* getExtras( void ) { return unhandled; }
18    
19     char* checkMe( void );
20    
21     int getMolIndex( void ) { return molIndex; }
22     double getZpos( void ) { return zPos; }
23     double getKratio( void ) { return kRatio; }
24    
25     short int haveZpos( void ) { return have_zPos; }
26     short int haveKratio( void ) { return have_kRatio; }
27    
28     private:
29    
30     short int have_zPos;
31     short int have_molIndex;
32     short int have_kRatio;
33    
34     double zPos;
35     double kRatio;
36     int molIndex;
37    
38     int index;
39    
40     LinkedAssign* unhandled; // the unhandled assignments
41     short int have_extras;
42     };
43    
44    
45     #endif // __ZCONSTAMP_H__