ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/headers/Component.hpp
Revision: 118
Committed: Wed Sep 25 22:51:14 2002 UTC (21 years, 9 months ago) by chuckv
File size: 679 byte(s)
Log Message:
begin the pain that is MPI.

abandon all hope ye who check out this branch..

P.S. we've added consistent BASS error checking

File Contents

# User Rev Content
1 mmeineke 10 #ifndef __COMPONENT_H__
2     #define __COMPONENT_H__
3    
4     class Component{
5    
6     public:
7     Component();
8     ~Component();
9    
10 chuckv 118 int assignString( char* lhs, char* rhs, char** err );
11     int assignDouble( char* lhs, double rhs, char** err );
12     int assignInt( char* lhs, int rhs, char** err );
13 mmeineke 10 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