ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new-templateless/OOPSE/libmdtools/GenericData.cpp
(Generate patch)

Comparing branches/new-templateless/OOPSE/libmdtools/GenericData.cpp (file contents):
Revision 850 by mmeineke, Mon Nov 3 22:07:17 2003 UTC vs.
Revision 851 by mmeineke, Wed Nov 5 19:18:17 2003 UTC

# Line 125 | Line 125 | void setValue(double theDval){
125    return next;
126   }
127  
128 < void setValue(double theDval){
128 > void GenericData::setValue(double theDval){
129    dVal = theDval;
130   }
131  
132 < void setValue(char* theCval){
132 > void GenericData::setValue(char* theCval){
133    strcpy( cVal, theCval );
134   }
135    
136 < void setValue(double* theDarray, int theArrayLength){
136 > void GenericData::setValue(double* theDarray, int theArrayLength){
137    
138    int i;
139    
# Line 147 | Line 147 | int getDarray( double* &outArray ){
147    strcpy( id, theID );
148   }
149  
150 < int getDarray( double* &outArray ){
150 > int GenericData::getDarray( double* &outArray ){
151  
152    int i;
153    
154 <  outArray = new outArray[arrayLength];
154 >  outArray = new double[arrayLength];
155    for(i=0;i<arrayLength;i++)
156      outArray[i] = dArray[i];
157  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines