Changes in src/molecule.cpp [49e1ae:6adb96]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/molecule.cpp
r49e1ae r6adb96 4 4 * 5 5 */ 6 7 #include <cstring>8 6 9 7 #include "atom.hpp" … … 61 59 delete(start); 62 60 }; 61 62 63 // getter and setter 64 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 } 63 73 64 74 … … 589 599 else 590 600 molname = filename; // contains no slashes 591 c onst char *endname = strchr(molname, '.');601 char *endname = strchr(molname, '.'); 592 602 if ((endname == NULL) || (endname < molname)) 593 603 length = strlen(molname); … … 1083 1093 } 1084 1094 }; 1095 1096 void molecule::flipActiveFlag(){ 1097 ActiveFlag = !ActiveFlag; 1098 }
Note:
See TracChangeset
for help on using the changeset viewer.