Changeset 0f7a85
- Timestamp:
- Jul 24, 2008, 1:56:00 PM (17 years ago)
- Children:
- b3eb8e
- Parents:
- ed5f58
- Location:
- molecuilder/src
- Files:
-
- 2 edited
-
periodentafel.cpp (modified) (1 diff)
-
periodentafel.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/periodentafel.cpp
red5f58 r0f7a85 303 303 /** Stores element list to file. 304 304 */ 305 bool periodentafel::StorePeriodentafel(char * filename) const305 bool periodentafel::StorePeriodentafel(char *path) const 306 306 { 307 307 bool result = true; 308 308 ofstream f; 309 char file [MAXSTRINGSIZE];310 311 if (filename == STANDARDELEMENTSDB)312 f.open(file);313 else314 f.open(filename);309 char filename[MAXSTRINGSIZE]; 310 311 strncpy(filename, path, MAXSTRINGSIZE); 312 strncat(filename, "/", MAXSTRINGSIZE-strlen(filename)); 313 strncat(filename, STANDARDELEMENTSDB, MAXSTRINGSIZE-strlen(filename)); 314 f.open(filename); 315 315 if (f != NULL) { 316 316 f << header1 << endl; -
molecuilder/src/periodentafel.hpp
red5f58 r0f7a85 70 70 bool Output(ofstream *output) const; 71 71 bool Checkout(ofstream *output, const int *checkliste) const; 72 bool LoadPeriodentafel(char * filename= NULL);73 bool StorePeriodentafel(char * filename= NULL) const;72 bool LoadPeriodentafel(char *path = NULL); 73 bool StorePeriodentafel(char *path = NULL) const; 74 74 75 75 private:
Note:
See TracChangeset
for help on using the changeset viewer.
