1 |
#ifndef __COMPONENT_H__ |
2 |
#define __COMPONENT_H__ |
3 |
|
4 |
class Component{ |
5 |
|
6 |
public: |
7 |
Component(); |
8 |
~Component(); |
9 |
|
10 |
void assignString( char* lhs, char* rhs ); |
11 |
void assignDouble( char* lhs, double rhs ); |
12 |
void assignInt( char* lhs, int rhs ); |
13 |
void startIndex( int* the_start_array, int n_elements ); |
14 |
char* checkMe( void ); |
15 |
|
16 |
int getNMol( void ) { return nMol; } |
17 |
char* getType( void ) { return type; } |
18 |
|
19 |
short int haveNMol( void ) { return have_nMol; } |
20 |
|
21 |
private: |
22 |
|
23 |
|
24 |
char type[100]; |
25 |
int nMol; |
26 |
double molFraction; |
27 |
int* start_array; |
28 |
int n_start; |
29 |
|
30 |
short int have_type, have_nMol, have_molFraction, have_start_array; |
31 |
}; |
32 |
|
33 |
#endif |