ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libBASS/ZconStamp.hpp
Revision: 1093
Committed: Wed Mar 17 14:22:59 2004 UTC (20 years, 3 months ago) by tim
File size: 1117 byte(s)
Log Message:
incorporate SMD into ZConstraint,it does not sound a good choice, next commit will seperate SMD and ZConstraint

File Contents

# Content
1 #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 double getCantVel( void ) { return cantVel; }
25
26 short int haveZpos( void ) { return have_zPos; }
27 short int haveKratio( void ) { return have_kRatio; }
28 short int haveCantVel( void ) { return have_cantVel; }
29
30 private:
31
32 short int have_zPos;
33 short int have_molIndex;
34 short int have_kRatio;
35 short int have_cantVel;
36
37 double zPos;
38 double kRatio;
39 double cantVel;
40 int molIndex;
41
42 int index;
43
44 LinkedAssign* unhandled; // the unhandled assignments
45 short int have_extras;
46 };
47
48
49 #endif // __ZCONSTAMP_H__