Changes in src/molecule.cpp [6adb96:49e1ae]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/molecule.cpp
r6adb96 r49e1ae 4 4 * 5 5 */ 6 7 #include <cstring> 6 8 7 9 #include "atom.hpp" … … 59 61 delete(start); 60 62 }; 61 62 63 // getter and setter64 const std::string molecule::getName(){65 return std::string(name);66 }67 68 void molecule::setName(const std::string _name){69 START_OBSERVER;70 strncpy(name,_name.c_str(),MAXSTRINGSIZE);71 FINISH_OBSERVER;72 }73 63 74 64 … … 599 589 else 600 590 molname = filename; // contains no slashes 601 c har *endname = strchr(molname, '.');591 const char *endname = strchr(molname, '.'); 602 592 if ((endname == NULL) || (endname < molname)) 603 593 length = strlen(molname); … … 1093 1083 } 1094 1084 }; 1095 1096 void molecule::flipActiveFlag(){1097 ActiveFlag = !ActiveFlag;1098 }
Note:
See TracChangeset
for help on using the changeset viewer.