ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/headers/LinkedAssign.hpp
Revision: 11
Committed: Tue Jul 9 18:40:59 2002 UTC (22 years ago) by mmeineke
File size: 1054 byte(s)
Log Message:
This commit was generated by cvs2svn to compensate for changes in r10, which
included commits to RCS files with non-trunk default branches.

File Contents

# User Rev Content
1 mmeineke 10 #ifndef __LINKEDASSIGN_H__
2     #define __LINKEDASSIGN_H__
3    
4     class LinkedAssign{
5    
6     public:
7     LinkedAssign() { next = NULL; }
8     LinkedAssign( char* the_text, int the_ival );
9     LinkedAssign( char* the_text, double the_dval );
10     LinkedAssign( char* the_text, char* the_sval );
11     ~LinkedAssign(){ if( next != NULL ) delete next; }
12    
13    
14     void setValues( char* the_text, int the_ival );
15     void setValues( char* the_text, double the_dval );
16     void setValues( char* the_text, char* the_sval );
17     void add( char* the_text, int the_ival );
18     void add( char* the_text, double the_dval );
19     void add( char* the_text, char* the_sval );
20     short int getType( void ) { return type; }
21     int getInt( void ) { return ival; }
22     double getDouble( void ) { return dval; }
23     char* getString( void ) { return sval; }
24     void setNext( LinkedAssign* the_next ) { next = the_next; }
25     LinkedAssign* getNext( void ) { return next; }
26    
27     private:
28     char text[100];
29     int ival;
30     double dval;
31     char sval[100];
32     short int type; // 0 = int, 1 = double, 2 = string
33     LinkedAssign* next;
34     };
35    
36     #endif